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

[PATCH] Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texi

From
Samuel Bronson <naesten@gmail.com>
Date
May 24, 2009, 22:51 UTC
Message-ID
<1243205465-12139-1-git-send-email-naesten@gmail.com>

This is handy for when docbook2x isn't installed. Without this change, we would just build a mostly-empty gitman.texi rather than failing as we should.

Signed-off-by: Samuel Bronson <naesten@gmail.com>
---
 Documentation/Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 144ec32..2998f0d 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -205,9 +205,11 @@ user-manual.pdf: user-manual.xml
 	mv $@+ $@
 
 gitman.texi: $(MAN_XML) cat-texi.perl
-	$(RM) $@+ $@
+	$(RM) $@++ $@+ $@
 	($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
-		--to-stdout $(xml);)) | $(PERL_PATH) cat-texi.perl $@ >$@+
+		--to-stdout $(xml);)) >$@++
+	$(PERL_PATH) cat-texi.perl $@ <$@++ >$@+
+	$(RM) $@++
 	mv $@+ $@
 
 gitman.info: gitman.texi
-- 
1.6.3.1
Message 1 of 1 in “Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texi”
  1. Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texiSamuel Bronson, May 24, 2009

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.