1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:54:40 -07:00

build: restore PATH before "dist banner"

Fixes #3699.

R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/6272048
This commit is contained in:
Shenghou Ma 2012-06-06 20:19:16 +08:00
parent 2cb7498455
commit 81368d9bb9
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ if [ ! -f make.bash ]; then
echo 'all.bash must be run from $GOROOT/src' 1>&2
exit 1
fi
OLDPATH="$PATH"
. ./make.bash --no-banner
bash run.bash --no-rebuild
PATH="$OLDPATH"
$GOTOOLDIR/dist banner # print build info

View File

@ -11,10 +11,12 @@ echo all.bat must be run from go\src
goto end
:ok
set OLDPATH=%PATH%
call make.bat --no-banner --no-local
if %GOBUILDFAIL%==1 goto end
call run.bat --no-rebuild --no-local
if %GOBUILDFAIL%==1 goto end
set PATH=%OLDPATH%
go tool dist banner
:end