From: Frank Lichtenheld Date: Sun, 25 Mar 2007 11:56:50 +0000 (+0200) Subject: Documentation: Add version information to man pages X-Git-Tag: v1.5.2-rc0~95^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4;p=git.git 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 Signed-off-by: Junio C Hamano --- 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#} endif::backend-docbook[] +ifdef::backend-docbook[] +[header] +template::[header-declarations] + + +{mantitle} +{manvolnum} +Git +@@GIT_VERSION@@ +Git Manual + + + {manname} + {manpurpose} + +endif::backend-docbook[] + ifdef::backend-xhtml11[] [gitlink-inlinemacro] {target}{0?({0})}