diff options
author | Russ Cox <rsc@golang.org> | 2009-11-10 19:20:34 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-10 19:20:34 -0800 |
commit | 4770a1464346ad81c43865c44eb3e9a36f3e91ba (patch) | |
tree | 764d3cb463b463c5ffefc033814d0bfc5b3daf8b /src/make.bash | |
parent | 0a39c833bfac19ad99a907e8daacaf163d1b9c69 (diff) | |
download | go-4770a1464346ad81c43865c44eb3e9a36f3e91ba.tar.gz |
make.bash: check $PATH indirectly via which quietgcc
R=agl1
CC=golang-dev
http://codereview.appspot.com/152056
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/make.bash b/src/make.bash index 6135bef04..f152a7451 100755 --- a/src/make.bash +++ b/src/make.bash @@ -36,14 +36,19 @@ darwin | linux | nacl) exit 1 esac - -bash clean.bash - rm -f $GOBIN/quietgcc CC=${CC:-gcc} sed -e "s|@CC@|$CC|" < quietgcc.bash > $GOBIN/quietgcc chmod +x $GOBIN/quietgcc +if ! (cd lib9 && which quietgcc) >/dev/null 2>&1; then + echo "installed quietgcc as $GOBIN/quietgcc but 'which quietgcc' fails" 1>&2 + echo "double-check that $GOBIN is in your "'$PATH' 1>&2 + exit 1 +fi + +bash clean.bash + for i in lib9 libbio libmach cmd pkg libcgo cmd/cgo cmd/ebnflint cmd/godoc cmd/gofmt cmd/goyacc cmd/hgpatch do case "$i-$GOOS" in |