From 3b73f99ccb5a2f3dc5237031ec9c0b0b7939220b Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Thu, 20 Aug 2015 12:30:52 +0200 Subject: [PATCH] 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. --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; \ -- 2.39.5