aboutsummaryrefslogtreecommitdiff
path: root/src/clean.bash
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2010-07-30 14:00:59 +1000
committerAndrew Gerrand <adg@golang.org>2010-07-30 14:00:59 +1000
commit3402c5e8fed860396f6b2b58233989b62fc81014 (patch)
treedd993b22a8147d6d4031e283727865a51b1048dd /src/clean.bash
parentb57ffae094f817755251b90871cc55f2b5b570dc (diff)
downloadgo-3402c5e8fed860396f6b2b58233989b62fc81014.tar.gz
go-3402c5e8fed860396f6b2b58233989b62fc81014.zip
misc/builder: support for uploading tarballs to googlecode
R=rsc CC=golang-dev https://golang.org/cl/1784042
Diffstat (limited to 'src/clean.bash')
-rwxr-xr-xsrc/clean.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clean.bash b/src/clean.bash
index db4cf40101..53fddd6c29 100755
--- a/src/clean.bash
+++ b/src/clean.bash
@@ -20,7 +20,9 @@ fi
GOBIN="${GOBIN:-$HOME/bin}"
-rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
+if [ "$1" != "--nopkg" ]; then
+ rm -rf "$GOROOT"/pkg/${GOOS}_$GOARCH
+fi
rm -f "$GOROOT"/lib/*.a
for i in lib9 libbio libcgo libmach cmd pkg \
../misc/cgo/gmp ../misc/cgo/stdio \