summaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
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 \