exit /b 1\r
:ok\r
\r
-call .\make.bat --no-banner --no-local\r
-if errorlevel 1 goto fail\r
-call .\run.bat --no-rebuild\r
-if errorlevel 1 goto fail\r
+call .\make.bat --no-banner --no-local || goto fail\r
+call .\run.bat --no-rebuild || goto fail\r
"%GOTOOLDIR%/dist" banner\r
goto :eof\r
\r
\r
setlocal\r
\r
-go tool dist env -w -p >env.bat\r
-if errorlevel 1 goto fail\r
+go tool dist env -w -p >env.bat || goto fail\r
call .\env.bat\r
del env.bat\r
echo.\r
if x%vflag==x-v echo cmd/dist\r
set GOROOT=%GOROOT_BOOTSTRAP%\r
set GOBIN=\r
-"%GOROOT_BOOTSTRAP%\bin\go.exe" build -o cmd\dist\dist.exe .\cmd\dist\r
+"%GOROOT_BOOTSTRAP%\bin\go.exe" build -o cmd\dist\dist.exe .\cmd\dist || goto fail\r
endlocal\r
-if errorlevel 1 goto fail\r
-.\cmd\dist\dist.exe env -w -p >env.bat\r
-if errorlevel 1 goto fail\r
+.\cmd\dist\dist.exe env -w -p >env.bat || goto fail\r
call .\env.bat\r
del env.bat\r
if x%vflag==x-v echo.\r
:: Run dist bootstrap to complete make.bash.\r
:: Bootstrap installs a proper cmd/dist, built with the new toolchain.\r
:: Throw ours, built with the bootstrap toolchain, away after bootstrap.\r
-.\cmd\dist\dist.exe bootstrap -a %vflag% %bootstrapflags%\r
-if errorlevel 1 goto fail\r
+.\cmd\dist\dist.exe bootstrap -a %vflag% %bootstrapflags% || goto fail\r
del .\cmd\dist\dist.exe\r
goto :eof\r
\r
:ok\r
\r
set GOROOT=%CD%\..\r
-call .\make.bat --dist-tool >NUL\r
-if errorlevel 1 goto fail\r
-.\cmd\dist\dist.exe env -w -p >env.bat\r
-if errorlevel 1 goto fail\r
+call .\make.bat --dist-tool >NUL || goto fail\r
+.\cmd\dist\dist.exe env -w -p >env.bat || goto fail\r
call .\env.bat\r
del env.bat\r
\r
goto fail\r
\r
:continue\r
-call .\make.bat --no-banner --no-local\r
-if errorlevel 1 goto fail\r
+call .\make.bat --no-banner --no-local || goto fail\r
echo # go install -race std\r
-go install -race std\r
-if errorlevel 1 goto fail\r
+go install -race std || goto fail\r
+go tool dist test -race || goto fail\r
\r
-go tool dist test -race\r
-\r
-if errorlevel 1 goto fail\r
echo All tests passed.\r
goto :eof\r
\r
setlocal\r
\r
set GOENV=off\r
-..\bin\go tool dist env > env.bat\r
-if errorlevel 1 goto fail\r
+..\bin\go tool dist env > env.bat || goto fail\r
call .\env.bat\r
del env.bat\r
\r
set GOPATH=c:\nonexist-gopath\r
-..\bin\go tool dist test --rebuild %*\r
-if errorlevel 1 goto fail\r
+..\bin\go tool dist test --rebuild %* || goto fail\r
goto :eof\r
\r
:fail\r