From 2c1ab416728c942ddf176f881f025840ada6bf93 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 5 Sep 2016 22:25:07 -0600 Subject: [PATCH] Fix release note html to remove xml bits Signed-off-by: Keith Packard --- doc/Makefile | 1 + doc/fix-html | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 doc/fix-html 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/]*>//' "$@" -- 2.30.2