From d63cfd04a0dcb4e5a2f32639157e11990dd12f2c Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 13 Nov 2018 00:23:00 +0100 Subject: [PATCH] minor modifications in version.h Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ff8a98a87bf9522a7632e9efbe0237279961bcae Author: vanhofen Date: 2018-11-13 (Tue, 13 Nov 2018) Origin message was: ------------------ - minor modifications in version.h --- src/gui/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am index 26c4694e1..e74370166 100644 --- a/src/gui/Makefile.am +++ b/src/gui/Makefile.am @@ -3,14 +3,13 @@ AM_CPPFLAGS = -fno-rtti -D__STDC_FORMAT_MACROS BUILT_SOURCES = version.h version.h: @rm -f $@; \ - echo '#define BUILT_DATE "'`date`'"' > $@ + echo "#define BUILT_DATE \"$$(date)\"" > $@ @if test -d $(top_srcdir)/.git ; then \ pushd $(top_srcdir) ; \ GITTAG=$$(git tag -l "NI-*" | tail -n1); \ - GITBRANCH=$$(git rev-parse --abbrev-ref HEAD) ; \ - GITDESCRIBE=$$(git describe --always --tags --dirty --match $$GITTAG || echo 'VCS failed') ; \ + GITDESCRIBE=$$(git describe --always --long --tags --match $$GITTAG | sed 's/-/./2' || echo "VCS failed") ; \ popd ; \ - echo '#define VCS "'$${GITDESCRIBE} [$${GITBRANCH}]'"' >> $@ ; \ + echo "#define VCS \"$${GITDESCRIBE}\"" >> $@ ; \ fi noinst_HEADERS = version.h .PHONY: version.h