Browse Source

factor error-ignoring code into a function

master
Matthieu Moy 10 years ago
parent
commit
397a32a51c
  1. 12
      git-latexdiff

12
git-latexdiff

@ -515,6 +515,13 @@ else
bblexpand=()
fi
ignore_errors_maybe() {
if [ "$compile_error" = 1 ] && [ "$ignorelatexerrors" = 1 ]; then
echo "LaTeX errors were found - but attempting to carry on."
compile_error=0
fi
}
# Create flattened documents and keep for debugging
if test "$flatten" = 1; then
if [ "$bbl" = 1 ]; then
@ -597,10 +604,7 @@ fi
verbose_done
if [ "$compile_error" = 1 ] && [ "$ignorelatexerrors" = 1 ]; then
echo "LaTeX errors were found - but attempting to carry on."
compile_error=0
fi
ignore_errors_maybe
if test $latex = 1; then
dvips "$mainbase".dvi

Loading…
Cancel
Save