From: Jonathan McDowell Date: Thu, 20 Aug 2015 10:30:52 +0000 (+0200) Subject: Add git commit details to non-release builds X-Git-Tag: onak-0.4.6~6 X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=commitdiff_plain;h=3b73f99ccb5a2f3dc5237031ec9c0b0b7939220b Add git commit details to non-release builds The previous bzr version info is long unused, so replace with 'git describe' to embed the git version status in builds from git. --- diff --git a/Makefile.in b/Makefile.in index d23f50a..463e4f8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -178,8 +178,8 @@ doxygen-docs: *.c *.h Doxyfile version.h: @echo '#include "config.h"' > version.h - @if [ -e .bzr ]; then \ - echo "#define ONAK_VERSION PACKAGE_VERSION \"+bzr`bzr revno`\"" \ + @if [ -e .git ]; then \ + echo "#define ONAK_VERSION \"`git describe --tags --dirty | cut -d - -f 2-`\"" \ >> version.h; \ else \ echo "#define ONAK_VERSION PACKAGE_VERSION" >> version.h; \