aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShenghou Ma <minux@golang.org>2015-05-07 02:12:23 -0400
committerRuss Cox <rsc@golang.org>2015-06-18 16:13:13 +0000
commit01187f756e26c80af83ec13b3ebdfe3bcd2d0a46 (patch)
tree01dfd86177b47fef10150431318dbb0cb4f19bda /src
parent7733a7cad81d1e356a11a8e83221a32e5d622869 (diff)
downloadgo-01187f756e26c80af83ec13b3ebdfe3bcd2d0a46.tar.xz
build: fix clean scripts
Fixes #10734. Change-Id: I7a2c580b87749225668fbd7a005412c8eee6824d Reviewed-on: https://go-review.googlesource.com/9823 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/clean.bash3
-rw-r--r--src/clean.bat5
-rwxr-xr-xsrc/clean.rc3
3 files changed, 7 insertions, 4 deletions
diff --git a/src/clean.bash b/src/clean.bash
index f36260240a..8c23e010e8 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -13,4 +13,5 @@ if [ ! -x $GOTOOLDIR/dist ]; then
fi
"$GOBIN/go" clean -i std
-$GOTOOLDIR/dist clean
+"$GOBIN/go" tool dist clean
+"$GOBIN/go" clean -i cmd
diff --git a/src/clean.bat b/src/clean.bat
index dcf54ea3a3..3cc6a689bc 100644
--- a/src/clean.bat
+++ b/src/clean.bat
@@ -7,7 +7,7 @@ setlocal
set GOBUILDFAIL=0
-go tool dist env -wp >env.bat
+go tool dist env -w -p >env.bat
if errorlevel 1 goto fail
call env.bat
del env.bat
@@ -19,7 +19,8 @@ goto fail
:distok
"%GOBIN%\go" clean -i std
-%GOTOOLDIR%\dist clean
+"%GOBIN%\go" tool dist clean
+"%GOBIN%\go" clean -i cmd
goto end
diff --git a/src/clean.rc b/src/clean.rc
index 41cab613e3..23bbd60326 100755
--- a/src/clean.rc
+++ b/src/clean.rc
@@ -11,4 +11,5 @@ if(! test -x $GOTOOLDIR/dist){
}
$GOBIN/go clean -i std
-$GOTOOLDIR/dist clean
+$GOBIN/go tool dist clean
+$GOBIN/go clean -i cmd