aboutsummaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-10-08 13:35:46 -0700
committerIan Lance Taylor <iant@golang.org>2009-10-08 13:35:46 -0700
commit823154836534e0ed5dfe0ede73ad2447ae208c5f (patch)
tree6c85f505b997d555f3f6299503b2f467331a63b4 /src/clean.bash
parent7ecfb021f3d39833ecb39cf875611cd9808589c8 (diff)
downloadgo-823154836534e0ed5dfe0ede73ad2447ae208c5f.tar.gz
go-823154836534e0ed5dfe0ede73ad2447ae208c5f.zip
Only clean the relevant installed files, not everything. This
should let a 6g build and an 8g build be done in sequence without stepping on each other. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35478 CL=35481
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clean.bash b/src/clean.bash
index 1c568a5910..f5cd3b0573 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -3,8 +3,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-rm -rf $GOROOT/pkg/[0-9a-zA-Z_]*
-rm -f $GOROOT/lib/*.[6a]
+rm -rf $GOROOT/pkg/${GOOS}_$GOARCH
+rm -f $GOROOT/lib/*.a
for i in lib9 libbio libcgo libmach libregexp cmd pkg \
../misc/cgo/gmp ../misc/cgo/stdio \
../usr/r/rpc ../usr/dsymonds/iterable \