mirror of
https://github.com/brunoos/luasec.git
synced 2024-11-09 15:08:26 +01:00
Add simple inotify-based script to update doc html files
This commit is contained in:
parent
31228677b2
commit
9d6e35b2ac
7
doc/watch.sh
Executable file
7
doc/watch.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user