From: Junio C Hamano Date: Tue, 27 Mar 2007 06:55:48 GMT Subject: Re: [PATCH 2/2] Documentation: Add version information to man pages Message-ID: <7vtzw7qiob.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <117482381140-git-send-email-frank@lichtenheld.de> Frank Lichtenheld writes: > Override the [header] macro of asciidoc's docbook > backend to add version information to the generated > man pages. > > Signed-off-by: Frank Lichtenheld This breaks documents other than manpages by making everybody unconditionally use the header you stole for doctype-manpage. I needed this to unbreak it. -- >8 -- [PATCH] Documentation: unbreak user-manual. The previous one broke generated xml files for anything but manpages, as it took the header for manpage unconditionally. This fixes it. Signed-off-by: Junio C Hamano --- Documentation/asciidoc.conf | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index a86c31d..fa7dc94 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -31,6 +31,7 @@ ifdef::backend-docbook[] {title#} endif::backend-docbook[] +ifdef::doctype-manpage[] ifdef::backend-docbook[] [header] template::[header-declarations] @@ -47,6 +48,7 @@ template::[header-declarations] {manpurpose} endif::backend-docbook[] +endif::doctype-manpage[] ifdef::backend-xhtml11[] [gitlink-inlinemacro] -- 1.5.1.rc2.620.g9a7ad