Re: question why it does work on not changed files here?
calmar <[email protected]> Mon, 24 Oct 2005 00:33:25 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Oct 23, 2005 at 07:17:30PM +0200, calmar wrote:
> On Sun, Oct 23, 2005 at 08:55:25AM +0200, calmar wrote:
>
> 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.
>
> How could I do that?
>
Well, that's what I have now:
-----------------------------------------------
dir = ./ddd/
all : $dir/file1 $dir/file2
$dir/file1 : file1
:sys cp $source $(dir)
$dir/file2 : file2
:sys cp $source $(dir)
-----------------------------------------------
That seems to work. When I want to copy things to the net:
-----------------------------------------------
dir = ftp://n4a403:AtuSli\$($)@eden4.netclusive.de/html/calmar/tmp/
all : $dir/file1 $dir/file2
$dir/file1 : file1
:sys curl -T $source $(dir)
$dir/file2 : file2
:sys curl -T $source $(dir)
-----------------------------------------------
That actually 'always' puts up the files / executes the curl..
How could I solve that? Since file1 or file2 didn't change, why
does it still execute the :sys command?
Thanks a lot
marco
--
calmar
(o_ It rocks: LINUX + Command-Line-Interface
//\
V_/_ http://www.calmar.ws
-------------------------------------------------------
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
Visit http://www.jboss.com/services/certification for more information