Permalink
Browse files

Use different error codes for the different commands for easier debug…

…ging
  • Loading branch information...
1 parent 0eed331 commit 9a28f00a59dde82be136eac9f31a09e565c84054 @b4n b4n committed Dec 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 Makefile
View
@@ -38,9 +38,9 @@ clean:
maxpasses=5; \
file=`basename $< .tex`; \
cd `dirname $<` || exit 1; \
- pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 1; \
+ pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 2; \
while test $$maxpasses -gt 0 && grep -q -i 'rerun' $$file.log; do \
- pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 1; \
+ pdflatex $(PDFLATEX_FLAGS) "$$file.tex" >/dev/null || exit 3; \
maxpasses=`expr $$maxpasses - 1`; \
done; \
rm -f "$$file.log" "$$file.toc" "$$file.out" "$$file.aux"

0 comments on commit 9a28f00

Please sign in to comment.