Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

Re: [PATCH] catch asciidoc failures

From: Martin Waitz <hidden>
Date: 2016-06-15 22:43:13

hoi :)

On Thu, May 31, 2007 at 11:23:57PM -0700, Scott Lamb wrote:
If pipefail is available (GNU bash >= 3.00), fail when asciidoc returns
error rather than possibly later during XSLT.
perhaps we should simply change the pipe ordering to get asciidoc
to the end of the pipeline so that all shells respect its exit code?
quoted hunk ↗ jump to hunk
--- 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' >$@+
something like (untested):
	sed -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' $< |
		$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \
			$(ASCIIDOC_EXTRA) -o $@+ -

-- 
Martin Waitz

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help