Modify warning messages.

This commit is contained in:
mkalewski 2012-03-07 22:55:04 +01:00
parent 3021d4b1d0
commit 74430e0699
1 changed files with 4 additions and 20 deletions

View File

@ -34,7 +34,7 @@
# VERSION # VERSION
# ======= # =======
VERSION=3.0.4 VERSION=3.0.5
# PROGRAMS # PROGRAMS
@ -384,13 +384,7 @@ function run_pdflatex() {
echo " ${txtbld}(With errors! See $FILENAME.log file.)${txtrst}" echo " ${txtbld}(With errors! See $FILENAME.log file.)${txtrst}"
else else
AUXILIARYEXTS="$AUXILIARYEXTS log" AUXILIARYEXTS="$AUXILIARYEXTS log"
local ERR=`grep -i warning "$FILENAME".log` echo -e "\t\t\t\t${txtgrn}[done]${txtrst}"
echo -ne "\t\t\t\t${txtgrn}[done]"
if [[ -n $ERR ]] ; then
echo " (With warnings.)${txtrst}"
else
echo "${txtrst}"
fi
fi fi
} }
@ -555,12 +549,7 @@ else
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}"
else else
ERR=`grep -i "warning" "$FILENAME".log` echo "${txtgrn}[done]${txtrst}"
if [[ -n $ERR ]] ; then
echo "${txtgrn}[done] (With warnings.)${txtrst}"
else
echo "${txtgrn}[done]${txtrst}"
fi
echo -ne "$TEXT...\t\t\t\t" echo -ne "$TEXT...\t\t\t\t"
if [[ -n $APPENDSYNCTEX ]] ; then if [[ -n $APPENDSYNCTEX ]] ; then
$LATEX_PROGRAM $PDFLATEX_SYNCTEX_OPT $LATEX_BATCHMODE_OPT \ $LATEX_PROGRAM $PDFLATEX_SYNCTEX_OPT $LATEX_BATCHMODE_OPT \
@ -569,12 +558,7 @@ else
$LATEX_PROGRAM $LATEX_BATCHMODE_OPT "$PS4PDF_LATEX_OPT \ $LATEX_PROGRAM $LATEX_BATCHMODE_OPT "$PS4PDF_LATEX_OPT \
\input{$FILENAME}" >&- 2>&- \input{$FILENAME}" >&- 2>&-
fi fi
ERR=`grep -i "warning" "$FILENAME".log` echo "${txtgrn}[done]${txtrst}"
if [[ -n $ERR ]] ; then
echo "${txtgrn}[done] (With warnings.)${txtrst}"
else
echo "${txtgrn}[done]${txtrst}"
fi
AUXILIARYEXTS="$AUXILIARYEXTS log" AUXILIARYEXTS="$AUXILIARYEXTS log"
fi fi
fi fi