Le 24/05/2011 16:14, Frank Lanitz a écrit :
Not sure what I'm doing wrong, but not working:
frlan@ubuntu:~/git/newsletter$ LANG=C vol=2 make pdf maxpasses=5; \ file=`basename vol_2/newsletter_2.tex .tex`; \ cd `dirname vol_2/newsletter_2.tex` && \ pdflatex -interaction batchmode "$file.tex" > /dev/null && \ while test $maxpasses -gt 0 && grep -q -i 'rerun' $file.log; do \ pdflatex -interaction batchmode "$file.tex" >/dev/null || exit 1; \ maxpasses=`expr $maxpasses - 1`; \ done; \ rm "$file.log" "$file.toc" "$file.out" "$file.aux" rm: cannot remove `newsletter_2.toc': No such file or directory rm: cannot remove `newsletter_2.out': No such file or directory rm: cannot remove `newsletter_2.aux': No such file or directory make: *** [vol_2/newsletter_2.pdf] Error 1
Seems your pdflatex don't generate .toc, .out and .aux... no idea if it's normal behavior (mine does output them), but I pushed a fix not to fail if one of these files don't exist, so it should be fixed.
Cheers, Colomban