aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorPhil Pennock <pdp@golang.org>2009-07-28 11:23:24 -0700
committerPhil Pennock <pdp@golang.org>2009-07-28 11:23:24 -0700
commitd6f89c69c46bb624735073e2a12399ce9b699040 (patch)
treec01d92511b7ad45a38cd944422e24b212f8b1b39 /src/make.bash
parenteaa25ac16ba4949f970fd1d20cec34c317cb92b9 (diff)
downloadgo-d6f89c69c46bb624735073e2a12399ce9b699040.tar.xz
Support use of $GOBINDIR to override $HOME/bin
R=r,gri,rsc APPROVED=rsc DELTA=53 (12 added, 6 deleted, 35 changed) OCL=31822 CL=32282
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/make.bash b/src/make.bash
index 6374f0b9e5..f8f4b8e730 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -4,6 +4,7 @@
# license that can be found in the LICENSE file.
set -e
+GOBIN="${GOBIN:-$HOME/bin}"
export MAKEFLAGS=-j4
if ! test -f $GOROOT/include/u.h
@@ -14,9 +15,9 @@ fi
bash clean.bash
-rm -f $HOME/bin/quietgcc
-cp quietgcc.bash $HOME/bin/quietgcc
-chmod +x $HOME/bin/quietgcc
+rm -f $GOBIN/quietgcc
+cp quietgcc.bash $GOBIN/quietgcc
+chmod +x $GOBIN/quietgcc
for i in lib9 libbio libmach_amd64 libregexp cmd pkg cmd/ebnflint cmd/gobuild cmd/godoc cmd/gofmt
do