[Templates] Patch for ttree for expressing dependencies between files...

Andy Wardley abw@andywardley.com
Wed, 8 Oct 2003 18:50:54 +0100


Dylan William Hardison wrote:
> I have modified ttree to accept two new options:
> --depend and --dependfile.

Hi Dylan, sorry it took to long to respond.

Thanks for the patch.  I've applied it with a few minor changes.

First, I've called it --depend_file rather than --dependfile, in 
keeping with other options which use underscores to delimit words.  

I've also added '*' as a wildcard for setting a dependency for all 
templates (global dependencies).

   $ ttree --depend *=header 

In this example, all templates are dependant on 'header'.

I've also made it so that any PRE_PROCESS, POST_PROCESS, PROCESS and
WRAPPER templates are automatically added to the list of global 
dependencies.

I also made some changes to the code to make a few things a little 
simpler, but its functionality equivalent.

Changes are in CVS, coming to a developer release soon.

Many thanks
A