From: Samuel Bronson <naesten@gmail.com>
To: gitster@pobox.com
Cc: git@vger.kernel.org, Samuel Bronson <naesten@gmail.com>
Subject: [PATCH] Have make fail when $(DOCBOOK2X_TEXI) fails in building gitman.texi
Date: Sun, 24 May 2009 18:51:05 -0400 [thread overview]
Message-ID: <1243205465-12139-1-git-send-email-naesten@gmail.com> (raw)
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
reply other threads:[~2009-05-24 22:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1243205465-12139-1-git-send-email-naesten@gmail.com \
--to=naesten@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).