commiting
This commit is contained in:
16
scripts/watch_changes.sh
Normal file
16
scripts/watch_changes.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user