From: Frank Lichtenheld Date: Fri, 23 Mar 2007 18:54:05 GMT Subject: [PATCH 2/2] Documentation: Add version information to man pages Message-ID: <11746760452311-git-send-email-frank@lichtenheld.de> In-Reply-To: <11746760451462-git-send-email-frank@lichtenheld.de> Override the [header] macro of asciidoc's docbook backend to add version information to the generated man pages. Signed-off-by: Frank Lichtenheld --- Documentation/asciidoc.conf.in | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) I personally prefer to have this information available in the man page. Copying the whole [header] template is at best ugly but works. Better suggestions welcome. diff --git a/Documentation/asciidoc.conf.in b/Documentation/asciidoc.conf.in index 44b1ce4..a86c31d 100644 --- a/Documentation/asciidoc.conf.in +++ b/Documentation/asciidoc.conf.in @@ -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})} -- 1.5.0.3