I found myself in the following loop:
Repeat
Edit 1 or more files.
Run ttree
View changes in browser
Until (hellFreezesOver
fswatch is a small utility (linux, *bsd, unix, mac) that watches a
directory or list of files for changes.
So the following works:
fswatch -o tt2 | xargs -n1 -I{} ttree -f .ttreerc
The -o option just prints how many files changed. I don't care how many
changed. Whenever a file changes, it will run ttree.
I have not verified what ttree will do if it has overlapping executions.
Anyway, this eliminates one step of the loop, and makes it much easier to
edit remotely.
Regards
Sherwood
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates