Improve triple compilation.

Triple compilation now also takes place after 'bibtex' and 'makeindex'.
This commit is contained in:
Michal Kalewski 2013-03-26 11:34:29 +01:00
parent 9bacd2f9b9
commit 0760f71ed3
2 changed files with 31 additions and 28 deletions

View File

@ -4,7 +4,7 @@ pdflatex.sh
:Author: Michał Kalewski :Author: Michał Kalewski
:Source: https://github.com/mkalewski/pdflatex.sh :Source: https://github.com/mkalewski/pdflatex.sh
:Version: 3.1.3 :Version: 3.1.4
Name Name

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# UTF-8 # UTF-8
# (c) 2007-2012 Michal Kalewski <mkalewski at cs.put.poznan.pl> # (c) 2007-2012 Michal Kalewski <mkalewski at cs.put.poznan.pl>
@ -34,7 +34,7 @@
# VERSION # VERSION
# ======= # =======
VERSION=3.1.3 VERSION=3.1.4
# PROGRAMS # PROGRAMS
@ -543,6 +543,7 @@ if [[ -n $MAKEONLYINDEXARG ]] ; then
fi fi
# Final (pdf)latex compilation # Final (pdf)latex compilation
for X in `seq 1 $THRICE` ; do
if [[ -z $USEPS4PDFARG ]] ; then if [[ -z $USEPS4PDFARG ]] ; then
run_pdflatex run_pdflatex
else else
@ -553,7 +554,8 @@ else
fi fi
echo -ne "${txtund}PS4PDF${txtrst}...\t\t\t\t" echo -ne "${txtund}PS4PDF${txtrst}...\t\t\t\t"
$PS4PDF_PROGRAM "$FILENAME" >&- 2>&- $PS4PDF_PROGRAM "$FILENAME" >&- 2>&-
ERR=`egrep -i "error|emergency stop" "$FILENAME".log | grep -v -i infwarerr` ERR=\
`egrep -i "error|emergency stop" "$FILENAME".log | grep -v -i infwarerr`
if [[ -n $ERR ]] ; then if [[ -n $ERR ]] ; then
echo -ne "${txtred}[done]" echo -ne "${txtred}[done]"
echo " ${txtbld}(With errors! See $FILENAME.log file.)${txtrst}" echo " ${txtbld}(With errors! See $FILENAME.log file.)${txtrst}"
@ -571,6 +573,7 @@ else
AUXILIARYEXTS="$AUXILIARYEXTS log" AUXILIARYEXTS="$AUXILIARYEXTS log"
fi fi
fi fi
done
# Problems summary (part 1 of 2) # Problems summary (part 1 of 2)
if [[ -n $SHOWSUMMARY ]] ; then if [[ -n $SHOWSUMMARY ]] ; then