]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix clean scripts
authorShenghou Ma <minux@golang.org>
Thu, 7 May 2015 06:12:23 +0000 (02:12 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 18 Jun 2015 16:13:13 +0000 (16:13 +0000)
Fixes #10734.

Change-Id: I7a2c580b87749225668fbd7a005412c8eee6824d
Reviewed-on: https://go-review.googlesource.com/9823
Reviewed-by: Russ Cox <rsc@golang.org>
src/clean.bash
src/clean.bat
src/clean.rc

index f36260240a344c18257d09908a6e22670489a3ec..8c23e010e8985475962bb01dffd51d0f559c2a73 100755 (executable)
@@ -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
index dcf54ea3a3b170868f68f57668f167a637ab764a..3cc6a689bc2e46537106fac196aa28c93eb7c68b 100644 (file)
@@ -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
 
index 41cab613e3f4a79490aa7b9288d5c1b447383288..23bbd6032683747f25ca9676cd47c3c203362170 100755 (executable)
@@ -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