From d46b9c2601beb10afed76b72a203c3f65b1d2cae Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 5 Feb 2008 13:56:00 +0100 Subject: [PATCH] Replace the manpage XSL workarounds with AsciiDoc conf workarounds This is a lot simpler and generates better manpages (with the required documentation tools). The XSL stuff was a nightmarish adventure, anyway. Of course this probably breaks documentation building on some systems. --- Makefile | 4 ++-- asciidoc.conf | 28 ++++++++++++++++---------- manpage.xsl | 55 --------------------------------------------------- 3 files changed, 20 insertions(+), 67 deletions(-) delete mode 100644 manpage.xsl diff --git a/Makefile b/Makefile index 048e97a..c85e892 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,7 @@ README.html: README $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage -aversion=$(VERSION) $< %.1 : %.1.xml - $(XMLTO) -m manpage.xsl man $< + $(XMLTO) man $< %.5.html : %.5.txt $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d manpage $< @@ -174,7 +174,7 @@ README.html: README $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage -aversion=$(VERSION) $< %.5 : %.5.xml - $(XMLTO) -m manpage.xsl man $< + $(XMLTO) man $< %.html : %.txt $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d article -n $< diff --git a/asciidoc.conf b/asciidoc.conf index 8ad167a..61b2d93 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -6,16 +6,6 @@ ifdef::backend-docbook[] {0#} endif::backend-docbook[] -ifdef::backend-docbook[] -# "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this. -[listingblock] -{title} - -| - -{title#} -endif::backend-docbook[] - ifdef::backend-xhtml11[] [gitlink-inlinemacro] {target}{0?({0})} @@ -37,6 +27,24 @@ template::[header-declarations] {manname} {manpurpose} + +# The following two small workarounds insert a simple paragraph after screen +# + +[listingblock] +{title} + +| + +{title#} + +[verseblock] +{title} +{title%} +{title#} +| + +{title#} endif::backend-docbook[] endif::doctype-manpage[] diff --git a/manpage.xsl b/manpage.xsl deleted file mode 100644 index b01a958..0000000 --- a/manpage.xsl +++ /dev/null @@ -1,55 +0,0 @@ - - - - - .sp .nf - - .fi .sp - - - - - - - - - .sp - - - - - - - - - - - - - - - - - - - .sp - - - .nf - - - .fi - - - - - .sp - - - -- 2.30.2