aboutsummaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
authorSergio Luis O. B. Correia <sergio@larces.uece.br>2009-11-23 17:32:51 -0800
committerRuss Cox <rsc@golang.org>2009-11-23 17:32:51 -0800
commit6fc820729e96527cfbb6bdd48836edcc1d0e4215 (patch)
tree50b343071af83ccc83b323c93a0be3cbe81aa457 /src/clean.bash
parent2b1133ff863172d669defea18761a84e4a343d80 (diff)
downloadgo-6fc820729e96527cfbb6bdd48836edcc1d0e4215.tar.gz
go-6fc820729e96527cfbb6bdd48836edcc1d0e4215.zip
go: makes it build for the case $GOROOT has whitespaces
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes #115. R=rsc, dsymonds1 https://golang.org/cl/157067
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clean.bash b/src/clean.bash
index 411321b55d..f6fc6d1f5e 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -3,8 +3,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-rm -rf $GOROOT/pkg/${GOOS}_$GOARCH
-rm -f $GOROOT/lib/*.a
+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