17 lines
297 B
Bash
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
|
|
|