Re: Applying properties to multiple items
Bram Moolenaar <[email protected]> Fri, 03 Feb 2006 12:33:15 +0100
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Adriaan de Groot wrote:
> In a (child) recipe I write
>=20
> _top.INSTALL_DATA +=3D
> `childdir("vcal-conduit.desktop")` { installdir=3Dservices }
> `childdir("todo-conduit.desktop")` { installdir=3Dservices }
>=20
>=20
> This seems rather redundant; I'd like to write
>=20
> _top.INSTALL_DATA +=3D
> `childdir("vcal-conduit.desktop todo-conduit.desktop")`=20
> { installdir=3Dservices }
>=20
> since childdir() can take a list, but this applies the property {instal=
ldir}=20
> only to the last item returned by childdir. Why is that? Is there a way=
=20
> around this?
You can use RC style expansion:
t =3D `childdir("vcal-conduit.desktop todo-conduit.desktop")`=20
_top.INSTALL_DATA +=3D $*t { installdir=3Dservices }
See http://www.a-a-p.org/exec/ref-varscope.html#id2630956
--=20
hundred-and-one symptoms of being an internet addict:
246. You use up your free 100 hours in less than a week.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \=
\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\ download, build and distribute -- http://www.A-A-P.org =
///
\\\ help me help AIDS victims -- http://www.ICCF.nl /=
//
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642