summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/doc/examples/runAll.sh
blob: 836c85d33e7de726b27770e5afaa0ae7c032cea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
for datei in *.tex
do
   RUNS=1
   echo "LuaLaTeX-Lauf Nr. $RUNS von $datei ======================================="
   lualatex --interaction=nonstopmode $datei >/dev/null
   MAIN=$(basename -a -s .tex $datei)
   TEST=`grep -c "Label(s) may have changed." $MAIN.log`
   while [ $TEST -gt 0 ]; 
   do
     let RUNS=RUNS+1
     echo "LuaLaTeX-Lauf Nr. $RUNS von $datei ======================================="
     lualatex --interaction=nonstopmode $datei >/dev/null
     TEST=`grep -c "Label(s) may have changed." $MAIN.log `
     if [ $RUNS -gt 4 ]
     then TEST=0
     fi
   done
   rm -fr $MAIN.aux $MAIN.log $MAIN.out $MAIN.toc $MAIN.lof $MAIN.run.xml $MAIN.bcf $MAIN.lot $MAIN.idx 
done