]> Cypherpunks repositories - gostls13.git/commitdiff
test for invalid $GOBIN setting before trying to build
authorRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 02:00:48 +0000 (18:00 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 02:00:48 +0000 (18:00 -0800)
R=r
CC=golang-dev
https://golang.org/cl/153049

src/make.bash

index aaaf547efd2afd7c947bfd13c37de9da359b57e1..9f7c80c48c143399471ff59feaf96b293e0e6b8b 100755 (executable)
@@ -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