From: Dave Cheney Date: Wed, 2 Mar 2011 19:57:47 +0000 (-0500) Subject: build: simplify clean.bash X-Git-Tag: weekly.2011-03-07~53 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=49a4d7dc39d315f75fe700e3a5b8b775a8acfcbf;p=gostls13.git build: simplify clean.bash R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4257045 --- diff --git a/src/clean.bash b/src/clean.bash index 5c1dded565..7969e2cd06 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 diff --git a/test/bench/Makefile b/test/bench/Makefile new file mode 100644 index 0000000000..145fe0cea6 --- /dev/null +++ b/test/bench/Makefile @@ -0,0 +1,14 @@ +# Copyright 2011 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +include ../../src/Make.inc + +all: + @echo "make clean or timing" + +timing: + ./timing.sh + +clean: + rm -f [568].out *.[568] diff --git a/test/bench/clean.bash b/test/bench/clean.bash deleted file mode 100755 index d56c0e3940..0000000000 --- a/test/bench/clean.bash +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -OS=568 -rm -f [$OS].out *.[$OS]