watch.sh

2026-07-31 published

Monitor changes in .typ and .dot files of current directory and make .pdf from them whenever they change.

#!/bin/sh
set -eu
inotifywait -m -e modify --format %f ./ | while read file ; do make ${file%%.typ}.pdf || make ${file%%.dot}.pdf || true ; done
go back | CC0 1.0