-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use "echo off" to avoid influencing potential parent batch files.
- Loading branch information
Showing
1 changed file
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |