From: Scott Lamb Date: Fri, 01 Jun 2007 06:23:57 GMT Subject: [PATCH] catch asciidoc failures Message-ID: <11806790373908-git-send-email-slamb@slamb.org> If pipefail is available (GNU bash >= 3.00), fail when asciidoc returns error rather than possibly later during XSLT. Signed-off-by: Scott Lamb --- This is my first git patch, so please let me know if I got the procedure wrong. Documentation/Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index 3f92783..48c245c 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -111,6 +111,7 @@ clean: %.html : %.txt rm -f $@+ $@ + set -o pipefail 2>/dev/null; \ $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \ $(ASCIIDOC_EXTRA) -o - $< | \ sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' >$@+ @@ -121,6 +122,7 @@ clean: %.xml : %.txt rm -f $@+ $@ + set -o pipefail 2>/dev/null; \ $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \ $(ASCIIDOC_EXTRA) -o - $< | \ sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' >$@+ -- 1.5.2