From: Russ Cox Date: Tue, 9 Feb 2010 21:45:38 +0000 (-0800) Subject: dashboard: auto-update builder.sh. X-Git-Tag: weekly.2010-02-17~55 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7d37e41b2cd07898f6b90cd77d53a9d4ccb1ac8;p=gostls13.git dashboard: auto-update builder.sh. avoid possibility of busy loop pounding on dashboard. R=agl1 CC=golang-dev https://golang.org/cl/206051 --- diff --git a/misc/dashboard/buildcron.sh b/misc/dashboard/buildcron.sh index 42a12b2e79..5f43007964 100644 --- a/misc/dashboard/buildcron.sh +++ b/misc/dashboard/buildcron.sh @@ -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 diff --git a/misc/dashboard/builder.sh b/misc/dashboard/builder.sh index fb2e6defb5..b302acec28 100644 --- a/misc/dashboard/builder.sh +++ b/misc/dashboard/builder.sh @@ -74,4 +74,5 @@ while true ; do fi fi cd ../.. || fatal "Cannot cd up" + sleep 10 done