diff options
author | Rob Savoye <rob.savoye@linaro.org> | 2015-09-10 15:51:18 -0600 |
---|---|---|
committer | Rob Savoye <rob.savoye@linaro.org> | 2015-09-10 15:51:18 -0600 |
commit | 1222629a20d250cdc64508145801b82dc987e42c (patch) | |
tree | d27fca0c97bc767e3bfb7aaf703f7f66174bc676 | |
parent | db712c036f7529fd48499f19d8e35c4f334d6167 (diff) |
Add command line option to redefine the snapshots-ref path on the remote fileserver.
Change-Id: Id7544a06802f745fe48e2ce33bd28a4859639a1f
-rwxr-xr-x | scripts/MakeRelease.job | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/MakeRelease.job b/scripts/MakeRelease.job index c0ff81f7..ea1bfb9c 100755 --- a/scripts/MakeRelease.job +++ b/scripts/MakeRelease.job @@ -10,11 +10,12 @@ target="" tarsrc="" tarbin="" check="" +ref="=/snapshots-ref" nocheck="no" fileserver="148.251.136.42" user_workspace="${WORKSPACE:-/home/${USER:-buildslave}/workspace}" -OPTS="`getopt -o t:f:d:bs:w:nh -l target:,date:,fileserver:,tarbin:,tarsrc:,workspace:,help`" +OPTS="`getopt -o r:t:f:d:bs:w:nh -l target:,ref:,date:,fileserver:,tarbin:,tarsrc:,workspace:,help`" while test $# -gt 0; do echo 1 = "$1" case $1 in @@ -23,6 +24,7 @@ while test $# -gt 0; do -b|--tarbin) tarbin=yes ;; -t|--target) target=$2 ;; -d|--date) date=$2 ;; + -r|--ref) ref=$2 ;; -f|--fileserver) fileserver=$2 ;; -n|--nocheck) nocheck=yes ;; -h|--help) usage ;; @@ -67,7 +69,7 @@ cd ${user_workspace}/_build if ! test -e host.conf; then $CONFIG_SHELL ${abe_dir}/configure ${chroot} --with-local-snapshots=${user_snapshots} \ - --with-git-reference-dir=${shared}/snapshots --with-fileserver=${fileserver} --with-remote-snapshots=/snapshots-ref + --with-git-reference-dir=${shared}/snapshots --with-fileserver=${fileserver} --with-remote-snapshots=/${ref} fi |