diff options
author | Keith Packard <keithp@keithp.com> | 2016-09-05 22:25:07 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-09-05 22:25:07 -0600 |
commit | 2c1ab416728c942ddf176f881f025840ada6bf93 (patch) | |
tree | 8c927f1d2e17d03a3a9e2ef57e2b2a3dd828c22c | |
parent | 4fdf8ca9ca1cd5a84b03bd7a03c5806af64b413d (diff) |
Fix release note html to remove xml bits
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | doc/Makefile | 1 | ||||
-rwxr-xr-x | doc/fix-html | 4 |
2 files changed, 5 insertions, 0 deletions
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/<!DOCTYPE [^>]*>//' "$@" |