From 7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 25 Mar 2007 13:56:50 +0200 Subject: [PATCH] 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 --- Documentation/asciidoc.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index 44b1ce4c6b..a86c31d00a 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})} -- 2.11.4.GIT