Re: Customizing transport

Bram Moolenaar <[email protected]> Thu, 22 Apr 2004 21:27:34 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Jo Ryden wrote:

> newbie question here... I'm writing my first small recipe which looks like:
> 
> ---
> RSYNC = rsync -a --rsh=ssh --copy-links
> HTMLFiles =
>         public/
> :attr {publish = rsync://some.server.com/path/%file%}
>         $HTMLFiles
> ---
> 
> But I obviously haven't quite figured out how to customize the rsync command 
> used (the one above isn't read) so I'm wondering where/how exactly do you set 
> $RSYNC?

I would think you have set RSYNC correctly.  But publishing a directory
doesn't work this way, using the "publish" attribute.

This should work:

	:copy {r} public rsync://some.server.com/path/

But then Aap doesn't take care of remembering what was done, thus you
need to specify a dependency for it.

If publishing a whole directory is a generic thing to do, perhaps
support for it over rsync can be added to Aap.

-- 
An alien life briefly visits earth.  Just before departing it leaves a
message in the dust on the back of a white van.  The world is shocked
and wants to know what it means.  After months of studies the worlds
best linguistic scientists are able to decipher the message: "Wash me!".

 /// 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: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297