Re: exclusion in file patterns

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Tim Hemel wrote:

> > FILES = tree("www/*",exclude="CVS,AAPDIR,*.bak")
>
> Hmm, that can be generalized to
> 
> VAR = @PY-FUNC(...)
> 
> Is it possible to assign the result of a Python function to an aap variable?

Yes, you can use backticks.  See http://www.a-a-p.org/exec/tutor-python.html
"Expressions" section.

> If it is not possible, then perhaps the pattern syntax can be extended as
> follows (a bit like how teTeX does it):
> 
> www//  (all files below www)
> www//css (all css dirs below www, note that this differs from www/*/css!)
> www//*.php (all php files)
> 
> Then, I can use an extra attribute with the publish action, such as
> { publish_exclude = CVS } or
> { publish_exclude = $FILES_THAT_ARE_NOT_IMPORTANT }
> to make publish skip certain files.

Selecting files to use is a generic thing, I don't think it should be
combined with specific commands such as publish.

-- 
Lawmakers made it obligatory for everybody to take at least one bath
each week -- on Saturday night.
		[real standing law in Vermont, United States of America]

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.