diff options
author | Russ Cox <rsc@golang.org> | 2009-11-10 18:00:48 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-10 18:00:48 -0800 |
commit | 114ef3d8f26bb910f84d62230cbeab5c48c4136f (patch) | |
tree | 4492541a3f2b3b80a9c79674da91f6ded4244cbe | |
parent | 8c49aa8b457c6d5089e46d47103e1b54d383eac5 (diff) | |
download | go-114ef3d8f26bb910f84d62230cbeab5c48c4136f.tar.gz |
test for invalid $GOBIN setting before trying to build
R=r
CC=golang-dev
http://codereview.appspot.com/153049
-rwxr-xr-x | src/make.bash | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash index aaaf547ef..9f7c80c48 100755 --- a/src/make.bash +++ b/src/make.bash @@ -13,6 +13,13 @@ then exit 1 fi +if ! test -d $GOBIN +then + echo '$GOBIN is not a directory or does not exist' 1>&2 + echo 'create it or set $GOBIN differently' 1>&2 + exit 1 +fi + bash clean.bash rm -f $GOBIN/quietgcc |