Russ Cox | 4c1abd6 | 2012-02-04 00:48:31 -0500 | [diff] [blame] | 1 | :: 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 Brainman | 32cb495 | 2012-02-16 10:26:01 +1100 | [diff] [blame] | 6 | setlocal |
| 7 | |
Russ Cox | 4c1abd6 | 2012-02-04 00:48:31 -0500 | [diff] [blame] | 8 | if exist make.bat goto ok |
| 9 | echo all.bat must be run from go\src |
| 10 | :: cannot exit: would kill parent command interpreter |
| 11 | goto end |
| 12 | :ok |
| 13 | |
Shenghou Ma | 81368d9 | 2012-06-06 20:19:16 +0800 | [diff] [blame] | 14 | set OLDPATH=%PATH% |
Alex Brainman | 32cb495 | 2012-02-16 10:26:01 +1100 | [diff] [blame] | 15 | call make.bat --no-banner --no-local |
Russ Cox | 4c1abd6 | 2012-02-04 00:48:31 -0500 | [diff] [blame] | 16 | if %GOBUILDFAIL%==1 goto end |
Alex Brainman | 034c72a | 2012-02-16 10:44:55 +1100 | [diff] [blame] | 17 | call run.bat --no-rebuild --no-local |
Russ Cox | 4c1abd6 | 2012-02-04 00:48:31 -0500 | [diff] [blame] | 18 | if %GOBUILDFAIL%==1 goto end |
Shenghou Ma | 2e7aaed | 2012-09-20 00:58:34 +0800 | [diff] [blame] | 19 | :: 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 Fitzpatrick | 9a82324 | 2012-09-13 12:39:25 -0700 | [diff] [blame] | 22 | set PATH=%OLDPATH% |
Alex Brainman | 77fb0c1 | 2013-03-25 12:13:34 +1100 | [diff] [blame] | 23 | "%GOTOOLDIR%/dist" banner |
Russ Cox | 4c1abd6 | 2012-02-04 00:48:31 -0500 | [diff] [blame] | 24 | |
| 25 | :end |
Russ Cox | 0bc6836 | 2012-02-10 01:27:59 -0500 | [diff] [blame] | 26 | if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% |