git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] catch asciidoc failures

From
SLScott Lamb <slamb@slamb.org>
Date
Jun 1, 2007, 06:23 UTC
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 <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
Next: Martin Waitz
Message 1 of 7 in “catch asciidoc failures”
  1. catch asciidoc failuresScott Lamb, Jun 1, 2007
  2. Martin WaitzJun 1, 2007
  3. Jonas FonsecaJun 1, 2007
  4. Jeff KingJun 1, 2007
  5. Martin WaitzJun 1, 2007
  6. Jeff KingJun 1, 2007
  7. Scott LambJun 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.