aboutsummaryrefslogtreecommitdiff
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
commit72e3b204e4f535a40f8465b8fc2434330496885e (patch)
tree055340b3e873075cb614c76da1988dcb00a4bd63 /src/clean.bash
parent26adb31c30252d7a1821f920b845ae35dd9efa3f (diff)
downloadgo-72e3b204e4f535a40f8465b8fc2434330496885e.tar.gz
go-72e3b204e4f535a40f8465b8fc2434330496885e.zip
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 cba2129cfa..36b0c99fb5 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