RE: Thanks it works, now what
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Wink Saville wrote:
> > What I think I want is for aap to look for "family.aap" or
> > "project_root.aap" starting at the current location "." and use ".."
> > to look "up" until it finds it. Actually a "function" that was
> > ":hinclude xxx.aap" might do it. Where ":hinclude" is hierarchical
> > include.
> >
> > Am I missing something, am I the only person who has this problem?
> > Maybe the solution is that my model is wrong and I need to change! As
> > always, any advice is appreciated.
>
> One solution is to put a "project.aap" recipe in every directory. In all
> directories except the top one it contains ":include ../project.aap". In
> the top directory it contains your actual settings.
>
> It does require adding more files, but in case a sub-project requires
> specific settings you can cover them at the same time.
>
> <wink2>
> Yes, this was the technique I used with make and I didn't like it very much
> and is one of the reasons I'm looking for another solution. I agree it can
> be useful, but I'd rather not be "forced" to have the extra files.
> </wink2>
I have been thinking of a "find" command that searches for files.
Searching upwards would also be useful. But the condition to stop
when a file was found would be a bit strange for a "find" command.
A specific "search_upwards(filename)" function could be useful. Anyone
interested in implementing this?
--
ARTHUR: But if he was dying, he wouldn't bother to carve
"Aaaaarrrrrrggghhh". He'd just say it.
BROTHER MAYNARD: It's down there carved in stone.
GALAHAD: Perhaps he was dictating.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/