From 2c6bb3339b52f2d0aa14205e34bb40e7d00881eb Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 21 Jul 2012 22:26:04 +0200 Subject: [PATCH] Use changelog time rather than file time, since git does not preserve time stamps --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 2b3b36063..061a4f1e9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2201,13 +2201,15 @@ XSLTPROC_FLAGS = \ --nonet \ --stringparam funcsynopsis.style ansi +T=$(shell dpkg-parsechangelog | awk -F": " '$$1 == "Date" { print $$2 }') + XSLTPROC_PROCESS_MAN = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - TZ=UTC faketime "`stat -c %y $<`" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + TZ=UTC faketime "$(T)" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< XSLTPROC_PROCESS_HTML = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - TZ=UTC faketime "`stat -c %y $<`" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< + TZ=UTC faketime "$(T)" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< man/%.1: man/%.xml $(XSLTPROC_PROCESS_MAN)