mirror of
https://github.com/golang/go
synced 2024-11-21 22:54:40 -07:00
build: fix clean.bash
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5672052
This commit is contained in:
parent
def2022bc0
commit
0724e5cefe
@ -5,11 +5,12 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -x ../bin/tool/dist ]; then
|
eval $(go tool dist env)
|
||||||
echo 'cannot find ../bin/tool/dist; nothing to clean' >&2
|
|
||||||
|
if [ ! -x $GOTOOLDIR/dist ]; then
|
||||||
|
echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval $(../bin/tool/dist env)
|
|
||||||
"$GOBIN/go" clean -i std
|
"$GOBIN/go" clean -i std
|
||||||
../bin/tool/dist clean
|
$GOTOOLDIR/dist clean
|
||||||
|
Loading…
Reference in New Issue
Block a user