1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:34:43 -07:00

build: clean.bash to check that GOOS and GOARCH are set

R=rsc
CC=golang-dev
https://golang.org/cl/1843046
This commit is contained in:
Andrew Gerrand 2010-07-22 10:15:36 +10:00
parent d1e7cffe6c
commit d34174cfb5

View File

@ -9,6 +9,14 @@ if [ -z "$GOROOT" ] ; then
echo '$GOROOT not set' echo '$GOROOT not set'
exit 1 exit 1
fi 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}" GOBIN="${GOBIN:-$HOME/bin}"