Re: scp and install_files

Bram Moolenaar <[email protected]> Sun, 18 Jan 2004 12:35:35 +0100
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Scott Henry Harrison wrote:

> Does scp not work with install_files? 
> 
>  --begin test.aap--
> all:
>  @install_files("scp://[email protected]/tmp","Makefile.in",'0644')
>                                                                              
>  --end test.aap-- 
> 
> [[email protected] build]$ aap -f test.aap
> Aap: Creating directory "/usr/local/scp://[email protected]/tmp"
> Aap: Internal Error 

You need to put the "scp://" on the first part.  When not using $DESTDIR
that should be in $PREFIX.  The directory argument of install_files() is
the directory below the prefix, you can't specify the copy method there.

PREFIX = scp://[email protected]
all:
   @install_files("/tmp","Makefile.in",'0644')

-- 
Computers are not intelligent.  They only think they are.

 /// 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        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn