# In shell: # $ cd my_git_workdir # $ git_autoversion.pl 1|0
This dist will provide a script that sets up automatic version string generation for source code, using a template. $AUTOVERSION$ is proposed.
Whenever $AUTOVERSION$ is encountered, it gets substituted with git describe --tags minus the trailing shasum, eg v0.9.1.0. A safe fallback is set up incase no tags exist.
An added bonus is that every commit following a tag, will append a running number to the versionstring, ie next commit it will be v0.9.1.0-1, then -2, etc. until next tag.
The dist would also provide scripts to do the actual filtering, to be used by the filers.