]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: auto-update builder.sh.
authorRuss Cox <rsc@golang.org>
Tue, 9 Feb 2010 21:45:38 +0000 (13:45 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 9 Feb 2010 21:45:38 +0000 (13:45 -0800)
avoid possibility of busy loop pounding on dashboard.

R=agl1
CC=golang-dev
https://golang.org/cl/206051

misc/dashboard/buildcron.sh
misc/dashboard/builder.sh

index 42a12b2e79766ff8dcaaa451dbe23d0963cf3cce..5f430079645153d27433a81a6488f76c17cc26f1 100644 (file)
@@ -41,6 +41,9 @@ fi
 if [ ! -d $GOROOT ]; then
        mkdir -p $GOROOT
        hg clone https://go.googlecode.com/hg/ $GOROOT
+else
+       cd $GOROOT
+       hg pull -u || exit 1
 fi
 mkdir -p $GOROOT/bin
 
index fb2e6defb5ab0a1e2d7457e34b0ece74b1448a46..b302acec2836a6b0f68c54f9911a6cfe4dfa1d9f 100644 (file)
@@ -74,4 +74,5 @@ while true ; do
         fi
     fi
     cd ../.. || fatal "Cannot cd up"
+    sleep 10
 done