Re: [A-a-p-user] use copy in a publish statement?
Brought to you by:
vimboss
From: Matthew W. O. <mat...@we...> - 2002-12-23 21:00:47
|
-- Bram Moolenaar <Br...@mo...> wrote (on Monday, 23 December 2002, 05:32 PM +0100): > > Matthew Weier O'Phinney wrote: > > > I'm setting up a project to have three variants. Each variant executes a > > script to change certain text in one or more files, and each publishes > > to a different location. > > > > In the first variant, the location is on my machine. I'm currently > > having to use: > > :attr { publish = scp://pserver:user@localhost//path/to/files/%file% } $HTMLFILES > > > > It seems like I should be able to use: > > :attr { publish = :copy {r} %file% /path/to/files/%file% } $HTMLFILES > > but aap complains: > > No :// found in ":copy" > > > > Is there a way to have the publish attribute use copy? If so, how? If > > not, I'd like to request it. :-) > > You can't specify a command in a "publish" attribute. You can specify a > local directory: > > :attr { publish = file:/path/to/files/%file% } $HTMLFILES > > Does that do what you want? Nope, I get the following error from a-a-p: Aap: Uploading ['/home/matthew/projects/personal/content/file2.html', '/home/matthew/projects/personal/content/calendar.html', '/home/matthew/projects/personal/content/index.html'] to file:/home/matthew/public_html/personal/content Aap: Error in recipe: Can only upload to scp:// and ftp:// I've tried: :attr { publish = file:/path/to/files/%file% } $HTMLFILES :attr { publish = file://path/to/files/%file% } $HTMLFILES and neither of them work, and both give the same error. Any other ideas? -- Matthew Weier O'Phinney mat...@we... |