diff options
| author | Russ Cox <rsc@golang.org> | 2010-09-02 14:20:02 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-09-02 14:20:02 -0400 |
| commit | 5bf658cc8f4bab6fa2f7e9e641d6df18db78ab1e (patch) | |
| tree | aa4c5b158b81922337c8fad057e992ecf11a22a0 /src/make.bash | |
| parent | 4e645558947725b8577f71dbb14d43e5852611cb (diff) | |
| download | go-5bf658cc8f4bab6fa2f7e9e641d6df18db78ab1e.tar.xz | |
build: create bin and pkg directories as needed; drop from hg
R=dsymonds, r
CC=golang-dev
https://golang.org/cl/2050043
Diffstat (limited to 'src/make.bash')
| -rwxr-xr-x | src/make.bash | 6 |
1 files changed, 6 insertions, 0 deletions
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"} |
