aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-09-22 05:55:17 +1000
committerShenghou Ma <minux.ma@gmail.com>2012-09-22 05:55:17 +1000
commit32d59a576a3f4cf5ace44378563a6b8036eec0cc (patch)
treec09baeef411034b060f13233803a7e0c6cd47972
parent1a18d27e43efc8cfbede7deec2defeaf58df856a (diff)
downloadgo-32d59a576a3f4cf5ace44378563a6b8036eec0cc.tar.gz
go-32d59a576a3f4cf5ace44378563a6b8036eec0cc.zip
[release-branch.go1] src/all.bat: fix banner
««« backport 2f7827571b44 src/all.bat: fix banner we need to restore %PATH% before calling "dist banner", so that it could suggest the user to add %GOROOT%/bin to %PATH% if necessary. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6525049 »»»
-rw-r--r--src/all.bat5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/all.bat b/src/all.bat
index 386867947a..8929f77273 100644
--- a/src/all.bat
+++ b/src/all.bat
@@ -16,8 +16,11 @@ call make.bat --no-banner --no-local
if %GOBUILDFAIL%==1 goto end
call run.bat --no-rebuild --no-local
if %GOBUILDFAIL%==1 goto end
-go tool dist banner
+:: we must restore %PATH% before running "dist banner" so that the latter
+:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
+:: to %PATH% if necessary.
set PATH=%OLDPATH%
+%GOTOOLDIR%/dist banner
:end
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%