Minor updates: gen-package-version v1.0.4 and sdlang-d v0.9.6
Chris Wright via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu Aug 25 15:37:02 PDT 2016
On Tue, 23 Aug 2016 12:19:12 -0400, Nick Sabalausky wrote:
> Couple very minor updates:
Please, for the love of potatoes, tell people what the project is for!
gen-package-version creates a package version string for D projects. Add
a hook to your dub.json and then you can show off what version your
binary was built from and when, eg:
module awesomeness.main;
void main(string[] args) {
import awesomeness.packageVersion, std.stdio;
if (args[1] == "--version") {
writefln("awesomeness version %s built %s",
packageVersion, packageTimestamp);
}
}
More information about the Digitalmars-d-announce
mailing list