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_; enum dubVersion = "%GITVER%"; > source\dub\version_.d
  7.  
  8. @echo Executing %DC%...
  9. @%DC% -ofbin\dub.exe -g -debug -w -version=DubUseCurl -Isource curl.lib %* @build-files.txt
  10. @if errorlevel 1 exit /b 1
  11.  
  12. @echo DUB has been built. You probably also want to add the following entry to your
  13. @echo PATH environment variable:
  14. @echo %CD%\bin