Git development
 help / color / mirror / Atom feed
* [PATCH] catch asciidoc failures
@ 2007-06-01  6:23 Scott Lamb
  2007-06-01  8:36 ` Martin Waitz
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Lamb @ 2007-06-01  6:23 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Scott Lamb

If pipefail is available (GNU bash >= 3.00), fail when asciidoc returns
error rather than possibly later during XSLT.

Signed-off-by: Scott Lamb <slamb@slamb.org>
---
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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-06-01  9:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01  6:23 [PATCH] catch asciidoc failures Scott Lamb
2007-06-01  8:36 ` Martin Waitz
2007-06-01  8:55   ` Jonas Fonseca
2007-06-01  9:10   ` Jeff King
2007-06-01  9:39     ` Martin Waitz
2007-06-01  9:43       ` Jeff King
2007-06-01  9:46     ` Scott Lamb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox