From 8e9f316c08b2ebe16c2db6c6341e320e8890fc0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 6 Jan 2023 23:33:03 +0000 Subject: [PATCH] build: propagate failures from asciidoctor --- Makefile.am | 1 + po-man/Makefile.am | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a847a55020..3da0e8715c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -230,6 +230,7 @@ asciidoc_man_cmd = $(ASCIIDOCTOR) \ -a 'package-docdir=$(docdir)' \ -a 'VERSION=$(VERSION)' \ -a 'ADJTIME_PATH=$(ADJTIME_PATH)' \ + --failure-level ERROR \ --load-path '$(abs_srcdir)/tools' \ --require asciidoctor-includetracker diff --git a/po-man/Makefile.am b/po-man/Makefile.am index c40e74793c..12d1e92ead 100644 --- a/po-man/Makefile.am +++ b/po-man/Makefile.am @@ -34,11 +34,13 @@ asciidoc_man_cmd = $(ASCIIDOCTOR) \ -a 'package-docdir=$(docdir)' \ -a 'VERSION=$(VERSION)' \ -a 'ADJTIME_PATH=$(ADJTIME_PATH)' \ + --failure-level ERROR \ --load-path '$(top_srcdir)/tools' \ --require asciidoctor-unicodeconverter gen-mans: gen-trans - @for l in $(PO_LANGS); do \ + @set -e; \ + for l in $(PO_LANGS); do \ gendir="$(abs_builddir)/$$l"; \ genfiles=`echo $${gendir}/*.adoc`; \ if test "$$genfiles" != '$${gendir}/*.adoc'; then \ -- 2.47.2