diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/clean.bash | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/clean.bash b/src/clean.bash index 5c1dded56..7969e2cd0 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -22,11 +22,6 @@ rm -f "$GOROOT"/lib/*.a for i in lib9 libbio libmach cmd pkg \ ../misc/cgo/gmp ../misc/cgo/stdio \ ../test/bench ../test/garbage -do( - cd "$GOROOT"/src/$i || exit 1 - if test -f clean.bash; then - bash clean.bash --gomake $MAKE - else - $MAKE clean - fi -)done +do + gomake -C "$GOROOT/src/$i" clean +done |