Newer
Older
dub_jkp / build.cmd
  1. @echo off
  2. if "%DC%"=="" set DC=dmd
  3.  
  4. echo Generating version file...
  5. set GITVER=unknown
  6. for /f %%i in ('git describe') do set GITVER=%%i
  7. echo module dub.version_; 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