Adjust Makefile to get rid of '.sp' sequences in asciidoc manpages. [Closes: issue567] v1.1.17
authorMichael Prokop <mika@grml.org>
Thu, 12 Feb 2009 19:50:38 +0000 (20:50 +0100)
committerMichael Prokop <mika@grml.org>
Thu, 12 Feb 2009 19:50:38 +0000 (20:50 +0100)
debian/changelog
doc/Makefile

index e7ecb29..39160b5 100644 (file)
@@ -7,7 +7,11 @@ grml-scripts (1.1.17) unstable; urgency=low
     osd_server.py depends on them.
     [Closes: issue172]
 
- -- Michael Prokop <mika@grml.org>  Thu, 12 Feb 2009 19:26:04 +0100
+  [ Michael Prokop ]
+  * Adjust Makefile to get rid of '.sp' sequences in asciidoc
+    manpages. [Closes: issue567]
+
+ -- Michael Prokop <mika@grml.org>  Thu, 12 Feb 2009 20:49:56 +0100
 
 grml-scripts (1.1.16) unstable; urgency=low
 
index ff2d4ed..8bfac8c 100644 (file)
@@ -1,9 +1,13 @@
-
 %.html : %.txt ;
        asciidoc -b xhtml11 $^
 
 %.gz : %.txt ;
-       a2x -f manpage $^ 2>&1 |grep -v '^Note: ' >&2
+       #a2x -f manpage $^ 2>&1 |grep -v '^Note: ' >&2
+       #gzip -f --best $(patsubst %.txt,%, $^)
+       asciidoc -d manpage -b docbook $^
+       xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl  $(patsubst %.txt,%.xml, $^)
+       # try to get rid of ".sp" sequences, see http://bts.grml.org/grml/issue567
+       sed -i 's/\.sp//' $(patsubst %.txt,%, $^)
        gzip -f --best $(patsubst %.txt,%, $^)
 
 MANPAGES = $(patsubst %.txt,%,$(wildcard *.txt))