compile.sh 427 Bytes
Newer Older
Harry Fuchs's avatar
Harry Fuchs committed
1
2
# cp edit-this-file.tex tmp.tex

Harry Fuchs's avatar
Harry Fuchs committed
3
4
5
inotifywait -e close_write,moved_to,create -m . |
while read -r directory events filename; do
  if [ "$filename" = "edit-this-file.tex" ]; then
Harry Fuchs's avatar
Harry Fuchs committed
6
7
8
    cp edit-this-file.tex tmp.tex
    python3 preprocessor.py
    pandoc -f org -t latex tmp.tex -s -o gdim.tex --metadata-file meta.yaml
Harry Fuchs's avatar
Harry Fuchs committed
9
10
11
12
    pdflatex -interaction=nonstopmode gdim.tex
    #pdflatex gdim.tex

echo "wait for next change..."
Harry Fuchs's avatar
Harry Fuchs committed
13
14
  fi
done