@matheusbsbs / matheus-bagliano / commits / 7ef195ba3e
Fork 0

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>

Frank Lichtenheld committed Mar 25, 2007 at 13:56 UTC 7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4
1 file changed +17
Documentation/asciidoc.conf
+17
@@ -31,6 +31,23 @@ ifdef::backend-docbook[]
31 {title#}</example>
32 endif::backend-docbook[]
33
34 +ifdef::backend-docbook[]
35 +[header]
36 +template::[header-declarations]
37 +<refentry>
38 +<refmeta>
39 +<refentrytitle>{mantitle}</refentrytitle>
40 +<manvolnum>{manvolnum}</manvolnum>
41 +<refmiscinfo class="source">Git</refmiscinfo>
42 +<refmiscinfo class="version">@@GIT_VERSION@@</refmiscinfo>
43 +<refmiscinfo class="manual">Git Manual</refmiscinfo>
44 +</refmeta>
45 +<refnamediv>
46 + <refname>{manname}</refname>
47 + <refpurpose>{manpurpose}</refpurpose>
48 +</refnamediv>
49 +endif::backend-docbook[]
50 +
51 ifdef::backend-xhtml11[]
52 [gitlink-inlinemacro]
53 <a href="{target}.html">{target}{0?({0})}</a>