17 lines
340 B
Bash
17 lines
340 B
Bash
|
#!/bin/bash
|
||
|
function finish {
|
||
|
killall entr
|
||
|
}
|
||
|
|
||
|
if [ ! -f main.pdf ]; then
|
||
|
xelatex -shell-escape -8bit main
|
||
|
fi
|
||
|
|
||
|
makeglossaries main
|
||
|
find chapters | entr -cp xelatex -shell-escape -8bit main &
|
||
|
#ls biblio.bib | entr -cp bibtex8 main &
|
||
|
#ls chapters/0abbr.tex | entr -cp makeglossaries main &
|
||
|
zathura >/dev/null 2>&1 main.pdf
|
||
|
|
||
|
trap finish EXIT
|