summaryrefslogtreecommitdiff
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
commit6ad20c9423583b45a3e6b83c328184d0805b565e (patch)
tree6c85f505b997d555f3f6299503b2f467331a63b4 /src/clean.bash
parentcffcda2cc96f222df195449e6567c6b7434bb2ef (diff)
downloadgo-6ad20c9423583b45a3e6b83c328184d0805b565e.tar.gz
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 1c568a591..f5cd3b057 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 \