]> Cypherpunks.ru repositories - gostls13.git/blob - src/all.bat
[dev.boringcrypto] all: merge master into dev.boringcrypto
[gostls13.git] / src / all.bat
1 :: Copyright 2012 The Go Authors. All rights reserved.\r
2 :: Use of this source code is governed by a BSD-style\r
3 :: license that can be found in the LICENSE file.\r
4 \r
5 @echo off\r
6 \r
7 setlocal\r
8 \r
9 if exist make.bat goto ok\r
10 echo all.bat must be run from go\src\r
11 :: cannot exit: would kill parent command interpreter\r
12 goto end\r
13 :ok\r
14 \r
15 set OLDPATH=%PATH%\r
16 call make.bat --no-banner --no-local\r
17 if %GOBUILDFAIL%==1 goto end\r
18 call run.bat --no-rebuild --no-local\r
19 if %GOBUILDFAIL%==1 goto end\r
20 :: we must restore %PATH% before running "dist banner" so that the latter\r
21 :: can get the original %PATH% and give suggestion to add %GOROOT%/bin\r
22 :: to %PATH% if necessary.\r
23 set PATH=%OLDPATH%\r
24 "%GOTOOLDIR%/dist" banner\r
25 \r
26 :end\r
27 if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%\r