<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/fe3df3bd2290483718a5c6f11ae49068eced573b">https://github.com/macports/macports-base/commit/fe3df3bd2290483718a5c6f11ae49068eced573b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fe3df3bd2290483718a5c6f11ae49068eced573b
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Sun Nov 6 23:44:51 2016 +0100
<span style='display:block; white-space:pre;color:#404040;'> doc: Obtain manpage timestamp from Git
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The date information written into our manpages used to be obtained from
</span><span style='display:block; white-space:pre;color:#404040;'> the SVN $Id$ tag placed in the files. Now that we have switched to git
</span><span style='display:block; white-space:pre;color:#404040;'> and those tags end up empty, the file date is automatically used
</span><span style='display:block; white-space:pre;color:#404040;'> instead.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See http://www.methods.co.nz/asciidoc/userguide.html#X95 where this is
</span><span style='display:block; white-space:pre;color:#404040;'> documented.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Since Git does not preserve file modification dates on checkout or pull,
</span><span style='display:block; white-space:pre;color:#404040;'> using the file modification time will yield different results on each
</span><span style='display:block; white-space:pre;color:#404040;'> developer's machine. On the other hand, we should support building the
</span><span style='display:block; white-space:pre;color:#404040;'> manpages when the source code is extracted from a tarball (where using
</span><span style='display:block; white-space:pre;color:#404040;'> the file modification time is probably fine).
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Solve this by explicitly passing a time with `-a revdate`. The timestamp
</span><span style='display:block; white-space:pre;color:#404040;'> is obtained from Git, if available. The fallback is to set the `revdate`
</span><span style='display:block; white-space:pre;color:#404040;'> attribute to empty, which will cause the file modification time to be
</span><span style='display:block; white-space:pre;color:#404040;'> used.
</span>---
doc/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/doc/Makefile.in b/doc/Makefile.in
</span><span style='display:block; white-space:pre;color:#808080;'>index b6d84b2..5751a4e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/doc/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/doc/Makefile.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,7 +13,7 @@ XSLTPROC= $(wildcard ${prefix}/bin/xsltproc)
</span> DOCBOOK_XSL= $(wildcard ${prefix}/share/xsl/docbook-xsl/manpages/docbook.xsl)
endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-ASCIIDOCFLAGS= -f asciidoc.conf -a manversion=${MACPORTS_VERSION}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ASCIIDOCFLAGS= -f asciidoc.conf -a manversion=${MACPORTS_VERSION} -a revdate="$$(git log -1 --date=short --format=format:%ad -- $< || true)"
</span> XSLTFLAGS= -nonet
MAN1= \
</pre><pre style='margin:0'>
</pre>