From 70ee897904b708d07f3cd0d823b5dad8536a4654 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Mon, 27 Oct 2025 23:41:58 -0400 Subject: add watch.sh --- watch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 watch.sh (limited to 'watch.sh') diff --git a/watch.sh b/watch.sh new file mode 100755 index 0000000..896473d --- /dev/null +++ b/watch.sh @@ -0,0 +1,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 -- cgit v1.2.3