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

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

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

./generate

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