Re: Creating $BDIR before :conf ?

Bram Moolenaar <[email protected]> Fri, 25 Nov 2005 16:40:32 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Adriaan de Groot wrote:

> I'm trying to use AAP's :conf features, and something really simple lik=
e
>=20
> :conf init
> :conf function cfspeed
> :conf write header $BDIR/config.h
>=20
> Works, sortof. :conf write header doesn't create $BDIR (I suppose
> since it's using remote_copy_move()) so unless $BDIR already exists,
> there's no $BDIR to copy the header to, and the recipe fails.
>=20
> Should :conf init create $BDIR?

I don't think it is a job of ":conf init".  ":conf write header" would
be a logical place to make sure the destination directory exists.
This can be done either by recognizing that $BDIR is being used, or just
for any directory.  I think the last is preferred.

--=20
hundred-and-one symptoms of being an internet addict:
204. You're being audited because you mailed your tax return to the IRC.

 /// 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://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick