Workaround for a summary of problems (errors and warnings) after compilation.

This commit is contained in:
mkalewski 2012-09-19 16:03:07 +02:00
parent f6c43cbcbe
commit 6ef41ceebc
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -34,7 +34,7 @@
# VERSION
# =======
VERSION=3.1.0
VERSION=3.1.1
# PROGRAMS
@ -574,8 +574,8 @@ fi
# Problems summary (part 1 of 2)
if [[ -n $SHOWSUMMARY ]] ; then
ERRORSNUM=`grep -i "^\! " "$FILENAME".log | wc -l`
ERRORS=`grep -A2 -i "^\! " "$FILENAME".log`
ERRORSNUM=`grep -i "^\!" "$FILENAME".log | wc -l`
ERRORS=`grep -A2 -i "^\!" "$FILENAME".log`
WARNINGS=`grep -i warning "$FILENAME".log | grep -v -i infwarerr`
WARNINGSNUM=`echo "$WARNINGS" | wc -l`
fi