test: (ls mksnapidx.awk fixtures/*) | entr sh -c 'set -e; for i in fixtures/*.txt; do awk -f mksnapidx.awk "$$i" > "$${i%.txt}".test.out; if ! cmp "$${i%.txt}".test.out "$${i%txt}snapidx.out"; then diff -u "$${i%.txt}".test.out "$${i%txt}snapidx.out"; exit 1; else echo "$$i ok"; fi; done'