commit | d34174cfb57568eb4e7df19d51f15e65c638f679 | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Thu Jul 22 10:15:36 2010 +1000 |
committer | Andrew Gerrand <adg@golang.org> | Thu Jul 22 10:15:36 2010 +1000 |
tree | d9adc3a94453e7f8f70d271d2d255de516914687 | |
parent | d1e7cffe6c86996ab60d6cf9dc8f7ec1a7b47112 [diff] [blame] |
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 567e6e3..db4cf40 100755 --- a/src/clean.bash +++ b/src/clean.bash
@@ -9,6 +9,14 @@ 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}"