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-04 00:54:08 -05:00
|
|
|
if [ ! -x ../bin/tool/dist ]; then
|
|
|
|
|
echo 'cannot find ../bin/tool/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
|
|
|
eval $(../bin/tool/dist env)
|
|
|
|
|
"$GOBIN/go" clean -i std
|
|
|
|
|
../bin/tool/dist clean
|