summaryrefslogtreecommitdiff
path: root/watch.sh
blob: 896473dfab13f0f6e4dfc098fab3405b354d50e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

gen() {
	tcc ir.c lex.c impl.c peephole.c proc.c -run main.c test.lang\
		| dot -Tpdf -o out.pdf
}

gen
mupdf out.pdf &
while true; do
	inotifywait -e modify -r .
	gen
	killall -SIGHUP mupdf
done