<newsletter:website> Properly forward commands failure (oops)
Colomban Wendling
git-noreply at xxxxx
Tue Aug 23 22:03:03 UTC 2011
Updating branch refs/heads/website
to da6935e81f8c1ade30d766918926e5e25ae85542 (commit)
from 731e8034e5dc9d4a52ebf9a29950da4d5761df59 (commit)
commit da6935e81f8c1ade30d766918926e5e25ae85542
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Tue May 24 20:54:45 2011 +0200
Properly forward commands failure (oops)
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 4510829..3f724a6 100644
--- a/Makefile
+++ b/Makefile
@@ -42,8 +42,8 @@ clean:
.tex.pdf:
maxpasses=5; \
file=`basename $< .tex`; \
- cd `dirname $<` && \
- pdflatex $(PDFLATEX_FLAGS) "$$file.tex" > /dev/null && \
+ cd `dirname $<` || exit 1; \
+ pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 1; \
while test $$maxpasses -gt 0 && grep -q -i 'rerun' $$file.log; do \
pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 1; \
maxpasses=`expr $$maxpasses - 1`; \
More information about the Newsletter-Commits
mailing list