diff options
Diffstat (limited to 'scripts/watch')
-rwxr-xr-x | scripts/watch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/watch b/scripts/watch new file mode 100755 index 0000000..cb7f290 --- /dev/null +++ b/scripts/watch @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# +# Inotify builder +# + +# Parameters +BASENAME="`basename $0`" +DIRNAME="$(cd `dirname $0` &> /dev/null && pwd)" +BASEDIR="$DIRNAME/.." +WATCHED="branches" + +# Got to the base folder +cd $BASEDIR + +# Dispatch +while inotifywait -r $WATCHED; do + #mkdocs build + kvmx ssh make -C /srv/shared compile +done |