I'm aware about
inotifywatch from inotify-tools, about
entr (http://entrproject.org/) and that dozen of shell scripts around, but they are not what I need.
What I need is something similar to
They way it works: you create a file in a directory that specifies what to monitor and what to do when those files change.
Guard is ok, but it is 1) resource consumptive (and on large projects its slow), 2) requires whole Ruby + bunch of dependency gems, 3) requires plugin to run shell commands.
tup (http://gittup.org/tup/) and it is freaking awesome except one extremely stupid limitation: it can't output to directories other than the one where
Tupfile is. Its way is to create a
Tupfile in each subdirectory and that doesn't work for me.
What I want in the end: I specify file patterns and directories (if no, then watch all) in some file, run some command and it monitors stuff matching given rules, whenever files change / add it executes given commands. Thats it.