forked from lix-project/lix
Generate release notes again
This commit is contained in:
parent
e9934bb5ad
commit
d435e46daa
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -33,8 +33,7 @@ Makefile.config
|
||||||
/doc/manual/*.8
|
/doc/manual/*.8
|
||||||
/doc/manual/images
|
/doc/manual/images
|
||||||
/doc/manual/version.txt
|
/doc/manual/version.txt
|
||||||
/doc/manual/NEWS.html
|
/doc/manual/release-notes.html
|
||||||
/doc/manual/NEWS.txt
|
|
||||||
|
|
||||||
# /scripts/
|
# /scripts/
|
||||||
/scripts/nix-profile.sh
|
/scripts/nix-profile.sh
|
||||||
|
|
|
@ -29,5 +29,6 @@ pkglibdir = $(libdir)/$(PACKAGE_NAME)
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
storedir = @storedir@
|
storedir = @storedir@
|
||||||
sysconfdir = @sysconfdir@
|
sysconfdir = @sysconfdir@
|
||||||
|
w3m = @w3m@
|
||||||
xmllint = @xmllint@
|
xmllint = @xmllint@
|
||||||
xsltproc = @xsltproc@
|
xsltproc = @xsltproc@
|
||||||
|
|
|
@ -76,7 +76,7 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid
|
||||||
$(trace-gen) if test "$(dblatex)" != ""; then \
|
$(trace-gen) if test "$(dblatex)" != ""; then \
|
||||||
cd doc/manual && $(XSLTPROC) --xinclude --stringparam profile.condition manual \
|
cd doc/manual && $(XSLTPROC) --xinclude --stringparam profile.condition manual \
|
||||||
$(docbookxsl)/profiling/profile.xsl manual.xml | \
|
$(docbookxsl)/profiling/profile.xsl manual.xml | \
|
||||||
$(dblatex) -o manual.pdf $(dblatex_opts) -; \
|
$(dblatex) -o $(notdir $@) $(dblatex_opts) -; \
|
||||||
else \
|
else \
|
||||||
echo "Please install dblatex and rerun configure."; \
|
echo "Please install dblatex and rerun configure."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
@ -84,3 +84,30 @@ $(d)/manual.pdf: $(d)/manual.xml $(MANUAL_SRCS) $(d)/manual.is-valid
|
||||||
|
|
||||||
clean-files += $(d)/manual.pdf
|
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)))
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
extension-element-prefixes="str">
|
extension-element-prefixes="str">
|
||||||
|
|
||||||
<xsl:output method="xml"/>
|
<xsl:output method="xml"/>
|
||||||
|
|
||||||
<xsl:template match="function|command|literal|varname|filename|option|quote">`<xsl:apply-templates/>'</xsl:template>
|
<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:template match="token"><xsl:text> </xsl:text><xsl:apply-templates /><xsl:text>
|
||||||
</xsl:text></xsl:template>
|
</xsl:text></xsl:template>
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
<section>
|
<section>
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
<screen><xsl:text>
|
<screen><xsl:text>
|
||||||
</xsl:text></screen>
|
</xsl:text></screen>
|
||||||
</section>
|
</section>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@ -37,8 +37,4 @@
|
||||||
</xsl:element>
|
</xsl:element>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="text()">
|
|
||||||
<xsl:value-of select="translate(., '‘’“”—', concat("`'", '""-'))" />
|
|
||||||
</xsl:template>
|
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -69,7 +69,7 @@ let
|
||||||
|
|
||||||
echo "doc manual $out/share/doc/nix/manual" >> $out/nix-support/hydra-build-products
|
echo "doc manual $out/share/doc/nix/manual" >> $out/nix-support/hydra-build-products
|
||||||
echo "doc-pdf manual $out/manual.pdf" >> $out/nix-support/hydra-build-products
|
echo "doc-pdf manual $out/manual.pdf" >> $out/nix-support/hydra-build-products
|
||||||
echo "doc release-notes $out/share/doc/nix/release-notes" >> $out/nix-support/hydra-build-products
|
echo "doc release-notes $out/share/doc/nix/manual release-notes.html" >> $out/nix-support/hydra-build-products
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue