CustomTarget_html.mk          |   18 ++++++++++++------
 help3xsl/online_transform.xsl |    2 +-
 2 files changed, 13 insertions(+), 7 deletions(-)

New commits:
commit 3e0fb08cce8581d5d10fc5f0e44a26451bf5b794
Author:     Olivier Hallot <olivier.hal...@libreoffice.org>
AuthorDate: Tue May 12 16:56:00 2020 -0300
Commit:     Thorsten Behrens <thorsten.behr...@cib.de>
CommitDate: Wed May 13 21:21:34 2020 +0200

    tdf#128519 Icon replacement table in build time
    
    As explained in tdf#128519, command <include> in XLST must
    have its href= hardcoded. Thus, copy online_transform.xsl and
    create links.txtx.xsl in workdir/
    
    Change-Id: I979fd58f16a51ae6f57fc6f87349700eafdefbd7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94082
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index cd53b9c6a..ba0f73102 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -155,8 +155,14 @@ $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/contents.part : \
                        $(TREE_FILE) \
        )
 
-# link txt file for icon replacement table
-$(SRCDIR)/helpcontent2/helpers/links.txt.xsl: \
+# link txt file for icon replacement table - tdf#128519
+# copy online_transform.xsl to workdir and build links.txt.xsl
+$(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl/online_transform.xsl) 
: \
+               $(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl
+       cp $(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl $@
+
+$(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl/links.txt.xsl) : \
+               $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl/online_transform.xsl) \
                $(SRCDIR)/icon-themes/colibre/links.txt \
                $(SRCDIR)/helpcontent2/helpers/make_icon_link.txt.py \
                $(call gb_ExternalExecutable_get_dependencies,python)
@@ -164,7 +170,7 @@ $(SRCDIR)/helpcontent2/helpers/links.txt.xsl: \
 
 define html_gen_html_dep
 $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/$(1)/html.text : \
-               $(SRCDIR)/helpcontent2/helpers/links.txt.xsl \
+               $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl/links.txt.xsl) \
        $(foreach module,$(html_TEXT_MODULES), \
                $(if $(filter en-US,$(1)), \
                        $(call gb_AllLangHelp_get_helpfiles_target,$(module)), \
@@ -175,7 +181,7 @@ endef
 $(eval $(foreach lang,$(gb_HELP_LANGS),$(call html_gen_html_dep,$(lang))))
 
 $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
-               $(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \
+               $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl/links.txt.xsl) \
                $(call gb_ExternalExecutable_get_dependencies,xsltproc)
        $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1)
        $(call gb_Helper_abbreviate_dirs,\
@@ -193,14 +199,14 @@ $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
                                --stringparam productversion 
"$(PRODUCTVERSION)" \
                                --stringparam xapian $(if $(filter TRUE, 
$(HELP_OMINDEX_PAGE)),'yes','no') \
                                -o $(dir $@)$${xhp%.xhp}.html \
-                               
$(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \
+                               $(call 
gb_CustomTarget_get_workdir,helpcontent2/help3xsl/online_transform.xsl) \
                                $(if $(filter WNT,$(OS)),$$(cygpath -m 
`pwd`),`pwd`)/$$xhp \
                        || exit \
                ; done \
                && rm "$$RESPONSEFILE" \
                && touch $@ \
        )
-       
+
 $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/bookmarks.js :
        $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,2)
        $(call gb_Helper_abbreviate_dirs,\
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 62e0e976c..573967c19 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -21,7 +21,7 @@
 
 <xsl:output indent="yes" method="html" doctype-system= "about:legacy-compat"/>
 
-<xsl:include href="../helpers/links.txt.xsl"/>
+<xsl:include href="links.txt.xsl"/>
 <!--
 ############################
 # Variables and Parameters #
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to