diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-05-18 19:37:04 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-05-18 19:37:04 (GMT) |
commit | 6509f0838269de67e6b84759ef36f0078f6e65f7 (patch) | |
tree | b59e2b9bed656971ea044c67bb04d8f966669d7c /scripts | |
parent | 2c5b09a0a79609b5cf02f1abc9dca0cb27677f79 (diff) |
allow 'upload only' and 'dryrun' debugging options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/builder.sh | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/scripts/builder.sh b/scripts/builder.sh index 6a9fd54..984a651 100755 --- a/scripts/builder.sh +++ b/scripts/builder.sh @@ -12,12 +12,24 @@ # # todo - detect failure and stop -DRYRUN=1 - init_variables() { STARTPATH=$PWD export STARTPATH + if [ "`echo $* | grep uploadonly`" ]; then + UPLOADONLY=1 + DATECODE=`date +"%Y.%m.%d"` + else + UPLOADONLY= + fi + if [ "`echo $* | grep dry`" ]; then + DRYRUN=1 + else + DRYRUN= + fi + export UPLOADONLY + export DRYRUN + export DATECODE } check_starting_path() @@ -198,15 +210,17 @@ check_ssh_agent() fi } -init_variables +init_variables $* check_ssh_agent check_starting_path read_username_from_user read_password_from_user get_source_code -build_win32 -build_win64 +if [ ! $UPLOADONLY ]; then + build_win32 + build_win64 +fi upload_win32 upload_win64 update_win_www_download_links |