blob: 0647a715ba2463718b385800d1de0f53f005b29e [file] [log] [blame]
Russ Cox4c1abd62012-02-04 00:48:31 -05001:: Copyright 2012 The Go Authors. All rights reserved.
2:: Use of this source code is governed by a BSD-style
3:: license that can be found in the LICENSE file.
4@echo off
5
Alex Brainman32cb4952012-02-16 10:26:01 +11006setlocal
7
Russ Cox4c1abd62012-02-04 00:48:31 -05008if exist make.bat goto ok
9echo all.bat must be run from go\src
10:: cannot exit: would kill parent command interpreter
11goto end
12:ok
13
Shenghou Ma81368d92012-06-06 20:19:16 +080014set OLDPATH=%PATH%
Alex Brainman32cb4952012-02-16 10:26:01 +110015call make.bat --no-banner --no-local
Russ Cox4c1abd62012-02-04 00:48:31 -050016if %GOBUILDFAIL%==1 goto end
Alex Brainman034c72a2012-02-16 10:44:55 +110017call run.bat --no-rebuild --no-local
Russ Cox4c1abd62012-02-04 00:48:31 -050018if %GOBUILDFAIL%==1 goto end
Shenghou Ma2e7aaed2012-09-20 00:58:34 +080019:: we must restore %PATH% before running "dist banner" so that the latter
20:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
21:: to %PATH% if necessary.
Brad Fitzpatrick9a823242012-09-13 12:39:25 -070022set PATH=%OLDPATH%
Alex Brainman77fb0c12013-03-25 12:13:34 +110023"%GOTOOLDIR%/dist" banner
Russ Cox4c1abd62012-02-04 00:48:31 -050024
25:end
Russ Cox0bc68362012-02-10 01:27:59 -050026if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%