Re: [PATCH 2/2] Documentation: Add version information to man pages
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 27, 2007, 06:55 UTC
- Message-ID
- <7vtzw7qiob.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <117482381140-git-send-email-frank@lichtenheld.de>
Frank Lichtenheld <frank@lichtenheld.de> writes:
Show 5 quoted lines
> 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>
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 <junkio@cox.net> --- 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#}</example> endif::backend-docbook[] +ifdef::doctype-manpage[] ifdef::backend-docbook[] [header] template::[header-declarations] @@ -47,6 +48,7 @@ template::[header-declarations] <refpurpose>{manpurpose}</refpurpose> </refnamediv> endif::backend-docbook[] +endif::doctype-manpage[] ifdef::backend-xhtml11[] [gitlink-inlinemacro]
-- 1.5.1.rc2.620.g9a7ad