Commit 77fb0c17 authored by Alex Brainman's avatar Alex Brainman

all.bat,make.bat,run.bat: make these work even when directory has space in it

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7510048
parent 976d99b9
...@@ -20,7 +20,7 @@ if %GOBUILDFAIL%==1 goto end ...@@ -20,7 +20,7 @@ if %GOBUILDFAIL%==1 goto end
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin :: can get the original %PATH% and give suggestion to add %GOROOT%/bin
:: to %PATH% if necessary. :: to %PATH% if necessary.
set PATH=%OLDPATH% set PATH=%OLDPATH%
%GOTOOLDIR%/dist banner "%GOTOOLDIR%/dist" banner
:end :end
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
...@@ -109,8 +109,8 @@ if x%1==x--no-banner goto nobanner ...@@ -109,8 +109,8 @@ if x%1==x--no-banner goto nobanner
goto end goto end
:copydist :copydist
mkdir %GOTOOLDIR% 2>NUL mkdir "%GOTOOLDIR%" 2>NUL
copy cmd\dist\dist.exe %GOTOOLDIR%\ copy cmd\dist\dist.exe "%GOTOOLDIR%\"
goto end goto end
:fail :fail
......
...@@ -74,12 +74,12 @@ echo. ...@@ -74,12 +74,12 @@ echo.
:: cgo tests :: cgo tests
if x%CGO_ENABLED% == x0 goto nocgo if x%CGO_ENABLED% == x0 goto nocgo
echo # ..\misc\cgo\life 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 if errorlevel 1 goto fail
echo. echo.
echo # ..\misc\cgo\stdio 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 if errorlevel 1 goto fail
echo. echo.
...@@ -90,7 +90,7 @@ echo. ...@@ -90,7 +90,7 @@ echo.
:nocgo :nocgo
echo # ..\doc\progs echo # ..\doc\progs
go run %GOROOT%\test\run.go - ..\doc\progs go run "%GOROOT%\test\run.go" - ..\doc\progs
if errorlevel 1 goto fail if errorlevel 1 goto fail
echo. echo.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment