summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-08-09 19:11:13 +0200
committerAndras Timar <andras.timar@collabora.com>2018-08-09 21:00:11 +0200
commit64c9b128c0f84e4a1d71cf9fd43532182ea8ba20 (patch)
treee40358e7ce1de9d39bcf63803a1f03d48e7048d2
parentbf35ef6d44af2999ccb64691ded0faf082946529 (diff)
Use PRODUCTNAME from the configure.
Change-Id: Ibc742e653f44093372bed4e103fedb3a597dfdac Reviewed-on: https://gerrit.libreoffice.org/58792 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--CustomTarget_html.mk9
-rw-r--r--help3xsl/get_bookmark.xsl2
-rw-r--r--help3xsl/get_tree.xsl2
-rw-r--r--help3xsl/get_url.xsl5
-rw-r--r--help3xsl/online_transform.xsl6
5 files changed, 10 insertions, 14 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index 8f62975feb..b1f3fd8ec3 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -80,7 +80,8 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/contents.part : \
$(call gb_ExternalExecutable_get_command,xsltproc) \
--stringparam lang $(LANG) \
--stringparam local $(if $(HELP_ONLINE),'no','yes') \
- --stringparam productversion $(PRODUCTVERSION) \
+ --stringparam productname "$(PRODUCTNAME)" \
+ --stringparam productversion "$(PRODUCTVERSION)" \
-o $@ \
$(SRCDIR)/helpcontent2/help3xsl/get_tree.xsl \
$(TREE_FILE) \
@@ -112,7 +113,8 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
--stringparam Language $* \
--stringparam local $(if $(HELP_ONLINE),'no','yes') \
--stringparam root $(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/ \
- --stringparam productversion $(PRODUCTVERSION) \
+ --stringparam productname "$(PRODUCTNAME)" \
+ --stringparam productversion "$(PRODUCTVERSION)" \
-o $(dir $@)$${xhp%.xhp}.html \
$(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \
$(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/$$xhp \
@@ -174,7 +176,8 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/bookmarks.part : \
--stringparam app $(APP) \
--stringparam Language $(HELP_LANG) \
--stringparam local $(if $(HELP_ONLINE),'no','yes') \
- --stringparam productversion $(PRODUCTVERSION) \
+ --stringparam productname "$(PRODUCTNAME)" \
+ --stringparam productversion "$(PRODUCTVERSION)" \
$(SRCDIR)/helpcontent2/help3xsl/get_bookmark.xsl \
$$xhp \
; done \
diff --git a/help3xsl/get_bookmark.xsl b/help3xsl/get_bookmark.xsl
index 5c0bc8cff0..b3e0ab48bb 100644
--- a/help3xsl/get_bookmark.xsl
+++ b/help3xsl/get_bookmark.xsl
@@ -18,7 +18,7 @@ xsltproc get_bookmark.xsl <file.xhp>
<xsl:param name="app"/>
<xsl:param name="local"/>
<xsl:param name="Language"/>
-<xsl:param name="productname" select="'LibreOffice'"/>
+<xsl:param name="productname"/>
<xsl:param name="productversion"/>
<xsl:output indent="yes" method="text"/>
diff --git a/help3xsl/get_tree.xsl b/help3xsl/get_tree.xsl
index e20774dd0c..749dd4a53d 100644
--- a/help3xsl/get_tree.xsl
+++ b/help3xsl/get_tree.xsl
@@ -16,7 +16,7 @@ xsltproc get_tree.xsl <file.tree>
<xsl:param name="lang"/>
<xsl:param name="local"/>
<xsl:param name="productversion"/>
-<xsl:param name="productname" select="'LibreOffice'"/>
+<xsl:param name="productname"/>
<xsl:output indent="no" method="text"/>
<!--
############################
diff --git a/help3xsl/get_url.xsl b/help3xsl/get_url.xsl
index 0f9a3f1a5d..59e2e4edd5 100644
--- a/help3xsl/get_url.xsl
+++ b/help3xsl/get_url.xsl
@@ -15,11 +15,6 @@ xsltproc get_bookmark.xsl <file.xhp>
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:param name="app"/>
-<xsl:param name="Language"/>
-<xsl:param name="productname" select="'LibreOffice'"/>
-<xsl:param name="productversion"/>
-
<xsl:output indent="yes" method="text"/>
<!--
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index ef2c79761e..8c01a9ea77 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -29,18 +29,16 @@
############################
//-->
-<xsl:param name="productversion"/>
<xsl:param name="local" />
<xsl:param name="root"/>
<xsl:param name="Language"/>
+<xsl:param name="productname"/>
+<xsl:param name="productversion"/>
-<xsl:param name="productname" select="'LibreOffice'"/>
<xsl:param name="System" select="'WIN'"/>
<xsl:param name="imgtheme" select="''"/>
<xsl:param name="Id" />
-
-
<!-- General Usage -->
<xsl:variable name="am" select="'&amp;'"/>
<xsl:variable name="sl" select="'/'"/>