Re: question why it does work on not changed files here?

Bram Moolenaar <[email protected]> Tue, 22 Nov 2005 20:15:30 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Marco wrote:

> On Sun, Oct 23, 2005 at 07:17:30PM +0200, calmar wrote:
> > On Sun, Oct 23, 2005 at 08:55:25AM +0200, calmar wrote:
> >=20
> > let's say I have one directory and I want to copy all newly
> > changed files to another directory without using 'publish'...
> > attributes (or however), but rather with using a system command.
> >=20
> > How could I do that?
> >=20
>=20
> Well, that's what I have now:
>=20
> -----------------------------------------------
> dir =3D ./ddd/=20
>=20
> all   : $dir/file1 $dir/file2
>=20
> $dir/file1 : file1=20
>               :sys cp $source $(dir)
>=20
> $dir/file2 : file2=20
>               :sys cp $source $(dir)
> -----------------------------------------------
>=20
> That seems to work. When I want to copy things to the net:
>=20
>=20
> -----------------------------------------------
> dir =3D ftp://n4a403:AtuSli\$($)@eden4.netclusive.de/html/calmar/tmp/
>=20
> all   : $dir/file1 $dir/file2
>=20
> $dir/file1 : file1=20
>               :sys curl -T $source $(dir)
>=20
> $dir/file2 : file2=20
>               :sys curl -T $source $(dir)
> -----------------------------------------------
>=20
> That actually 'always' puts up the files / executes the curl..
>=20
> How could I solve that? Since file1 or file2 didn't change, why
> does it still execute the :sys command?

Aap can't check the signature of remote files (yet).  For something like
this you need to publish the file.  Why not use the publish attribute
and have it done automatically?

--=20
hundred-and-one symptoms of being an internet addict:
1 49. You find your computer sexier than your girlfriend

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \=
\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\        download, build and distribute -- http://www.A-A-P.org        =
///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         /=
//


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick