From: Mikio Hara Date: Wed, 15 Feb 2012 14:52:07 +0000 (+0900) Subject: build: fix clean.bash X-Git-Tag: weekly.2012-02-22~226 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0724e5cefe92f9f4fd52101e3a7a25299a2b7f63;p=gostls13.git build: fix clean.bash R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5672052 --- diff --git a/src/clean.bash b/src/clean.bash index 958ff73696..f36260240a 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -5,11 +5,12 @@ set -e -if [ ! -x ../bin/tool/dist ]; then - echo 'cannot find ../bin/tool/dist; nothing to clean' >&2 +eval $(go tool dist env) + +if [ ! -x $GOTOOLDIR/dist ]; then + echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2 exit 1 fi -eval $(../bin/tool/dist env) "$GOBIN/go" clean -i std -../bin/tool/dist clean +$GOTOOLDIR/dist clean