From 9d6e35b2ac427df3d9f58d9ba0b4d1e93e18fa67 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Thu, 4 Jun 2015 13:42:37 +0200 Subject: [PATCH] Add simple inotify-based script to update doc html files --- doc/watch.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 doc/watch.sh diff --git a/doc/watch.sh b/doc/watch.sh new file mode 100755 index 0000000..a02fe2c --- /dev/null +++ b/doc/watch.sh @@ -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