Fix manpage handling of xsltproc
[grml-network.git] / docs / Makefile
index a98def2..3cd60ac 100644 (file)
@@ -18,6 +18,8 @@ man1 = $(usr)/share/man/man1/
        asciidoc -d manpage -b docbook $^
        #sed -i 's/<emphasis role="strong">/<emphasis role="bold">/g' `echo $^ |sed -e 's/.txt/.xml/'`
        xsltproc -nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'` &>/dev/null
+       # ugly hack to avoid '.sp' at the end of a sentence or paragraph:
+       sed -i 's/\.sp//' `echo $^ | sed -e 's/.txt//'`
        gzip -f --best `echo $^ |sed -e 's/.txt//'`