1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2018-02-17
--- xastir-2.1.0.orig/src/Makefile.am
+++ xastir-2.1.0/src/Makefile.am
@@ -89,6 +89,9 @@ testdbfawk_SOURCES = \
compiledate.c: $(XASTIR_SRC)
rm -f compiledate.c compiledate.o
echo 'char compiledate[] = "'"Compiled: `date`"'";' > compiledate.c
+ if test -n "$$SOURCE_DATE_EPOCH"; then \
+ echo 'char compiledate[] = "'"Compiled: `LC_ALL=C date --utc --date="@$$SOURCE_DATE_EPOCH"`"'";' > compiledate.c; \
+ fi
echo 'char gitstring[] = "'"`$(top_srcdir)/scripts/XastirGitStamp.sh $(top_srcdir)`"'";' >> compiledate.c
remove_compiledate:
|