yomichan/build_tmpl_auto.sh

17 lines
257 B
Bash
Raw Normal View History

2016-04-25 02:09:11 +00:00
#!/bin/bash
2016-05-08 19:01:43 +00:00
DIRECTORY_TO_OBSERVE="tmpl"
2016-04-25 02:09:11 +00:00
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