Fix release note html to remove xml bits
authorKeith Packard <keithp@keithp.com>
Tue, 6 Sep 2016 04:25:07 +0000 (22:25 -0600)
committerKeith Packard <keithp@keithp.com>
Tue, 6 Sep 2016 04:25:07 +0000 (22:25 -0600)
Signed-off-by: Keith Packard <keithp@keithp.com>
doc/Makefile
doc/fix-html [new file with mode: 0755]

index e6fb95abc5c8deed5459df5916c8f5a05fc8eaa8..96b23fc6c4732b471af6fb60004444ad57abdb09 100644 (file)
@@ -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 (executable)
index 0000000..d8751e4
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+sed -i \
+-e 's/<[?]xml [^>]*>//' \
+-e 's/<!DOCTYPE [^>]*>//' "$@"