Re: Dependency:
Dave Cross <[email protected]> Mon, 17 Apr 2017 14:08:32 +0100
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAF=GmZfN_ACdLto2M6hd67dXGZJjPzBjgN+8=eRf-zRTfJ5Y8A@mail.gmail.com> |
On Fri, Apr 14, 2017 at 9:27 PM, Sherwood Botsford <[email protected]> wrote: [ snip ] > I figured that if I added this: > > ttree -f .ttreerc --depend *.html=header.inc > > that it would do the Right Thing. There are two problems here. Firstly, ttree only supports a single asterisk on the right-hand side of a dependency definition. A '*' on its own will work, something like '*.html' doesn't. Secondly, if you're working on a Unix-like operating system, then the '*.html' will be expanded by the shell before ttree even sees the options. You need to quote the '*' to prevent the shell from seeing it (but even then your solution won't work because of my first point above). ttree is provided as a simple example of a TT command-line tool. I'm afraid it doesn't support complex requirements like yours. You're really expected to write your own programs to handle stuff like this. Cheers, Dave...