From 5bf658cc8f4bab6fa2f7e9e641d6df18db78ab1e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 2 Sep 2010 14:20:02 -0400 Subject: build: create bin and pkg directories as needed; drop from hg R=dsymonds, r CC=golang-dev https://golang.org/cl/2050043 --- src/make.bash | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/make.bash') diff --git a/src/make.bash b/src/make.bash index c778d922af..0a0f49455f 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"} -- cgit v1.3