]> Cypherpunks repositories - gostls13.git/commitdiff
all.bat,make.bat,run.bat: make these work even when directory has space in it
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 25 Mar 2013 01:13:34 +0000 (12:13 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 25 Mar 2013 01:13:34 +0000 (12:13 +1100)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7510048

src/all.bat
src/make.bat
src/run.bat

index 8929f77273a84c01a0e6ca22e05ad5c9332cb4b3..0647a715ba2463718b385800d1de0f53f005b29e 100644 (file)
@@ -20,7 +20,7 @@ if %GOBUILDFAIL%==1 goto end
 :: can get the original %PATH% and give suggestion to add %GOROOT%/bin
 :: to %PATH% if necessary.
 set PATH=%OLDPATH%
-%GOTOOLDIR%/dist banner
+"%GOTOOLDIR%/dist" banner
 
 :end
 if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
index be1c8f52dc138bd8beb38df14ae36c5e774f4a60..c1f171de490a01c76acf8e4f3e79dbdb615dc87e 100644 (file)
@@ -109,8 +109,8 @@ if x%1==x--no-banner goto nobanner
 goto end
 
 :copydist
-mkdir %GOTOOLDIR% 2>NUL
-copy cmd\dist\dist.exe %GOTOOLDIR%\
+mkdir "%GOTOOLDIR%" 2>NUL
+copy cmd\dist\dist.exe "%GOTOOLDIR%\"
 goto end
 
 :fail
index 3f950f5414becdda53f0dd83c3aff8b663a79ef4..1a68eb57384fb897f160eeb32000b355d48cb7f7 100644 (file)
@@ -74,12 +74,12 @@ echo.
 :: cgo tests
 if x%CGO_ENABLED% == x0 goto nocgo
 echo # ..\misc\cgo\life
-go run %GOROOT%\test\run.go - ..\misc\cgo\life
+go run "%GOROOT%\test\run.go" - ..\misc\cgo\life
 if errorlevel 1 goto fail
 echo.
 
 echo # ..\misc\cgo\stdio
-go run %GOROOT%\test\run.go - ..\misc\cgo\stdio
+go run "%GOROOT%\test\run.go" - ..\misc\cgo\stdio
 if errorlevel 1 goto fail
 echo.
 
@@ -90,7 +90,7 @@ echo.
 :nocgo
 
 echo # ..\doc\progs
-go run %GOROOT%\test\run.go - ..\doc\progs
+go run "%GOROOT%\test\run.go" - ..\doc\progs
 if errorlevel 1 goto fail
 echo.