From 2c0ab741816f057191641898f20fd91170e6850d Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Fri, 12 Oct 2012 13:35:05 +0800 Subject: 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 --- src/make.bat | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/make.bat') 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 -- cgit v1.2.1