diff options
author | Mikio Hara <mikioh.mikioh@gmail.com> | 2012-02-15 23:52:07 +0900 |
---|---|---|
committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2012-02-15 23:52:07 +0900 |
commit | 0724e5cefe92f9f4fd52101e3a7a25299a2b7f63 (patch) | |
tree | d0285c679085c8943086b251528ee4ab4a399d87 /src/clean.bash | |
parent | def2022bc08f0326503df4f661eeaca3809dd5f0 (diff) | |
download | go-0724e5cefe92f9f4fd52101e3a7a25299a2b7f63.tar.gz go-0724e5cefe92f9f4fd52101e3a7a25299a2b7f63.zip |
build: fix clean.bash
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5672052
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-x | src/clean.bash | 9 |
1 files changed, 5 insertions, 4 deletions
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 |