diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12T13·15+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-03-12T13·24+0100 |
commit | d435e46daa98ffd268b6bb7221b0f3841f3a63ef (patch) | |
tree | 7c55ffbcd3a7139d31f68b28988c303f55e56a36 /doc | |
parent | e9934bb5ada1a974744c61479ca50c75c82e5836 (diff) |
Generate release notes again
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/local.mk | 29 | ||||
-rw-r--r-- | doc/manual/quote-literals.xsl | 10 |
2 files changed, 31 insertions, 8 deletions
diff --git a/doc/manual/local.mk b/doc/manual/local.mk index 4342215b0e44..0e583b281c33 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -76,7 +76,7 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid $(trace-gen) if test "$(dblatex)" != ""; then \ cd doc/manual && $(XSLTPROC) --xinclude --stringparam profile.condition manual \ $(docbookxsl)/profiling/profile.xsl manual.xml | \ - $(dblatex) -o manual.pdf $(dblatex_opts) -; \ + $(dblatex) -o $(notdir $@) $(dblatex_opts) -; \ else \ echo "Please install dblatex and rerun configure."; \ exit 1; \ @@ -84,3 +84,30 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid clean-files += $(d)/manual.pdf + +# Generate the release notes. + +NEWS_OPTS = \ + --stringparam generate.toc "article nop" \ + --stringparam section.autolabel.max.depth 0 \ + --stringparam header.rule 0 + +$(d)/release-notes.html: $(d)/release-notes.xml + $(trace-gen) $(XSLTPROC) --xinclude --output $@ $(NEWS_OPTS) \ + $(docbookxsl)/html/docbook.xsl $< + +NEWS: $(d)/release-notes.xml + $(trace-gen) $(XSLTPROC) --xinclude doc/manual/quote-literals.xsl $< | \ + $(XSLTPROC) --output $@.tmp.html $(NEWS_OPTS) \ + $(docbookxsl)/html/docbook.xsl - && \ + LANG=en_US.UTF-8 $(w3m) -dump $@.tmp.html > $@.tmp && \ + sed -e 's/●/*/g' -e 's/○/-/g' -e 's/━/-/g' < $@.tmp > NEWS && \ + rm $@.tmp $@.tmp.html + +dist-files += NEWS $(d)/release-notes.html + +clean-files += NEWS $(d)/release-notes.html + +all: $(d)/release-notes.html NEWS + +$(foreach file, $(d)/release-notes.html, $(eval $(call install-data-in, $(file), $(docdir)/manual))) diff --git a/doc/manual/quote-literals.xsl b/doc/manual/quote-literals.xsl index 03971bff90dc..5002643dbda4 100644 --- a/doc/manual/quote-literals.xsl +++ b/doc/manual/quote-literals.xsl @@ -7,9 +7,9 @@ extension-element-prefixes="str"> <xsl:output method="xml"/> - + <xsl:template match="function|command|literal|varname|filename|option|quote">`<xsl:apply-templates/>'</xsl:template> - + <xsl:template match="token"><xsl:text> </xsl:text><xsl:apply-templates /><xsl:text> </xsl:text></xsl:template> @@ -21,7 +21,7 @@ <section> <xsl:apply-templates /> <screen><xsl:text> - </xsl:text></screen> + </xsl:text></screen> </section> </xsl:template> @@ -37,8 +37,4 @@ </xsl:element> </xsl:template> - <xsl:template match="text()"> - <xsl:value-of select="translate(., '‘’“”—', concat("`'", '""-'))" /> - </xsl:template> - </xsl:stylesheet> |