aboutsummaryrefslogtreecommitdiff
path: root/src/clean.rc
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2012-05-01 22:32:46 -0700
committerAnthony Martin <ality@pbrane.org>2012-05-01 22:32:46 -0700
commit38590329807beaea154f427549302f71a7a0444e (patch)
tree1230c580a1a0df9b05f470864e948391ab71b84f /src/clean.rc
parentce30769ce3d5b9ac02f2a5e6dc36e42eddd66bd2 (diff)
downloadgo-38590329807beaea154f427549302f71a7a0444e.tar.gz
go-38590329807beaea154f427549302f71a7a0444e.zip
build: dist-based build for Plan 9
R=rsc, iant, iant, seed CC=golang-dev https://golang.org/cl/5608059
Diffstat (limited to 'src/clean.rc')
-rwxr-xr-xsrc/clean.rc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/clean.rc b/src/clean.rc
new file mode 100755
index 0000000000..41cab613e3
--- /dev/null
+++ b/src/clean.rc
@@ -0,0 +1,14 @@
+#!/bin/rc -e
+# Copyright 2012 The Go Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+eval `{go tool dist env -9}
+
+if(! test -x $GOTOOLDIR/dist){
+ echo 'cannot find $GOTOOLDIR/dist; nothing to clean' >[1=2]
+ exit noclean
+}
+
+$GOBIN/go clean -i std
+$GOTOOLDIR/dist clean