On 09/19/2015 07:51 PM, Vladimir Panteleev wrote:
What would DMD identify itself as then, if a version is not specified on
make's command line?
It could use the output of `git describe`.
That would probably be better anyway, because non-release builds would
properly identify themselves as non-release builds with both the most
recent tag name AND, if local HEAD isn't tagged, it will also include
the git commit hash (and, IIRC, the number of commits since the most
recent tag). *Much* better than having two months of master commits all
identifying as the exact same version.
<shameless plug> gen-package-version operates on exactly that
strategy (which I learned about from dub's source).