From f212e0380e3f58d5b865a84490ee45f6664704a2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 5 Mar 2008 14:37:41 +0000 Subject: [PATCH] svn path=/nixpkgs/trunk/; revision=10964 --- pkgs/misc/tex/nix/run-latex.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/tex/nix/run-latex.sh b/pkgs/misc/tex/nix/run-latex.sh index f7d642f6ea0c..13948400489f 100644 --- a/pkgs/misc/tex/nix/run-latex.sh +++ b/pkgs/misc/tex/nix/run-latex.sh @@ -37,7 +37,10 @@ showError() { runLaTeX() { if ! $latex $latexFlags $rootName >$tmpFile 2>&1; then showError; fi runNeeded= - if grep -q "LaTeX Warning: Label(s) may have changed." "$tmpFile"; then + if fgrep -q \ + -e "LaTeX Warning: Label(s) may have changed." \ + -e "Rerun to get citations correct." \ + "$tmpFile"; then runNeeded=1 fi }