aboutsummaryrefslogtreecommitdiff
path: root/rundev
blob: 83e2d5472159bd4229a485ea3ce253133369bd33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

which inotifywait 2> /dev/null 1> /dev/null || { echo 'Could not found inotifywait'; exit 1; }

files=$(find . -name '*.template.*')
files="$files generate"

./generate

while true
do
    inotifywait -q -e modify $files
    ./generate
done