cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: copy vs link in Install


From: CARRY,GILLES (Non-HP-France,ex1)
Subject: RE: copy vs link in Install
Date: Tue, 16 Oct 2001 13:17:53 +0200

link in Install
> 
> 
> > 
> > On Tue, 16 Oct 2001, CARRY,GILLES (Non-HP-France,ex1) wrote:
> > 
> > > 'Install' chooses to link or copy files depending on the 
> situation.
> > > Is there any way to force Cons to copy files instead of 
> > linking them?
> > 
> > 
> > Instead of Install, define something like (untested):
> > 
> > sub Copy {
> >     my($env) = shift;
> >     my($target) = shift;
> >     for $file (@_) {
> >     $env->Command($target, $file, "cp $file $target");
> >     }
> > }
> > 
> > And then use it as so:
> > 
> >     Copy $cons "include", qw( foo.h bar.h baz.h );
> > 
> 
> Yes I already thought of that (and made it) but this is OS-dependent.
> 
> Regards.

I answer to myself:
Using Command+[perl], I can write a perl function that uses File::Copy and
then remain OS-independent.


Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]