summaryrefslogtreecommitdiff
path: root/src/make.bat
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-10-12 13:35:05 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-10-12 13:35:05 +0800
commit2c0ab741816f057191641898f20fd91170e6850d (patch)
treefbb0ea8b1d7cfd2498d74155d207f5f2fd4d23a1 /src/make.bat
parentd79bccf5ed95302fb3216d779df489eed578d6b6 (diff)
downloadgo-2c0ab741816f057191641898f20fd91170e6850d.tar.gz
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 issue 3100. R=alex.brainman CC=golang-dev http://codereview.appspot.com/6637061
Diffstat (limited to 'src/make.bat')
-rw-r--r--src/make.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/make.bat b/src/make.bat
index ec39392dd..01c2dc457 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