Bug #111

Fix DrQueue build version number and include Git commit id

Added by Andreas Schröder about 8 years ago. Updated about 8 years ago.

Status:FixedStart date:05/24/2010
Priority:NormalDue date:
Assignee:Andreas Schröder% Done:


Target version:0.64.4


#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.

Also available in: Atom PDF