summaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-09-19 11:55:46 -0700
committerRuss Cox <rsc@golang.org>2008-09-19 11:55:46 -0700
commite24a129c947cde976e3402c907f6378721b733b4 (patch)
tree055340b3e873075cb614c76da1988dcb00a4bd63 /src/clean.bash
parentf3765832701928775c2bb39d5925457dc1a74ac5 (diff)
downloadgo-e24a129c947cde976e3402c907f6378721b733b4.tar.gz
add gobuild.
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/clean.bash b/src/clean.bash
index cba2129cf..36b0c99fb 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -3,16 +3,15 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-for i in lib9 libbio libmach_amd64 libregexp syscall
+for i in lib9 libbio libmach_amd64 libregexp syscall cmd runtime lib
do
cd $i
- make clean
- cd ..
-done
-
-for i in cmd runtime lib
-do
- cd $i
- bash clean.bash
+ case $i in
+ cmd | lib)
+ bash clean.bash
+ ;;
+ *)
+ make clean
+ esac
cd ..
done