File nut-doc-fixed-date.patch of Package nut
Index: b/docs/Makefile.am
===================================================================
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -592,8 +592,8 @@ A2X_DOCINFO_DIR=$(builddir)
A2X_COMMON_OPTS = $(ASCIIDOC_VERBOSE) \
--attribute=icons \
--xsltproc-opts="--nonet" \
- --xsltproc-opts="--stringparam nut.localdate \"`TZ=UTC date +%Y-%m-%d`\"" \
- --xsltproc-opts="--stringparam nut.localtime \"`TZ=UTC date +%H:%M:%S`\"" \
+ --xsltproc-opts "--stringparam nut.localdate \"`TZ=UTC date +%Y-%m-%d -r $(top_srcdir)/ChangeLog`\"" \
+ --xsltproc-opts "--stringparam nut.localtime \"`TZ=UTC date +%H:%M:%S -r $(top_srcdir)/ChangeLog`\"" \
--xsltproc-opts="--stringparam nut.nutversion \"$(PACKAGE_VERSION)\"" \
--attribute=docinfodir="$${A2X_DOCINFO_DIR}" \
--attribute=iconsdir="$(srcdir)/images" \
Index: b/docs/man/Makefile.am
===================================================================
--- a/docs/man/Makefile.am
+++ b/docs/man/Makefile.am
@@ -1602,9 +1602,9 @@ DOCBUILD_END = { \
echo " DOC-MAN-HTML Generating $@"; \
$(DOCBUILD_BEGIN) ; RES=0; \
$(ASCIIDOC) --backend=xhtml11 $${A2X_VERBOSE} \
- --attribute=localdate="`TZ=UTC date +%Y-%m-%d`" \
- --attribute=localtime="`TZ=UTC date +%H:%M:%S`" \
+ --attribute=localdate=`TZ=UTC date +%Y-%m-%d -r $(top_srcdir)/ChangeLog` \
+ --attribute=localtime=`TZ=UTC date +%H:%M:%S -r $(top_srcdir)/ChangeLog` \
--attribute=nutversion="$(PACKAGE_VERSION)" \
--attribute=srcdir="$(abs_srcdir)/" \
--attribute=builddir="$(abs_builddir)/" \
--attribute=top_srcdir="$(abs_top_srcdir)/" \