Newer
Older
dub_jkp / build.cmd
  1. @if "%DC%"=="" set DC=dmd
  2.  
  3. @echo Generating version file...
  4. @set GITVER=unknown
  5. @for /f %%i in ('git describe') do @set GITVER=%%i
  6. @echo module dub.version_; > source\dub\version_.d
  7. @echo enum dubVersion = "%GITVER%"; >> source\dub\version_.d
  8.  
  9. @echo Executing %DC%...
  10. @%DC% -ofbin\dub.exe -g -debug -w -version=DubUseCurl -Isource curl.lib %* @build-files.txt
  11. @if errorlevel 1 exit /b 1
  12.  
  13. @echo DUB has been built. You probably also want to add the following entry to your
  14. @echo PATH environment variable:
  15. @echo %CD%\bin