Re: Weird :update targets
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Adriaan de Groot wrote:
> As I pointed out elsewhere in this thread, the sequence of :updates that AAP
> tries is rather odd: for instance, it tries
>
> Aap: Attempt :update "/mnt/src/kde-HEAD/kdepim/kpilot/lib/usr/local/kde-3.2/
> include/usr/local/qt-3.2/include/usr/local/includebuild-FreeBSD4_9_RC/
> null-factory.moc"
>
> Now I've traced this back to aap_update(), where line 626
>
>
> sp = optiondict.get("searchpath")
>
>
> I supposed to get the search path. This is supposed to yield a string
> that can be split into a dictlist with string2dictlist(), but instead
> it yields that long and weird string (with all my includes
> concatenated together). And that leads to aap_sysdepend(), where
> searchpath is constructed based on the value of $INCLUDE. And lo,
> there's a space missing, it seems.
>
> Patch attached. It certainly causes AAP to search in the relevant
> directories. It also solves most of my generated source files
> problems;
I'll include the patch. Thanks for fixing this bug!
> I still need a
>
> :rule {sourceexists} $BDIR/%.h : %.ui
> :do ui2h $source
>
> but can I add that to a module without causing problems? Will that use
> the value of $BDIR at the moment the module is imported, or the value
> of $BDIR at the moment the rule is checked for applicability?
It's an unusual construction. Please try out a few variants to find out
what happens then (e.g., debug and optimize).
Version 1.040 coming up!
--
We are the Borg of GNU GPL. We will assimilate your source code.
Resistance is futile.
/// 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.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php