codekingpro/portable-devtools
114k
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
5@echo off
6
7if not exist ..\bin\go.exe (
8 echo Must run run.bat from Go src directory after installing cmd/go.
9 exit /b 1
10)
11
12setlocal
13
14set GOENV=off
15..\bin\go tool dist env > env.bat || exit /b 1
16call .\env.bat
17del env.bat
18
19set GOPATH=c:\nonexist-gopath
20..\bin\go tool dist test --rebuild %* || exit /b 1
21 