mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
minor modifications in version.h
Origin commit data
------------------
Commit: ff8a98a87b
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-11-13 (Tue, 13 Nov 2018)
Origin message was:
------------------
- minor modifications in version.h
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user