summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2013-03-25 12:13:34 +1100
committerAlex Brainman <alex.brainman@gmail.com>2013-03-25 12:13:34 +1100
commit44dc410973d89a7f7f98eff8762dd0deb34cbe45 (patch)
tree84993fadbb37f5fade11a1df40193ee259bb2349
parent4e70e7fd499adfed7774d4b114fa58b1e905f3e5 (diff)
downloadgo-44dc410973d89a7f7f98eff8762dd0deb34cbe45.tar.gz
all.bat,make.bat,run.bat: make these work even when directory has space in it
R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7510048
-rw-r--r--src/all.bat2
-rw-r--r--src/make.bat4
-rw-r--r--src/run.bat6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/all.bat b/src/all.bat
index 8929f7727..0647a715b 100644
--- a/src/all.bat
+++ b/src/all.bat
@@ -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%
diff --git a/src/make.bat b/src/make.bat
index be1c8f52d..c1f171de4 100644
--- a/src/make.bat
+++ b/src/make.bat
@@ -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
diff --git a/src/run.bat b/src/run.bat
index 3f950f541..1a68eb573 100644
--- a/src/run.bat
+++ b/src/run.bat
@@ -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.