]> Cypherpunks repositories - gostls13.git/commitdiff
check $GOROOT before diving into build
authorRuss Cox <rsc@golang.org>
Wed, 8 Oct 2008 16:46:20 +0000 (09:46 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 8 Oct 2008 16:46:20 +0000 (09:46 -0700)
R=r
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=16726
CL=16726

src/make.bash

index 3ff193145e757897d7bb76af811546e7004df664..df70e41f4892149bdd55886265586bedc884e5e4 100755 (executable)
@@ -6,6 +6,12 @@
 set -e
 export MAKEFLAGS=-j4
 
+if ! test -f $GOROOT/include/u.h
+then
+       echo '$GOROOT is not set correctly or not exported' 1>&2
+       exit 1
+fi
+
 bash clean.bash
 
 for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib