Commit 0724e5ce authored by Mikio Hara's avatar Mikio Hara

build: fix clean.bash

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5672052
parent def2022b
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment