2012-02-03 22:48:31 -07:00
|
|
|
:: Copyright 2012 The Go Authors. All rights reserved.
|
|
|
|
:: Use of this source code is governed by a BSD-style
|
|
|
|
:: license that can be found in the LICENSE file.
|
|
|
|
@echo off
|
|
|
|
|
2012-02-15 16:26:01 -07:00
|
|
|
setlocal
|
|
|
|
|
2012-02-03 22:48:31 -07:00
|
|
|
if exist make.bat goto ok
|
|
|
|
echo all.bat must be run from go\src
|
|
|
|
:: cannot exit: would kill parent command interpreter
|
|
|
|
goto end
|
|
|
|
:ok
|
|
|
|
|
2012-06-06 06:19:16 -06:00
|
|
|
set OLDPATH=%PATH%
|
2012-02-15 16:26:01 -07:00
|
|
|
call make.bat --no-banner --no-local
|
2012-02-03 22:48:31 -07:00
|
|
|
if %GOBUILDFAIL%==1 goto end
|
2012-02-15 16:44:55 -07:00
|
|
|
call run.bat --no-rebuild --no-local
|
2012-02-03 22:48:31 -07:00
|
|
|
if %GOBUILDFAIL%==1 goto end
|
2012-09-19 10:58:34 -06:00
|
|
|
:: we must restore %PATH% before running "dist banner" so that the latter
|
|
|
|
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
|
|
|
|
:: to %PATH% if necessary.
|
2012-09-13 13:39:25 -06:00
|
|
|
set PATH=%OLDPATH%
|
2013-03-24 19:13:34 -06:00
|
|
|
"%GOTOOLDIR%/dist" banner
|
2012-02-03 22:48:31 -07:00
|
|
|
|
|
|
|
:end
|
2012-02-09 23:27:59 -07:00
|
|
|
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
|