Newer
Older
dub_jkp / build.cmd
@Martin Kinkelin Martin Kinkelin on 17 Aug 2019 546 bytes Revise build.cmd (remove curl.lib, add -O)
@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_; > source\dub\version_.d
@echo enum dubVersion = "%GITVER%"; >> source\dub\version_.d

@echo Executing %DC%...
@%DC% -ofbin\dub.exe -g -O -w -version=DubUseCurl -version=DubApplication -Isource %* @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