diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-13 08:39:41 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-13 08:39:41 -0600 |
commit | 776bfbddabcc7a7dfab60e9b37e4699dd1462c72 (patch) | |
tree | fce1b8906350c4ad5bea3f36ecd55a750f5fddec /bin/push_nightlies.sh | |
parent | 6208c890761e03e487ca7d7cc51d3fefb41a5de3 (diff) |
allow push options to be configured from ~/.tinbuild/config/profile.cfg
Diffstat (limited to 'bin/push_nightlies.sh')
-rwxr-xr-x | bin/push_nightlies.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/push_nightlies.sh b/bin/push_nightlies.sh index fc80062..088ddae 100755 --- a/bin/push_nightlies.sh +++ b/bin/push_nightlies.sh @@ -11,6 +11,7 @@ usage () echo "Options:" echo "-a push asynchronously" echo "-h this help" + echo "-s staging dir for async upload (default /tmp/${B}" echo "-t <time> pull time of this checkout" echo "-n <name> name of this tinderbox" echo "-l <kbps> bandwidth limit for upload (KBps)" @@ -33,11 +34,13 @@ BUILDER_NAME= PULL_TIME= BANDWIDTH_LIMIT=20 ASYNC=0 +STAGE_DIR=/tmp while getopts aht:n:l: opt ; do case "$opt" in a) ASYNC=1 ;; h) usage; exit ;; + s) STAGE_DIR="${OPTARG}";; t) PULL_TIME="${OPTARG// /_}" ;; n) BUILDER_NAME="${OPTARG// /_}" ;; l) BANDWIDTH_LIMIT="$OPTARG" ;; @@ -71,7 +74,7 @@ fi cd instsetoo_native/${INPATH} if [ "$ASYNC" = "1" ] ; then - stage="/tmp" + stage="$STAGE_DIR" else mkdir push 2>/dev/null stage="./push" |