summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-07-06 07:56:11 +0200
committerDan McGee <dan@archlinux.org>2007-07-09 19:47:56 +0200
commitfe9a0de32edaf1db58e46a3fd3f1c05ad0b0e6c2 (patch)
treeabb892d36a951cbfd4cb2d68180bc110c858b02c /doc
parentbe0a472cb798f0bfd4a75d1cfe165b4005a8ca90 (diff)
downloadpacman-fe9a0de32edaf1db58e46a3fd3f1c05ad0b0e6c2.tar.gz
pacman-fe9a0de32edaf1db58e46a3fd3f1c05ad0b0e6c2.tar.xz
doc/Makefile.am: Set pacman version and date when man pages are generated.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am7
-rw-r--r--doc/asciidoc.conf3
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fd6fff45..8c51a95a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -23,6 +23,11 @@ EXTRA_DIST = \
# Files that should be removed, but which Automake does not know.
MOSTLYCLEANFILES = $(man_MANS) man3/*.3 *.xml
+ASCIIDOC_OPTS = \
+ -f asciidoc.conf \
+ -apacman_version="$(PACKAGE_VERSION)" \
+ -apacman_date="`date +%Y-%m-%d`"
+
if HAS_DOXYGEN
all: doxygen.in
@@ -31,6 +36,6 @@ doxygen.in:
endif
$(man_MANS):
- a2x -d manpage -f manpage --asciidoc-opts="-f asciidoc.conf" $@.txt
+ a2x -d manpage -f manpage --asciidoc-opts="$(ASCIIDOC_OPTS)" $@.txt
# vim:set ts=2 sw=2 noet:
diff --git a/doc/asciidoc.conf b/doc/asciidoc.conf
index cb75ad75..6b0747d6 100644
--- a/doc/asciidoc.conf
+++ b/doc/asciidoc.conf
@@ -41,6 +41,9 @@ ifdef::backend-docbook[]
[header]
template::[header-declarations]
<refentry>
+<refentryinfo>
+<date>{pacman_date}</date>
+</refentryinfo>
<refmeta>
<refentrytitle>{mantitle}</refentrytitle>
<manvolnum>{manvolnum}</manvolnum>