Next: Pre and Post Process   Previous: Example   Contents: Index

ttree standard process

The standard configuration script is $HOME/.ttreerc. You can also create many different configuration files and store them in the directory specified in the 'cfg' option. You then add the '-f filename' option to ttree to have it read that file.

When you run the script, it compares all the files in the 'src' directory (including those in sub-directories if the 'recurse' option is set), with those in the 'dest' directory. If the destination file doesn't exist or has an earlier modification time than the corresponding source file, then the source will be processed with the output written to the destination file. The '-a' option forces all files to be processed, regardless of modification times.

The script doesn't process any of the files in the 'lib' directory, but it does add it to the INCLUDE_PATH for the template processor so that it can locate these files via an INCLUDE or PROCESS directive. Thus, the 'lib' directory is an excellent place to keep template elements such as header, footers, etc., that aren't complete documents in their own right.