From c7a40bb6dcff7a7713ec38c6aae2a6746fc14901 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 4 Nov 2014 19:42:03 +0100 Subject: [PATCH] gui/Makefile.am: add conclusive description with last tag and branch --- src/gui/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 0930ca12b..e4f4cf2a8 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -6,9 +6,10 @@ version.h: echo '#define BUILT_DATE "'`date`'"' > $@ @if test -d $(top_srcdir)/.git ; then \ pushd $(top_srcdir) ; \ - GITDESCRIBE=$$(git describe --always --dirty || echo 'VCS failed') ; \ + GITBRANCH=$$(git rev-parse --abbrev-ref HEAD) ; \ + GITDESCRIBE=$$(git describe --always --tags --dirty || echo 'VCS failed') ; \ popd ; \ - echo '#define VCS "'$${GITDESCRIBE}'"' >> $@ ; \ + echo '#define VCS "'$${GITDESCRIBE} [$${GITBRANCH}]'"' >> $@ ; \ fi noinst_HEADERS = version.h .PHONY: version.h