portfolio/build_tools/latex_watch.sh

18 lines
346 B
Bash
Raw Normal View History

2022-08-02 20:09:45 +00:00
#!/bin/sh
# Variation of the latex build script but to compile on file change under templates, config or src
# Expected working directory: Root of the project
#
./build_tools/latex.sh
[ $? -ne 0 ] && exit 1
while :
do
inotifywait -e modify --recursive templates/ src/ config/
echo "file has changed"
./build_tools/latex.sh
done