compile fct

This commit is contained in:
Özgür Kesim 2023-01-02 00:17:43 +01:00
parent b55a190875
commit 4bc899225c

View File

@ -5,16 +5,20 @@ cleanup () {
exit $1
}
compile () {
tectonic $1 || echo 
}
trap cleanup HUP TERM INT
SRC=hip2022.tex
echo -ne "\e[;1H\e[2J"
while true; do
tectonic $SRC || echo 
compile $SRC
FILES=$(echo *.tex)
while inotifywait $FILES ; do
echo -ne "\e[;1H\e[2J"
tectonic $SRC || echo 
compile $SRC
done
done