diff options
author | Andrew Gerrand <adg@golang.org> | 2010-07-22 10:15:36 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-07-22 10:15:36 +1000 |
commit | 3223d5af9a34f2de0b5ce9369e0ca031f76fb354 (patch) | |
tree | 4010a70620b01819c5e5e3978abb84ca91e4c515 | |
parent | 832e04ce14d7e9ae4d74132549a3e0c8b61216e3 (diff) | |
download | go-3223d5af9a34f2de0b5ce9369e0ca031f76fb354.tar.gz |
build: clean.bash to check that GOOS and GOARCH are set
R=rsc
CC=golang-dev
http://codereview.appspot.com/1843046
-rwxr-xr-x | src/clean.bash | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/clean.bash b/src/clean.bash index 567e6e319..db4cf4010 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}" |