diff options
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-x | src/clean.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clean.bash b/src/clean.bash index f6fc6d1f5..3687244b2 100755 --- a/src/clean.bash +++ b/src/clean.bash @@ -3,16 +3,18 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. +GOBIN="${GOBIN:-$HOME/bin}" + rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH rm -f "$GOROOT"/lib/*.a for i in lib9 libbio libcgo libmach cmd pkg \ ../misc/cgo/gmp ../misc/cgo/stdio \ ../test/bench do( - cd $i || exit 1 + cd "$GOROOT"/src/$i || exit 1 if test -f clean.bash; then bash clean.bash else - gomake clean + "$GOBIN"/gomake clean fi )done |