allpawcare-website/scripts/watch_changes.sh
2023-12-15 10:30:18 -05:00

17 lines
297 B
Bash

#!/bin/sh
WATCH_DIR=$(pwd)/templates
INOTIFY_CMD=$(inotifywait -r --format %f \
-e modify \
-e create \
-e delete "$WATCH_DIR")
while f=$INOTIFY_CMD
do
echo -n "Rebuilding site... "
make clean
python ./generate-site.py
echo "done"
done