On 10.07.2012 22:08, Jakub Wilk wrote: > * Michael Biebl <[email protected]>, 2012-07-10, 21:15: >>> It parses timezones correctly, but it doesn't change TZ for the >>> program it executes. So xsltproc would still print date in local >>> timezone, unless you reset TZ manually. >> >> You are right, of course. >> Updated patch attached. >> > [...] >> - $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) >> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< >> + faketime "`TZ=GMT stat -c %y $<`" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) >> http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< > > Hmm. This sets TZ for stat (which I don't believe makes any > difference), but not for xsltproc (which is what I think actually > matters).
This should hopefully do it now. Thanks for the review. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/Makefile.am b/Makefile.am index 079c118..44b1354 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2204,11 +2204,11 @@ XSLTPROC_FLAGS = \ XSLTPROC_PROCESS_MAN = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< + TZ=GMT faketime "`stat -c %y $<`" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< XSLTPROC_PROCESS_HTML = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ - $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< + TZ=GMT faketime "`stat -c %y $<`" $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< man/%.1: man/%.xml $(XSLTPROC_PROCESS_MAN) diff --git a/debian/control b/debian/control index 33717aa..70ca95b 100644 --- a/debian/control +++ b/debian/control @@ -32,7 +32,8 @@ Build-Depends: debhelper (>= 9), liblzma-dev, libgee-dev, gperf, - libkmod-dev (>= 5) + libkmod-dev (>= 5), + faketime Package: systemd Architecture: linux-any
signature.asc
Description: OpenPGP digital signature

