2009-11-14 16:29:09 -07:00
|
|
|
#!/usr/bin/env bash
|
2008-06-12 14:26:16 -06: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 13:27:19 -07:00
|
|
|
set -e
|
|
|
|
|
2012-02-15 07:52:07 -07:00
|
|
|
eval $(go tool dist env)
|
|
|
|
|
|
|
|
if [ ! -x $GOTOOLDIR/dist ]; then
|
|
|
|
echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >&2
|
2009-12-13 13:27:19 -07:00
|
|
|
exit 1
|
|
|
|
fi
|
2012-01-30 21:43:46 -07:00
|
|
|
|
2012-02-03 22:54:08 -07:00
|
|
|
"$GOBIN/go" clean -i std
|
2012-02-15 07:52:07 -07:00
|
|
|
$GOTOOLDIR/dist clean
|