]> Cypherpunks.ru repositories - gostls13.git/commitdiff
build: use setlocal in run.bat
authorAlex Brainman <alex.brainman@gmail.com>
Wed, 15 Feb 2012 23:44:55 +0000 (10:44 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Wed, 15 Feb 2012 23:44:55 +0000 (10:44 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5672061

src/all.bat
src/run.bat

index 980f937efc94bd1a77f688ec2626651c19b500bf..e3b61c0127b5de87f59e902a9ad7899c1fc1e975 100644 (file)
@@ -13,7 +13,7 @@ goto end
 
 call make.bat --no-banner --no-local
 if %GOBUILDFAIL%==1 goto end
-call run.bat --no-rebuild
+call run.bat --no-rebuild --no-local
 if %GOBUILDFAIL%==1 goto end
 go tool dist banner
 
index 3fb118341400f7859db0749f2e57141835995123..f258ae10f80ed0a7fb52402805d450d916d9615e 100644 (file)
@@ -3,6 +3,13 @@
 :: license that can be found in the LICENSE file.
 @echo off
 
+:: Keep environment variables within this script
+:: unless invoked with --no-local.
+if x%1==x--no-local goto nolocal
+if x%2==x--no-local goto nolocal
+setlocal
+:nolocal
+
 set GOBUILDFAIL=0
 
 rem TODO avoid rebuild if possible