2008-06-12 13:26:16 -07: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-05-20 11:12:05 -07:00
|
|
|
rm -rf $GOROOT/pkg/[0-9a-zA-Z_]*
|
2009-03-24 16:04:25 -07:00
|
|
|
rm -f $GOROOT/lib/*.[6a]
|
2009-10-03 10:38:03 -07:00
|
|
|
for i in lib9 libbio libcgo libmach libregexp cmd pkg \
|
|
|
|
|
../misc/cgo/gmp ../misc/cgo/stdio \
|
|
|
|
|
../usr/r/rpc ../usr/dsymonds/iterable \
|
|
|
|
|
../usr/austin/eval ../usr/austin/ogle ../test/bench
|
|
|
|
|
do(
|
2008-06-12 13:26:16 -07:00
|
|
|
cd $i
|
2009-10-03 10:38:03 -07:00
|
|
|
if test -f clean.bash; then
|
2008-09-19 11:55:46 -07:00
|
|
|
bash clean.bash
|
2009-10-03 10:38:03 -07:00
|
|
|
else
|
2008-09-19 11:55:46 -07:00
|
|
|
make clean
|
2009-10-03 10:38:03 -07:00
|
|
|
fi
|
|
|
|
|
)done
|