]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix clean.bash
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 15 Feb 2012 14:52:07 +0000 (23:52 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 15 Feb 2012 14:52:07 +0000 (23:52 +0900)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5672052

src/clean.bash

index 958ff73696ff7ff04a09155f0ceb595972c10c58..f36260240a344c18257d09908a6e22670489a3ec 100755 (executable)
@@ -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