diff options
Diffstat (limited to 'doc')
-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 [^>]*>//' "$@" |