Re: [Templates] ttree not ignoring
[prev]
[thread]
[next]
[Date index for 2005/05/23]
Steve Kelem writes:
> I'm trying to use ttree's config file to tell it to ignore the files
> administered under subversion.
> Subversion files are stored in subdirectories named ".svn".
>
> I tried including the following line in my ttree.cfg file:
> ignore = \b(CVS|RCS|\.svn|xml)\b
>
> However, I get the following messages when running ttree:
> ttree 2.78 (Template Toolkit version 2.14)
> ...
> Ignore: [ \b(CVS|RCS|.svn)\b, ^#, \b(CVS|RCS|\.svn|xml)\b, ^# ]
> ...
>
> mkdir targetdir/html/.svn
> + .svn (created target directory)
> + .svn/empty-file
> + .svn/entries
> + .svn/format
>
> Which is NOT what I want it to do.
>
> Any ideas? Am I doing something wrong, or does ttree ignore the IGNORE
> directive on directory names?
ttree evaluates its ignore pattern against the template name, which is
relative to the source directory: '.svn/*' in your case. However, \b
doesn't match at the beginning of a string.
$ perl -e "print ('.svn/foo' =~ /\b\.svn/ ? 'match' : 'no match')"
no match
--
HTH,
haj
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] ttree not ignoring
Harald Joerg 12:26 on 23 May 2005
|