summaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-02 14:20:02 -0400
committerRuss Cox <rsc@golang.org>2010-09-02 14:20:02 -0400
commitf0147ee6a451f10534f12acb8239287aaf0b2948 (patch)
tree36e015fbd4e4088057247773dd73921812122696 /src/make.bash
parent856ab0a302018680f083de01d24222d210ada70c (diff)
downloadgo-f0147ee6a451f10534f12acb8239287aaf0b2948.tar.gz
build: create bin and pkg directories as needed; drop from hg
R=dsymonds, r CC=golang-dev http://codereview.appspot.com/2050043 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index c778d922a..0a0f49455 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -10,6 +10,12 @@ if [ ! -f env.bash ]; then
fi
. ./env.bash
+# Create target directories
+if [ "$GOBIN" = "$GOROOT/bin" ]; then
+ mkdir -p "$GOROOT/bin"
+fi
+mkdir -p "$GOROOT/pkg"
+
GOROOT_FINAL=${GOROOT_FINAL:-$GOROOT}
MAKEFLAGS=${MAKEFLAGS:-"-j4"}