aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2012-09-20 16:33:14 +0200
committerLars Thorsen <[email protected]>2012-11-16 12:04:37 +0100
commitf0197373229b7ef72ef808476bfcb65eebfd1b82 (patch)
tree32e136058ec3ae60473c0f64dff5845722343e17
parent1ed373b9ef39f70c1135a53fe7f715944b8abc23 (diff)
downloadotp-f0197373229b7ef72ef808476bfcb65eebfd1b82.tar.gz
otp-f0197373229b7ef72ef808476bfcb65eebfd1b82.tar.bz2
otp-f0197373229b7ef72ef808476bfcb65eebfd1b82.zip
[erl_docgen] Add possibility to specify pdf filename
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl9
-rw-r--r--make/otp_release_targets.mk1
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index 609f5b7497..ab5f24c406 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -752,7 +752,14 @@
<xsl:if test="boolean(/book/releasenotes)">
<a href="release_notes.html">Release Notes</a><br/>
</xsl:if>
- <a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
+ <xsl:choose>
+ <xsl:when test="string-length($pdfname) > 0">
+ <a href="{$pdfdir}/{$pdfname}.pdf">PDF</a><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
+ </xsl:otherwise>
+ </xsl:choose>
<a href="{$topdocdir}/index.html">Top</a>
</small>
</xsl:template>
diff --git a/make/otp_release_targets.mk b/make/otp_release_targets.mk
index f0cbee8fc2..79ce6883c8 100644
--- a/make/otp_release_targets.mk
+++ b/make/otp_release_targets.mk
@@ -45,6 +45,7 @@ $(HTMLDIR)/index.html: $(XML_FILES) $(SPECS_FILES)
--stringparam stylesheet "$(CSS_FILE)" \
--stringparam winprefix "$(WINPREFIX)" \
--stringparam logo "$(HTMLLOGO_FILE)" \
+ --stringparam pdfname "$(PDFNAME)" \
-path $(DOCGEN)/priv/dtd \
-path $(DOCGEN)/priv/dtd_html_entities \
$(DOCGEN)/priv/xsl/db_html.xsl book.xml