Newer
Older
dub_jkp / changelog / dubEnvVar.dd
@Remi Thebault Remi Thebault on 25 Nov 2018 528 bytes implement $DUB build variable
  1. dub now supports `$DUB` variable
  2.  
  3. With this release, one can call dub from build commands in the following way:
  4. ------
  5. // dub.sdl:
  6. preBuildCommands "$DUB run --single somebuildscript.d"
  7. -----
  8. This is useful if dub is not in the `$PATH`, or if several versions of dub are installed.
  9.  
  10. `$DUB` is also accessible as environment variable in the build commands processes.
  11.  
  12. `$DUB` points to the running executable, unless it is used as a library.
  13. In such case, `$DUB` will resolve to the first dub executable found in `$PATH`.