Newer
Older
dub_jkp / build.cmd
@Martin Kinkelin Martin Kinkelin on 17 Aug 2019 546 bytes Revise build.cmd (remove curl.lib, add -O)
  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 -O -w -version=DubUseCurl -version=DubApplication -Isource %* @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