]> Cypherpunks repositories - gostls13.git/commitdiff
build: clean.bash to check that GOOS and GOARCH are set
authorAndrew Gerrand <adg@golang.org>
Thu, 22 Jul 2010 00:15:36 +0000 (10:15 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 22 Jul 2010 00:15:36 +0000 (10:15 +1000)
R=rsc
CC=golang-dev
https://golang.org/cl/1843046

src/clean.bash

index 567e6e31963cf85ade3280c1b94c1a1a3221a3a0..db4cf401015f7a083b86ac5168ad7ec133928740 100755 (executable)
@@ -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}"