aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorFrank Lichtenheld <frank@lichtenheld.de>2007-03-25 13:56:50 +0200
committerJunio C Hamano <junkio@cox.net>2007-03-28 16:48:50 -0700
commit7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4 (patch)
tree1c05b9d71bbbf4c655cb290a04777c81ff627710 /Documentation
parent7b8a74f39cbd58b514dce963e7a571904508661b (diff)
downloadgit-7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4.tar.gz
git-7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4.tar.xz
Documentation: Add version information to man pages
Override the [header] macro of asciidoc's docbook backend to add version information to the generated man pages. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/asciidoc.conf17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index 44b1ce4c6..a86c31d00 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -31,6 +31,23 @@ ifdef::backend-docbook[]
{title#}</example>
endif::backend-docbook[]
+ifdef::backend-docbook[]
+[header]
+template::[header-declarations]
+<refentry>
+<refmeta>
+<refentrytitle>{mantitle}</refentrytitle>
+<manvolnum>{manvolnum}</manvolnum>
+<refmiscinfo class="source">Git</refmiscinfo>
+<refmiscinfo class="version">@@GIT_VERSION@@</refmiscinfo>
+<refmiscinfo class="manual">Git Manual</refmiscinfo>
+</refmeta>
+<refnamediv>
+ <refname>{manname}</refname>
+ <refpurpose>{manpurpose}</refpurpose>
+</refnamediv>
+endif::backend-docbook[]
+
ifdef::backend-xhtml11[]
[gitlink-inlinemacro]
<a href="{target}.html">{target}{0?({0})}</a>