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