2008-06-12 14:26:16 -06:00
|
|
|
#!/bin/bash
|
|
|
|
# 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-10-08 14:35:46 -06:00
|
|
|
rm -rf $GOROOT/pkg/${GOOS}_$GOARCH
|
|
|
|
rm -f $GOROOT/lib/*.a
|
2009-10-22 11:59:27 -06:00
|
|
|
for i in lib9 libbio libcgo libmach cmd pkg \
|
2009-10-03 11:38:03 -06:00
|
|
|
../misc/cgo/gmp ../misc/cgo/stdio \
|
2009-10-14 19:29:33 -06:00
|
|
|
../test/bench
|
2009-10-03 11:38:03 -06:00
|
|
|
do(
|
2009-10-14 19:29:33 -06:00
|
|
|
cd $i || exit 1
|
2009-10-03 11:38:03 -06:00
|
|
|
if test -f clean.bash; then
|
2008-09-19 12:55:46 -06:00
|
|
|
bash clean.bash
|
2009-10-03 11:38:03 -06:00
|
|
|
else
|
2008-09-19 12:55:46 -06:00
|
|
|
make clean
|
2009-10-03 11:38:03 -06:00
|
|
|
fi
|
|
|
|
)done
|