diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-10-12 13:35:05 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-10-12 13:35:05 +0800 |
commit | 19dc7bb18fc4e4dab937ce13d50a86db938ab744 (patch) | |
tree | dee42a5e89660ae8e863b863ab276743b84f1811 /src/make.bat | |
parent | e171b97ee69b65400dbccb6ae2528747605e1505 (diff) | |
download | go-19dc7bb18fc4e4dab937ce13d50a86db938ab744.tar.gz go-19dc7bb18fc4e4dab937ce13d50a86db938ab744.zip |
cmd/dist: fix superfluous and confusing "binaries ... to be copied or moved" message
Also, to aid debugging cmd/dist, make make.bat support --dist-tool flag.
Fixes #3100.
R=alex.brainman
CC=golang-dev
https://golang.org/cl/6637061
Diffstat (limited to 'src/make.bat')
-rw-r--r-- | src/make.bat | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/make.bat b/src/make.bat index ec39392dd9..01c2dc4578 100644 --- a/src/make.bat +++ b/src/make.bat @@ -68,6 +68,9 @@ call env.bat del env.bat echo. +if x%1==x--dist-tool goto copydist +if x%2==x--dist-tool goto copydist + echo # Building compilers and Go bootstrap tool. set buildall=-a if x%1==x--no-clean set buildall= @@ -105,6 +108,11 @@ if x%1==x--no-banner goto nobanner goto end +:copydist +mkdir %GOTOOLDIR% 2>NUL +copy cmd\dist\dist.exe %GOTOOLDIR%\ +goto end + :fail set GOBUILDFAIL=1 |