thesis/tex/view.sh
2020-04-17 18:07:19 +03:00

16 lines
339 B
Bash
Executable file

#!/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