]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Make build_timestamp generation less platform specific. This also slightly changes...
authorBernhard Froehlich <decke@bluelife.at>
Wed, 21 Jun 2017 13:49:57 +0000 (13:49 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Jun 2017 06:25:35 +0000 (08:25 +0200)
$ date -Iseconds
2017-06-21T13:33:15+02:00

$ date +%Y-%m-%dT%H:%M:%S%z
2017-06-21T13:33:24+0200

Makefile

index 844edc46e72725fc902a9490dfd9152ff05ec037..289e90f63fe75d22692d0674fde112d2411a3abf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -671,7 +671,7 @@ include ${ROOTDIR}/support/${OSENV}.mk
 $(BUILDDIR)/timestamp.c: FORCE
        @mkdir -p $(dir $@)
        @echo '#include "build.h"' > $@
-       @echo 'const char* build_timestamp = "'`date -Iseconds`'";' >> $@
+       @echo 'const char* build_timestamp = "'`date +%Y-%m-%dT%H:%M:%S%z`'";' >> $@
 
 $(BUILDDIR)/timestamp.o: $(BUILDDIR)/timestamp.c
        $(pCC) -c -o $@ $<