mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 04:57:59 -05:00
doc/Makefile.am: Set pacman version and date when man pages are generated.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
parent
be0a472cb7
commit
fe9a0de32e
@ -23,6 +23,11 @@ EXTRA_DIST = \
|
|||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = $(man_MANS) man3/*.3 *.xml
|
MOSTLYCLEANFILES = $(man_MANS) man3/*.3 *.xml
|
||||||
|
|
||||||
|
ASCIIDOC_OPTS = \
|
||||||
|
-f asciidoc.conf \
|
||||||
|
-apacman_version="$(PACKAGE_VERSION)" \
|
||||||
|
-apacman_date="`date +%Y-%m-%d`"
|
||||||
|
|
||||||
if HAS_DOXYGEN
|
if HAS_DOXYGEN
|
||||||
all: doxygen.in
|
all: doxygen.in
|
||||||
|
|
||||||
@ -31,6 +36,6 @@ doxygen.in:
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(man_MANS):
|
$(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:
|
# vim:set ts=2 sw=2 noet:
|
||||||
|
@ -41,6 +41,9 @@ ifdef::backend-docbook[]
|
|||||||
[header]
|
[header]
|
||||||
template::[header-declarations]
|
template::[header-declarations]
|
||||||
<refentry>
|
<refentry>
|
||||||
|
<refentryinfo>
|
||||||
|
<date>{pacman_date}</date>
|
||||||
|
</refentryinfo>
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>{mantitle}</refentrytitle>
|
<refentrytitle>{mantitle}</refentrytitle>
|
||||||
<manvolnum>{manvolnum}</manvolnum>
|
<manvolnum>{manvolnum}</manvolnum>
|
||||||
|
Loading…
Reference in New Issue
Block a user