Fix DrQueue build version number and include Git commit id
|Assignee:||Andreas Schröder||% Done:|
#1 Updated by Andreas Schröder about 8 years ago
- Status changed from New to Fixed
Code substitutions like "$Rev$" in SVN are not working in Git, so another method had to be found.
During the build process with SCons, the current Git commit id is tried to be fetched. If DrQueue is built from a tarball instead of a Git clone, an empty string will be created.
The commit id is written as a define macro into the header file libdrqueue/git_rev.h . The header file is included in libdrqueue/common.h and used for displaying the version string of DrQueue.