mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
gui/Makefile.am: add conclusive description with last tag and branch
This commit is contained in:
@@ -6,9 +6,10 @@ version.h:
|
|||||||
echo '#define BUILT_DATE "'`date`'"' > $@
|
echo '#define BUILT_DATE "'`date`'"' > $@
|
||||||
@if test -d $(top_srcdir)/.git ; then \
|
@if test -d $(top_srcdir)/.git ; then \
|
||||||
pushd $(top_srcdir) ; \
|
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 ; \
|
popd ; \
|
||||||
echo '#define VCS "'$${GITDESCRIBE}'"' >> $@ ; \
|
echo '#define VCS "'$${GITDESCRIBE} [$${GITBRANCH}]'"' >> $@ ; \
|
||||||
fi
|
fi
|
||||||
noinst_HEADERS = version.h
|
noinst_HEADERS = version.h
|
||||||
.PHONY: version.h
|
.PHONY: version.h
|
||||||
|
Reference in New Issue
Block a user