summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-22 14:21:49 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-22 13:35:14 +0000
commit422240e98d01fab6d4f98bf1aeec3de67f0128c7 (patch)
treeabb35d0b2fbf8fa0c180031573f540c53befad3f
parent723ac8a76d0736f3405bc87af9002cbbf4c74031 (diff)
make html.text target make more robust on windows re CR at EOL
some cygwin setups still treat the final CR as part of the filename, so avoid that problem alltogether by simply appending a dummy entry to each line on the responsefile to catch any stray EOL/EOF characters Change-Id: I624eeeca033f72b2845394b44f27b6e32d01eb70 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144758 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> (cherry picked from commit 9871dc3b0f8eb24793fc797d478db534d92ec5d7) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144722
-rw-r--r--CustomTarget_html.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index 9a885b46af..0e955e5231 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -210,8 +210,8 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1)
rm -rf $(dir $@)text && mkdir -p $(dir $@)text && cd $(dir $@)text && mkdir -p $(sort $(subst helpcontent2/source/text/,,$(dir $(gb_html_allhelpfiles)))) \
&& cd $(if $(filter en-US,$*),$(SRCDIR),$(call gb_HelpTranslatePartTarget_get_workdir,$*)) \
- && RESPONSEFILE=$(call gb_var2file,$(shell $(gb_MKTEMP)),$(addsuffix $(NEWLINE),$(subst helpcontent2/source/,,$(gb_html_allhelpfiles)))) \
- && while read xhp; do \
+ && RESPONSEFILE=$(call gb_var2file,$(shell $(gb_MKTEMP)),$(addsuffix $(WHITESPACE)dummyIgnoreCRinEOL$(NEWLINE),$(subst helpcontent2/source/,,$(gb_html_allhelpfiles)))) \
+ && while read xhp dummy; do \
$(call gb_ExternalExecutable_get_command,xsltproc) \
--stringparam Language $* \
--stringparam local $(if $(HELP_ONLINE),'no','yes') \