Adjust Makefile to get rid of '.sp' sequences in asciidoc manpages. [Closes: issue567]
[grml-scripts.git] / doc / Makefile
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))