summaryrefslogtreecommitdiff
path: root/src/make.bat
diff options
context:
space:
mode:
authorAlex Brainman <alex.brainman@gmail.com>2012-03-13 16:50:44 +1100
committerAlex Brainman <alex.brainman@gmail.com>2012-03-13 16:50:44 +1100
commitf19287a8bf1a2e21cac4334fe64f88f7c93d552d (patch)
tree974426994def3032ab9344375371fb30ae2fb2c3 /src/make.bat
parent698af68ed657b3287e23ce1d28b324a02f6914ff (diff)
downloadgo-f19287a8bf1a2e21cac4334fe64f88f7c93d552d.tar.gz
make.bat: properly handle directories with spaces
R=golang-dev, minux.ma CC=golang-dev http://codereview.appspot.com/5797079
Diffstat (limited to 'src/make.bat')
-rw-r--r--src/make.bat12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/make.bat b/src/make.bat
index 8bb9262c5..9b0ab6920 100644
--- a/src/make.bat
+++ b/src/make.bat
@@ -46,8 +46,8 @@ if x%1==x--no-clean set buildall=
.\cmd\dist\dist bootstrap %buildall% -v
if errorlevel 1 goto fail
:: Delay move of dist tool to now, because bootstrap cleared tool directory.
-move .\cmd\dist\dist.exe %GOTOOLDIR%\dist.exe
-%GOTOOLDIR%\go_bootstrap clean -i std
+move .\cmd\dist\dist.exe "%GOTOOLDIR%\dist.exe"
+"%GOTOOLDIR%\go_bootstrap" clean -i std
echo.
if not %GOHOSTARCH% == %GOARCH% goto localbuild
@@ -59,20 +59,20 @@ echo # Building tools for local system. %GOHOSTOS%/%GOHOSTARCH%
setlocal
set GOOS=%GOHOSTOS%
set GOARCH=%GOHOSTARCH%
-%GOTOOLDIR%\go_bootstrap install -v std
+"%GOTOOLDIR%\go_bootstrap" install -v std
endlocal
if errorlevel 1 goto fail
echo.
:mainbuild
echo # Building packages and commands.
-%GOTOOLDIR%\go_bootstrap install -a -v std
+"%GOTOOLDIR%\go_bootstrap" install -a -v std
if errorlevel 1 goto fail
-del %GOTOOLDIR%\go_bootstrap.exe
+del "%GOTOOLDIR%\go_bootstrap.exe"
echo.
if x%1==x--no-banner goto nobanner
-%GOTOOLDIR%\dist banner
+"%GOTOOLDIR%\dist" banner
:nobanner
goto end