diff options
author | Russ Cox <rsc@golang.org> | 2012-02-12 23:14:37 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-12 23:14:37 -0500 |
commit | c2de3b4738c091f307cc1a812642a1d4f3558279 (patch) | |
tree | 2a56bc9b71a9b153dcc2e1fe625d1c89df80fcc6 /src/make.bash | |
parent | 49e92776c048c64bc42ed47d6397fe96edd13f09 (diff) | |
download | go-c2de3b4738c091f307cc1a812642a1d4f3558279.tar.gz |
build: reject make.bash on Windows
Also, echo cmd/dist during bootstrap build
Makes that phase look like all the others.
Fixes issue 2908.
R=golang-dev, alex.brainman, bradfitz
CC=golang-dev
http://codereview.appspot.com/5655065
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash index 55a292eba..81ceeb729 100755 --- a/src/make.bash +++ b/src/make.bash @@ -9,6 +9,16 @@ if [ ! -f run.bash ]; then exit 1 fi +# Test for Windows. +case "$(uname)" in +*MINGW* | *WIN32* | *CYGWIN*) + echo 'ERROR: Do not use make.bash to build on Windows.' + echo 'Use make.bat instead.' + echo + exit 1 + ;; +esac + # Test for bad ld. if ld --version 2>&1 | grep 'gold.* 2\.20' >/dev/null; then echo 'ERROR: Your system has gold 2.20 installed.' @@ -46,6 +56,7 @@ done # Finally! Run the build. echo '# Building C bootstrap tool.' +echo cmd/dist mkdir -p ../bin/tool export GOROOT="$(cd .. && pwd)" GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}" |