On 15 September 2015 at 22:49, Vincent Belaïche <vincent.belai...@gmail.com> wrote: > There is another optimization that could be done: at the end of the loop > run_bibtex and run_index are launched one more time even though that > could be useless if the loop is broken immediately afterwards (running > index and bibtex is useful only if we make a loop and have again a core > conversion, otherwise it does not have any impact on the finale output). > > In other words we have: > > run_core_conversion > run_bibtex > run_index > xref_files_changed || break > > While it should be > > > run_core_conversion > xref_files_changed || break > run_bibtex > run_index > > However, I have tried the above, but it results in an infinite loop > (broken after the max 7 cycles allowed). I am not yet sure why this > happens : if I place the break condition before run_bibtex, then I get > (with verbose -V) the following output:
I've moved the test (rev. 6629) to eliminate the extra call to run_index, and tweaked how the "fls" files are saved to prevent an infinite loop.