aboutsummaryrefslogtreecommitdiff
path: root/scripts/watch
blob: b0b3c508c371a9572f8f639a1a2ac4dff73bdbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
#
# Inotify builder
#

# Parameters
BASENAME="`basename $0`"
DIRNAME="$(cd `dirname $0` &> /dev/null && pwd)"
BASEDIR="$DIRNAME/.."
WATCHED="docs"

# Got to the base folder
cd $BASEDIR

# Dispatch
while inotifywait -r $WATCHED; do
  #mkdocs build
  kvmx ssh make -C /srv/shared compile
done