summaryrefslogtreecommitdiffstats
path: root/CustomTarget_html.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-02-25 10:45:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-02-25 10:51:15 +0100
commita72b5e90798aedb8945da175534986791d3d3352 (patch)
treedd7df02ed7fe36ab90066e8b7f23e37f68ac6ca1 /CustomTarget_html.mk
parentHousekeeping of Help file (diff)
downloadhelp-a72b5e90798aedb8945da175534986791d3d3352.tar.gz
help-a72b5e90798aedb8945da175534986791d3d3352.zip
Propagate xsltproc failure, part 2
...following up on c3509fb7e6675a38560c7e2764b21861d1e23362 "Propagate xsltproc failure". The while loops would only have a non-zero exit code if the xsltproc invocation in the last iteration of the loop fails. (Oddly, adding `set -e` instead seems to have no effect.) Change-Id: I9296a59147697595ebe7b0d2b742044f8a8a3f02 Reviewed-on: https://gerrit.libreoffice.org/68309 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'CustomTarget_html.mk')
-rw-r--r--CustomTarget_html.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/CustomTarget_html.mk b/CustomTarget_html.mk
index c9ef46cae8..38ca62b10e 100644
--- a/CustomTarget_html.mk
+++ b/CustomTarget_html.mk
@@ -46,7 +46,7 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/hid2file.js : \
rm -f $@.good && \
{ $(call gb_ExternalExecutable_get_command,xsltproc) $< $$xhp && touch $@.good; } \
| $(gb_AWK) 'NF' \
- && rm $@.good \
+ && rm $@.good || exit \
; done \
&& rm "$$RESPONSEFILE" \
&& echo '};' \
@@ -153,6 +153,7 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/html.text : \
-o $(dir $@)$${xhp%.xhp}.html \
$(SRCDIR)/helpcontent2/help3xsl/online_transform.xsl \
$(if $(filter WNT,$(OS)),$$(cygpath -m `pwd`),`pwd`)/$$xhp \
+ || exit \
; done \
&& rm "$$RESPONSEFILE" \
&& touch $@ \
@@ -218,6 +219,7 @@ $(call gb_CustomTarget_get_workdir,helpcontent2/help3xsl)/%/bookmarks.part : \
--stringparam productversion "$(PRODUCTVERSION)" \
$(SRCDIR)/helpcontent2/help3xsl/get_bookmark.xsl \
$$xhp \
+ || exit \
; done && touch $@.good; } \
| sort -k3b -t\> -s \
| awk 'NF' \