Re: howto set the -r flag in publishing?
Bram Moolenaar <[email protected]> Sun, 18 Apr 2004 18:03:45 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Markku Korkeala wrote: > I've had this problem for a while, I would > like to publish whole directories, and their > subdirectories, if I write: > FILES = > manc-2004/* > > and manc-2004 directory holds: > ls manc-2004/ > index.html index2.html index3.html index4.html index5.html res > slides thumbs > > The last 3 are sub directories I get: > pake-UFo/[email protected]:~/net/collapsing/the$ aap publish > Aap: Uploading ['manc-2004/slides', 'manc-2004/index4.html', > 'manc-2004/index2.html', 'manc-2004/index5.html', 'manc-2004/res', > 'manc-2004/index3.html', 'manc-2004/thumbs', 'manc-2004/index.html'] to > rsync://[email protected]/public_html/manc-2004 > Aap: Error in recipe: Copying a directory requires -r flag: > /home/pake/net/collapsing/the/manc-2004/slides > > I've search the docs and found out some info, but couldn't > get it work, how do you set -r flag? You would like to publish a directory and everything it contains? Well, actually you would want to skip a few things, such as the "AAPDIR" directory. Because of these exceptions there is no direct way to do this. Assuming you want to publish *.html files, this should work: Files = :tree manc-2004 {filename = .*\.html} _recipe.Files += $name More info about ":tree" can be found here: http://www.a-a-p.org/exec/ref-commands.html#cmd-tree Note that "Files += $name" should work, without the "_recipe", but there is a mistake in the implementation... -- Why is "abbreviation" such a long word? /// 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 is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click