Add git tag / SHA1 as a build string

Every build from commit 20271c6 (Apr 10 2013) is versioned as 1.6.0.
Add a build version after the version number
Digital Speech Decoder 1.6.0 (build:v1.6.0-20-g16110bd)

The build string uses git describe to list the tag closest to head,
and the number of commits past that tag, the a litteral g and ending
with the current SHA1
This commit is contained in:
Dylan Reinhold
2013-12-18 23:07:12 -08:00
parent 271a7e459a
commit 2f6214fe72
6 changed files with 179 additions and 1 deletions

1
git_ver.h Normal file
View File

@@ -0,0 +1 @@
extern const char GIT_TAG[];