diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2016-11-17 22:29:20 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2016-11-17 22:30:49 +0100 |
commit | de78a0cc26471446229575059f4437e1e282da96 (patch) | |
tree | 8b84a6f64385ec44940d7d59d19ae3ab7752ce71 /MakeRelease.job | |
parent | f5751da391dd46dd3dd53f13ab9279b24043ca7f (diff) |
MakeRelease.job: Add --abepath mandatory option.
Change-Id: I9c231c28c3af82ba79aaa6c1ec771e0da1af293c
Diffstat (limited to 'MakeRelease.job')
-rwxr-xr-x | MakeRelease.job | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/MakeRelease.job b/MakeRelease.job index 36d8e11c..fbe1a228 100755 --- a/MakeRelease.job +++ b/MakeRelease.job @@ -4,6 +4,7 @@ set -x usage() { echo "MakeRelease: [options]" + echo " --abepath - PATH to ABE" echo " --workspace - Specify an alternate workspace" echo " --target XXX - Specify the target triplet to build" echo " --date XXX - Specify a date, which becomes part of the release name" @@ -36,10 +37,12 @@ fileserver="148.251.136.42" extra= toolchain_config="" user_workspace="${WORKSPACE:-/home/${USER:-buildslave}/workspace}" +abe_dir= -OPTS="`getopt -o t:f:d:w:m:l:g:u:h -l target:,date:,fileserver:,workspace:,toolchainconfig:,manifest:,glibc:,gcc:,binutils:,help`" +OPTS="`getopt -o t:f:d:w:m:l:g:u:h -l target:,date:,fileserver:,workspace:,toolchainconfig:,manifest:,glibc:,gcc:,binutils:,help,abepath:`" while test $# -gt 0; do case $1 in + --abepath) abe_dir=$2 ;; -w|--workspace) user_workspace=$2 ;; -t|--target) target=$2 ;; -d|--date) date=$2 ;; @@ -55,12 +58,16 @@ while test $# -gt 0; do shift done +if test x"${abe_dir}" = x; then + echo "Error: --abepath missing" + usage +fi + if test x"${target}" != x"native" -a x"${target}" != x; then platform="--target ${target}" fi shared="/home/buildslave/workspace/shared/" -abe_dir="$(dirname $0)/.." user_snapshots="${user_workspace}/snapshots" logfile=${user_workspace}/MakeRelease-${BUILD_NUMBER}.log |