<newsletter:port_old_newsletter_to_new_system> Correctly report rst2latex failures
Colomban Wendling
git-noreply at xxxxx
Fri Jun 10 23:36:12 UTC 2011
Updating branch refs/heads/port_old_newsletter_to_new_system
to 101c639085fdd78a3e7a9f16065bb1088ef5709a (commit)
from da6935e81f8c1ade30d766918926e5e25ae85542 (commit)
commit 101c639085fdd78a3e7a9f16065bb1088ef5709a
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Wed May 25 17:26:35 2011 +0200
Correctly report rst2latex failures
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 3f724a6..d32fd8b 100644
--- a/Makefile
+++ b/Makefile
@@ -51,8 +51,8 @@ clean:
rm -f "$$file.log" "$$file.toc" "$$file.out" "$$file.aux"
.rst.tex:
- (rst2latex $(RST2LATEX_FLAGS) $< | \
- sed -f rst2latex.sed) > $@
+ rst2latex $(RST2LATEX_FLAGS) $< > $@ || rm -f $@
+ sed -f rst2latex.sed -i $@ || rm -f $@
.rst.odt:
rst2odt $< > $@
More information about the Newsletter-Commits
mailing list