Devon H. O'Dell | 553be84 | 2009-11-14 15:29:09 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Rob Pike | 69b74c3 | 2008-06-12 13:26:16 -0700 | [diff] [blame] | 2 | # Copyright 2009 The Go Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style |
| 4 | # license that can be found in the LICENSE file. |
| 5 | |
Christopher Wedgwood | 2ef330e | 2009-12-13 12:27:19 -0800 | [diff] [blame] | 6 | set -e |
| 7 | |
Mikio Hara | 0724e5c | 2012-02-15 23:52:07 +0900 | [diff] [blame] | 8 | eval $(go tool dist env) |
| 9 | |
| 10 | if [ ! -x $GOTOOLDIR/dist ]; then |
| 11 | echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2 |
Christopher Wedgwood | 2ef330e | 2009-12-13 12:27:19 -0800 | [diff] [blame] | 12 | exit 1 |
| 13 | fi |
Devon H. O'Dell | 857d4cf | 2009-12-11 15:14:09 -0800 | [diff] [blame] | 14 | |
Russ Cox | 8290536 | 2012-02-04 00:54:08 -0500 | [diff] [blame] | 15 | "$GOBIN/go" clean -i std |
Shenghou Ma | 01187f7 | 2015-05-07 02:12:23 -0400 | [diff] [blame] | 16 | "$GOBIN/go" tool dist clean |
| 17 | "$GOBIN/go" clean -i cmd |