From: Keith Packard Date: Tue, 6 Sep 2016 04:25:07 +0000 (-0600) Subject: Fix release note html to remove xml bits X-Git-Tag: 1.7~214 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=2c1ab416728c942ddf176f881f025840ada6bf93 Fix release note html to remove xml bits Signed-off-by: Keith Packard --- diff --git a/doc/Makefile b/doc/Makefile index e6fb95ab..96b23fc6 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -237,6 +237,7 @@ DOC=$(HTML) $(HTML_REVHISTORY) $(PDF) $(IMAGES) $(STYLESHEET) .raw.pdf: a2x --verbose -a docinfo -f pdf --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(FOP_STYLE) --fop --fop-opts="-c $(FOP_XCONF)" $*.raw a2x --verbose -a docinfo -f xhtml --xsltproc-opts "--stringparam toc.section.depth 2" --xsl-file $(HTML_STYLE) --stylesheet=$(STYLESHEET) $*.raw + case $* in release-notes*) ./fix-html $*.html ;; esac .pdf.html: @touch $@ diff --git a/doc/fix-html b/doc/fix-html new file mode 100755 index 00000000..d8751e4d --- /dev/null +++ b/doc/fix-html @@ -0,0 +1,4 @@ +#!/bin/sh +sed -i \ +-e 's/<[?]xml [^>]*>//' \ +-e 's/]*>//' "$@"