]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix windows build
authorRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 03:56:42 +0000 (22:56 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Feb 2012 03:56:42 +0000 (22:56 -0500)
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5656051

src/all.bat
src/run.bat

index 4389a528d2148f2a71c46105fce73acc6e53adc9..7792cf17462ba76729194ee58f24792de07604b7 100644 (file)
@@ -9,11 +9,14 @@ echo all.bat must be run from go\src
 goto end
 :ok
 
+set GOOLDPATH=%PATH%
+
 call make.bat --no-banner
 if %GOBUILDFAIL%==1 goto end
 call run.bat --no-rebuild
 if %GOBUILDFAIL%==1 goto end
-..\bin\tool\dist banner
+go tool dist banner
 
 :end
+set PATH=%GOOLDPATH%
 if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
index 89ed10d7a84b773bf8c8af73470103bb11022a2e..3fb118341400f7859db0749f2e57141835995123 100644 (file)
@@ -3,14 +3,8 @@
 :: license that can be found in the LICENSE file.
 @echo off
 
-set GOOLDPATH=%PATH%
 set GOBUILDFAIL=0
 
-..\bin\tool\dist env -wp >env.bat
-if errorlevel 1 goto fail
-call env.bat
-del env.bat
-
 rem TODO avoid rebuild if possible
 
 if x%1==x--no-rebuild goto norebuild
@@ -44,4 +38,3 @@ goto end
 set GOBUILDFAIL=1
 
 :end
-set PATH=%GOOLDPATH%