]> Cypherpunks.ru repositories - gostls13.git/blob - src/all.bat
build: print go banner before restoring windows PATH
[gostls13.git] / src / all.bat
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
6 setlocal
7
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
14 set OLDPATH=%PATH%
15 call make.bat --no-banner --no-local
16 if %GOBUILDFAIL%==1 goto end
17 call run.bat --no-rebuild --no-local
18 if %GOBUILDFAIL%==1 goto end
19 go tool dist banner
20 set PATH=%OLDPATH%
21
22 :end
23 if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%