Re: Learning and using aap in website project
Bram Moolenaar <[email protected]> Fri, 09 Jul 2004 17:29:32 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Fredrik wrote:
> One last question (I hope :)). Now I want to upload a directory of images
> called "img" recursive when publishing the site. I have read in the
> archives[1] but the :tree thingy dosen't work as I expect. When experimenting
> with :tree only the files in the "img" directory is published not the actual
> "img" directory with files and subdirs.
>
> WEB_FILES =
> $HTML_FILES
> img
>
> :attr {publish = ...} $WEB_FILES
>
> dosent work and gives a message about:
>
> Aap: Error in recipe: Copying a directory requires -r flag
That's right, publishing a directory isn't supported yet.
> How do I set a recursive attribute on "img" (if that is the right way to do
> it) or if someone got any pointer to examples etc?
You somehow have to find all files in the "img" directory that you want
to publish. You can use the :tree command for that, it does work since
version 1.063. The examples will show you how to do it.
--
Computers make very fast, very accurate, mistakes.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com