OLD | NEW |
1 #!/bin/bash | 1 #!/usr/bin/env bash |
2 # Copyright 2009 The Go Authors. All rights reserved. | 2 # Copyright 2009 The Go Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style | 3 # Use of this source code is governed by a BSD-style |
4 # license that can be found in the LICENSE file. | 4 # license that can be found in the LICENSE file. |
5 | 5 |
6 rm -rf $GOROOT/pkg/${GOOS}_$GOARCH | 6 rm -rf $GOROOT/pkg/${GOOS}_$GOARCH |
7 rm -f $GOROOT/lib/*.a | 7 rm -f $GOROOT/lib/*.a |
8 for i in lib9 libbio libcgo libmach cmd pkg \ | 8 for i in lib9 libbio libcgo libmach cmd pkg \ |
9 ../misc/cgo/gmp ../misc/cgo/stdio \ | 9 ../misc/cgo/gmp ../misc/cgo/stdio \ |
10 ../test/bench | 10 ../test/bench |
11 do( | 11 do( |
12 cd $i || exit 1 | 12 cd $i || exit 1 |
13 if test -f clean.bash; then | 13 if test -f clean.bash; then |
14 bash clean.bash | 14 bash clean.bash |
15 else | 15 else |
16 » » make clean | 16 » » gomake clean |
17 fi | 17 fi |
18 )done | 18 )done |
OLD | NEW |