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.
8 if [ -z "$GOROOT" ] ; then
13 GOBIN="${GOBIN:-$HOME/bin}"
15 rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
16 rm -f "$GOROOT"/lib/*.a
17 for i in lib9 libbio libcgo libmach cmd pkg \
18 ../misc/cgo/gmp ../misc/cgo/stdio \
21 cd "$GOROOT"/src/$i || exit 1
22 if test -f clean.bash; then