Commit 56051878 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 710998 - latex_count=5 is not enough

parent 27738c55
...@@ -126,7 +126,7 @@ static void writeLatexMakefile() ...@@ -126,7 +126,7 @@ static void writeLatexMakefile()
} }
t << "\techo \"Rerunning latex....\"" << endl t << "\techo \"Rerunning latex....\"" << endl
<< "\t" << latex_command << " refman.tex" << endl << "\t" << latex_command << " refman.tex" << endl
<< "\tlatex_count=5 ; \\" << endl << "\tlatex_count=8 ; \\" << endl
<< "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\\" << endl << "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\\" << endl
<< "\t do \\" << endl << "\t do \\" << endl
<< "\t echo \"Rerunning latex....\" ;\\" << endl << "\t echo \"Rerunning latex....\" ;\\" << endl
...@@ -154,7 +154,7 @@ static void writeLatexMakefile() ...@@ -154,7 +154,7 @@ static void writeLatexMakefile()
t << "\tpdflatex refman" << endl; t << "\tpdflatex refman" << endl;
} }
t << "\tpdflatex refman" << endl t << "\tpdflatex refman" << endl
<< "\tlatex_count=5 ; \\" << endl << "\tlatex_count=8 ; \\" << endl
<< "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\\" << endl << "\twhile egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\\" << endl
<< "\t do \\" << endl << "\t do \\" << endl
<< "\t echo \"Rerunning latex....\" ;\\" << endl << "\t echo \"Rerunning latex....\" ;\\" << endl
...@@ -199,7 +199,7 @@ static void writeMakeBat() ...@@ -199,7 +199,7 @@ static void writeMakeBat()
t << latex_command << " refman.tex\n"; t << latex_command << " refman.tex\n";
} }
t << "setlocal enabledelayedexpansion\n"; t << "setlocal enabledelayedexpansion\n";
t << "set count=5\n"; t << "set count=8\n";
t << ":repeat\n"; t << ":repeat\n";
t << "set content=X\n"; t << "set content=X\n";
t << "for /F \"tokens=*\" %%T in ( 'findstr /C:\"Rerun LaTeX\" refman.log' ) do set content=\"%%~T\"\n"; t << "for /F \"tokens=*\" %%T in ( 'findstr /C:\"Rerun LaTeX\" refman.log' ) do set content=\"%%~T\"\n";
...@@ -231,7 +231,7 @@ static void writeMakeBat() ...@@ -231,7 +231,7 @@ static void writeMakeBat()
t << "echo ----\n"; t << "echo ----\n";
t << "pdflatex refman\n\n"; t << "pdflatex refman\n\n";
t << "setlocal enabledelayedexpansion\n"; t << "setlocal enabledelayedexpansion\n";
t << "set count=5\n"; t << "set count=8\n";
t << ":repeat\n"; t << ":repeat\n";
t << "set content=X\n"; t << "set content=X\n";
t << "for /F \"tokens=*\" %%T in ( 'findstr /C:\"Rerun LaTeX\" refman.log' ) do set content=\"%%~T\"\n"; t << "for /F \"tokens=*\" %%T in ( 'findstr /C:\"Rerun LaTeX\" refman.log' ) do set content=\"%%~T\"\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment