diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-05-15 22:04:46 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-05-15 22:04:46 (GMT) |
commit | 2e758fcc82a8a06152f5e89ec9295783b3e889fe (patch) | |
tree | 3007e449bce7b39e0f641b5f0bf3f77df5a812a8 /scripts/builder.sh | |
parent | 8cdadca9208a83d60ccb8201d439fb3dd67ec019 (diff) |
enable 'dry run' in builder script
Diffstat (limited to 'scripts/builder.sh')
-rwxr-xr-x | scripts/builder.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/builder.sh b/scripts/builder.sh index 9449a9c..e0bb608 100755 --- a/scripts/builder.sh +++ b/scripts/builder.sh @@ -16,6 +16,8 @@ # # todo - detect failure and stop +dryrun= + check_starting_path() { STARTPATH=$PWD @@ -58,7 +60,11 @@ upload_win_generic() opts="$opts -p openscad" opts="$opts -u $2" opts="$opts $3" - python ./scripts/googlecode_upload.py -s "$1" $opts + if [ ! dryrun ]; then + python ./scripts/googlecode_upload.py -s "$1" $opts + else + echo dry run, not uploading to googlecode + fi } upload_win32() @@ -125,8 +131,12 @@ update_www_download_links() cat win_snapshot_links.js git diff - echo git commit -a -m 'builder.sh - updated snapshot links' - echo git push origin + if [ ! dryrun ]; then + git commit -a -m 'builder.sh - updated snapshot links' + git push origin + else + echo dry run, not updating www links + fi } check_ssh_agent() |