Newer
Older
dub_jkp / build.cmd
@echo off
if "%DC%"=="" set DC=dmd

echo Generating version file...
set GITVER=unknown
for /f %%i in ('git describe') do set GITVER=%%i
echo enum dubVersion = "%GITVER%"; > source\dub\version_.d

echo Executing %DC%...
%DC% -ofbin\dub.exe -g -debug -w -property -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