From: Andrew Gerrand Date: Thu, 22 Jul 2010 00:15:36 +0000 (+1000) Subject: build: clean.bash to check that GOOS and GOARCH are set X-Git-Tag: weekly.2010-07-29~51 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d34174cfb57568eb4e7df19d51f15e65c638f679;p=gostls13.git build: clean.bash to check that GOOS and GOARCH are set R=rsc CC=golang-dev https://golang.org/cl/1843046 --- diff --git a/src/clean.bash b/src/clean.bash index 567e6e3196..db4cf40101 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -9,6 +9,14 @@ if [ -z "$GOROOT" ] ; then echo '$GOROOT not set' exit 1 fi +if [ -z "$GOOS" ] ; then + echo '$GOOS not set' + exit 1 +fi +if [ -z "$GOARCH" ] ; then + echo '$GOARCH not set' + exit 1 +fi GOBIN="${GOBIN:-$HOME/bin}"