#!/usr/bin/bash

DIR=.
while :; do
  python tcodegen.py

  # Create svg from dot file:
  dot -Tpdf -o ir.pdf ir.gv
  dot -Tpdf -o cfg.pdf cfg.gv
  dot -Tpdf -o ig.pdf ig.gv
  echo "Awaiting changes in $DIR"
  inotifywait -r -e modify $DIR
done



