[tor-commits] [tor-browser-bundle/master] Don't hardcode target 'build-nightly' for subsequent builds.

gk at torproject.org gk at torproject.org
Mon Apr 14 07:26:52 UTC 2014


commit 75bc25446840a3a0d051c13b3e2ae7b1c5fd10ee
Author: Linus Nordberg <linus at nordberg.se>
Date:   Thu Apr 10 13:09:32 2014 +0200

    Don't hardcode target 'build-nightly' for subsequent builds.
---
 tools/continuous-builds/build-tbb.sh |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/continuous-builds/build-tbb.sh b/tools/continuous-builds/build-tbb.sh
index 071903a..5f4b4ad 100755
--- a/tools/continuous-builds/build-tbb.sh
+++ b/tools/continuous-builds/build-tbb.sh
@@ -3,7 +3,8 @@
 # build-tbb.sh [TARGET [PUBLISH-HOST [PUBLISH-SSH-KEY [BUILDDIR [DESTDIR [N]]]]]]
 #
 # Build TARGET in BUILDDIR, which will end up in DESTDIR
-# Try doing it N times.
+# Try building $TARGET one time and if that fails, try "build-$TARGET"
+# up to N-1 times.
 # Upload result to PUBLISH-HOST using SSH key PUBLISH-KEY.
 
 # TODO:
@@ -32,7 +33,7 @@ while [ $status != done ]; do
   killall qemu-system-i386 qemu-system-x86_64
   make $TARGET > build-$(date -u +%s).log && status=done
   printf "%s: Tried building $TARGET %d times. Status: %s.\n" $0 $n $status | tee -a $logfile
-  TARGET=build-nightly
+  TARGET=build-$TARGET
   [ $n -ge $N ] && break
 done
 





More information about the tor-commits mailing list