Skip to content

Commit

Permalink
Don't use "echo off" to avoid influencing potential parent batch files.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 10, 2014
1 parent c51bf1f commit 0709143
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -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
@echo DUB has been built. You probably also want to add the following entry to your
@echo PATH environment variable:
@echo %CD%\bin

0 comments on commit 0709143

Please sign in to comment.