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
7 if exist ..\bin\go.exe goto ok
\r
8 echo Must run run.bat from Go src directory after installing cmd/go.
\r
12 :: Keep environment variables within this script
\r
13 :: unless invoked with --no-local.
\r
14 if x%1==x--no-local goto nolocal
\r
15 if x%2==x--no-local goto nolocal
\r
21 set GOPATH=c:\nonexist-gopath
\r
22 :: Issue 14340: ignore GOBIN during all.bat.
\r
27 rem TODO avoid rebuild if possible
\r
29 if x%1==x--no-rebuild goto norebuild
\r
30 echo ##### Building packages and commands.
\r
31 ..\bin\go install -a -v std cmd
\r
32 if errorlevel 1 goto fail
\r
37 ..\bin\go env > env.bat
\r
38 if errorlevel 1 goto fail
\r
43 ..\bin\go tool dist test
\r
44 if errorlevel 1 goto fail
\r