git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Frank LichtenheldNext: Junio C Hamano
Message 9 of 11 in “Documentation: Allow @@GIT_VERSION@@ in asciidoc.conf”
  1. 1/2 Documentation: Allow @@GIT_VERSION@@ in asciidoc.confFrank Lichtenheld, Mar 23, 2007
  2. 2/2 Documentation: Add version information to man pagesFrank Lichtenheld, Mar 23, 2007
  3. Junio C HamanoMar 23, 2007
  4. Frank LichtenheldMar 24, 2007
  5. Brian GernhardtMar 24, 2007
  6. Junio C HamanoMar 24, 2007
  7. 1/2 Documentation: Replace @@GIT_VERSION@@ in documentationFrank Lichtenheld, Mar 25, 2007
  8. 2/2 Documentation: Add version information to man pagesFrank Lichtenheld, Mar 25, 2007
  9. Junio C HamanoMar 27, 2007
  10. Junio C HamanoMar 26, 2007
  11. Junio C HamanoMar 26, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.