summaryrefslogtreecommitdiff
path: root/scripts/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/builder.sh')
-rwxr-xr-xscripts/builder.sh16
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()
contact: Jan Huwald // Impressum