git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texi
@ 2009-05-24 22:51 Samuel Bronson
  0 siblings, 0 replies; only message in thread
From: Samuel Bronson @ 2009-05-24 22:51 UTC (permalink / raw)
  To: gitster; +Cc: git, Samuel Bronson

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-24 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-24 22:51 [PATCH] Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texi Samuel Bronson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).