compile.sh 469 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
    pdflatex -interaction=nonstopmode gdim.tex
    #pdflatex gdim.tex

Harry Fuchs's avatar
Harry Fuchs committed
12
13
    #TODO rename
    mv gdim.pdf dgeo.pdf
Harry Fuchs's avatar
Harry Fuchs committed
14
echo "wait for next change..."
Harry Fuchs's avatar
Harry Fuchs committed
15
16
  fi
done