interactive-compile.sh 207 Bytes
Newer Older
Harry Fuchs's avatar
Harry Fuchs committed
1
2
3
4
5
6
7
8

inotifywait -e close_write,moved_to,create -m . |
while read -r directory events filename; do
  if [ "$filename" = "edit-this-file.tex" ]; then
    ./compile.sh
    echo "wait for next change..."
  fi
done