Re: [Templates] ttree not ignoring

[prev] [thread] [next] [Date index for 2005/05/23]

From: Harald Joerg
Subject: Re: [Templates] ttree not ignoring
Date: 12:26 on 23 May 2005
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

[Templates] ttree not ignoring
Steve Kelem 22:21 on 20 May 2005

Re: [Templates] ttree not ignoring
Harald Joerg 12:26 on 23 May 2005

Re: [Templates] ttree not ignoring
Dave Howorth 14:49 on 23 May 2005

Re: [Templates] ttree not ignoring
Harald Joerg 16:10 on 23 May 2005

Re: [Templates] ttree not ignoring
Vivek Khera 14:43 on 23 May 2005

Generated at 15:56 on 25 May 2005 by mariachi v0.52