aboutsummaryrefslogtreecommitdiff
path: root/watch_and_host.sh
diff options
context:
space:
mode:
Diffstat (limited to 'watch_and_host.sh')
-rwxr-xr-xwatch_and_host.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/watch_and_host.sh b/watch_and_host.sh
new file mode 100755
index 0000000..a5dd265
--- /dev/null
+++ b/watch_and_host.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+python -m http.server &
+
+inotifywait -e modify,create,delete -r . -m \
+| while read; do
+ ./compile.sh
+done