From 07091430be8f3b6a26213b3d15d9d92f629464a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 10 Feb 2014 21:17:20 +0100 Subject: [PATCH] Don't use "echo off" to avoid influencing potential parent batch files. --- build.cmd | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/build.cmd b/build.cmd index a1849153a..60538b617 100644 --- a/build.cmd +++ b/build.cmd @@ -1,15 +1,14 @@ -@echo off -if "%DC%"=="" set DC=dmd +@if "%DC%"=="" set DC=dmd -echo Generating version file... -set GITVER=unknown -for /f %%i in ('git describe') do set GITVER=%%i -echo module dub.version_; enum dubVersion = "%GITVER%"; > source\dub\version_.d +@echo Generating version file... +@set GITVER=unknown +@for /f %%i in ('git describe') do @set GITVER=%%i +@echo module dub.version_; enum dubVersion = "%GITVER%"; > source\dub\version_.d -echo Executing %DC%... -%DC% -ofbin\dub.exe -g -debug -w -version=DubUseCurl -Isource curl.lib %* @build-files.txt -if errorlevel 1 exit /b 1 +@echo Executing %DC%... +@%DC% -ofbin\dub.exe -g -debug -w -version=DubUseCurl -Isource curl.lib %* @build-files.txt +@if errorlevel 1 exit /b 1 -echo DUB has been built. You probably also want to add the following entry to your -echo PATH environment variable: -echo %CD%\bin \ No newline at end of file +@echo DUB has been built. You probably also want to add the following entry to your +@echo PATH environment variable: +@echo %CD%\bin