2009-11-14 15:29:09 -08:00
|
|
|
#!/usr/bin/env bash
|
2008-06-12 13:26:16 -07:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
|
2009-12-13 12:27:19 -08:00
|
|
|
set -e
|
|
|
|
|
|
2012-02-15 23:52:07 +09:00
|
|
|
eval $(go tool dist env)
|
|
|
|
|
|
|
|
|
|
if [ ! -x $GOTOOLDIR/dist ]; then
|
|
|
|
|
echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2
|
2009-12-13 12:27:19 -08:00
|
|
|
exit 1
|
|
|
|
|
fi
|
2012-01-30 23:43:46 -05:00
|
|
|
|
2012-02-04 00:54:08 -05:00
|
|
|
"$GOBIN/go" clean -i std
|
2015-05-07 02:12:23 -04:00
|
|
|
"$GOBIN/go" tool dist clean
|
|
|
|
|
"$GOBIN/go" clean -i cmd
|