From: Russ Cox Date: Wed, 8 Oct 2008 16:46:20 +0000 (-0700) Subject: check $GOROOT before diving into build X-Git-Tag: weekly.2009-11-06~3023 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=047c6ec6dabdc646b3e98531d6c8f0905aebc4a3;p=gostls13.git check $GOROOT before diving into build R=r DELTA=6 (6 added, 0 deleted, 0 changed) OCL=16726 CL=16726 --- diff --git a/src/make.bash b/src/make.bash index 3ff193145e..df70e41f48 100755 --- a/src/make.bash +++ b/src/make.bash @@ -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