diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:26:01 +1100 |
---|---|---|
committer | Alex Brainman <alex.brainman@gmail.com> | 2012-02-16 10:26:01 +1100 |
commit | 564fa6b42b1eff9eb285dffdd1050ac946c696fc (patch) | |
tree | ab7c7e9f108bbe00597c3ff1660ebc35761da2ad /src/all.bat | |
parent | ebbba63af64200dbf2bf51d1f79dfa0d68362f78 (diff) | |
download | go-564fa6b42b1eff9eb285dffdd1050ac946c696fc.tar.gz |
build: keep environment variable changes local during Windows build
R=bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/5673048
Diffstat (limited to 'src/all.bat')
-rw-r--r-- | src/all.bat | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/all.bat b/src/all.bat index 7792cf174..980f937ef 100644 --- a/src/all.bat +++ b/src/all.bat @@ -3,20 +3,19 @@ :: license that can be found in the LICENSE file. @echo off +setlocal + if exist make.bat goto ok echo all.bat must be run from go\src :: cannot exit: would kill parent command interpreter goto end :ok -set GOOLDPATH=%PATH% - -call make.bat --no-banner +call make.bat --no-banner --no-local if %GOBUILDFAIL%==1 goto end call run.bat --no-rebuild if %GOBUILDFAIL%==1 goto end go tool dist banner :end -set PATH=%GOOLDPATH% if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% |