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
:Source: https://github.com/mkalewski/pdflatex.sh
:Version: 3.1.3
:Version: 3.1.4
Name

View File

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