treewatch is a simple program to watch a set of directories and execute a program when there is a change in the files within the directories.
If run with no options it will watch the current directory for changes in .c, .cpp and .h files and execute /usr/bin/make on changes.
This example will run /bin/echo with the options "hello world" when files with
ending .txt are modified in the current directory.:
treewatch -c /bin/echo -o "hello world" -f .txt
The source is also available as a Mercurial repository at http://hg.atchoo.org/treewatch. To get a copy use "hg clone http://hg.atchoo.org/treewatch".
Distro packages:
This code is licensed under the GNU GPL v3