Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
all.bat,make.bat,run.bat: make these work even when directory has spa…
Browse files Browse the repository at this point in the history
…ce in it

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7510048
  • Loading branch information
alexbrainman committed Mar 25, 2013
1 parent 976d99b commit 77fb0c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%
4 changes: 2 additions & 2 deletions src/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down

0 comments on commit 77fb0c1

Please sign in to comment.