Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [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 |
|
| 5 | @echo off
|
| 6 |
|
| 7 | setlocal
|
| 8 |
|
qmuntal | e9eb88a | 2025-02-11 09:17:08 +0100 | [diff] [blame] | 9 | go tool dist env -w -p >env.bat || exit /b 1
|
Yasuhiro Matsumoto | c4c9c80 | 2022-05-13 00:22:11 +0900 | [diff] [blame] | 10 | call .\env.bat
|
Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [diff] [blame] | 11 | del env.bat
|
| 12 | echo.
|
| 13 |
|
qmuntal | e9eb88a | 2025-02-11 09:17:08 +0100 | [diff] [blame] | 14 | if not exist %GOTOOLDIR%\dist.exe (
|
| 15 | echo cannot find %GOTOOLDIR%\dist.exe; nothing to clean
|
| 16 | exit /b 1
|
| 17 | )
|
Dmitri Shuralyov | ee379d2 | 2020-06-04 00:35:09 -0400 | [diff] [blame] | 18 |
|
| 19 | "%GOBIN%\go" clean -i std
|
| 20 | "%GOBIN%\go" tool dist clean
|
| 21 | "%GOBIN%\go" clean -i cmd
|