How do i convert this Makefile to dub

Adil via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 8 11:48:43 PDT 2016


On Monday, 8 August 2016 at 18:45:35 UTC, drug007 wrote:
> On 08.08.2016 21:35, Adil wrote:
>> On Monday, 8 August 2016 at 18:29:54 UTC, Adil wrote:
>>> [...]
>>
>> One minor addition. I use the Makefile in our CI tool, that 
>> inserts
>> auto-increment numbers in place of git hashes. Numbers are a 
>> familiar. Ex:
>>
>> make VERSION_STRING=v%build.number%;
>> make screener-d-debug VERSION_STRING=v%build.number%;
>>
>> Can i insert a version number when i run dub?
> You can do it by using `preBuildCommands` in dub.sdl, see 
> http://code.dlang.org/package-format?lang=sdl

How can i pass a VERSION_STRING from the cmd line?


More information about the Digitalmars-d-learn mailing list