Adding template auto build script
This commit is contained in:
parent
d35d59410a
commit
8292be0243
16
build_tmpl_auto.sh
Executable file
16
build_tmpl_auto.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user