ignition/butane-watch.sh

11 lines
264 B
Bash

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 et :
inotifywait -e CLOSE_WRITE -m . \
| stdbuf -o 0 grep -v .ign \
| while read _ _ f; do
[ -f "${f}" ] || continue
printf '%s changed, running make ...\n' "${f}"
make && make publish
done