aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-04-24 19:09:11 -0700
committerAlex Yatskov <alex@foosoft.net>2016-04-24 19:09:11 -0700
commit8292be0243c3478845a851aadcbf476660d86d7f (patch)
tree08bc9abd26a20dd50fa82a7498def95e71b9f398
parentd35d59410a2bfa20534aaf297379711fe8f0cd63 (diff)
Adding template auto build script
-rwxr-xr-xbuild_tmpl_auto.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/build_tmpl_auto.sh b/build_tmpl_auto.sh
new file mode 100755
index 00000000..c10c858c
--- /dev/null
+++ b/build_tmpl_auto.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+DIRECTORY_TO_OBSERVE="util/tmpl"
+BUILD_SCRIPT="build_tmpl.sh"
+
+function block_for_change {
+ inotifywait -e modify,move,create,delete $DIRECTORY_TO_OBSERVE
+}
+
+function build {
+ bash $BUILD_SCRIPT
+}
+
+build
+while block_for_change; do
+ build
+done