Add simple inotify-based script to update doc html files

This commit is contained in:
Bart van Strien 2015-06-04 13:42:37 +02:00
parent 31228677b2
commit 9d6e35b2ac

7
doc/watch.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
while true; do
filename=$(inotifywait -qe close_write . --include '\.md$' --format '%f')
markdown < "$filename" > "$(basename "$filename" ".md").html"
echo "[$(date)] Updated $filename"
done