[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PATCH: symlink support for svn_load_dirs.pl

From: Bastiaan Bakker <bastiaan.bakker_at_lifeline.nl>
Date: 2005-02-15 10:04:20 CET

On Mon, 2005-02-14 at 14:32 -0600, Travis P wrote:
> On Feb 11, 2005, at 9:46 AM, Bastiaan Bakker wrote:
>
> > Some notes:
> > a) the patch uses system('cp -d ...') to recreate the symlink in the
> > temporary dir. This may not be avaiable on all platforms that have
> > symlink support?
>
> The '-d' flag is not portable. I see that AIX 5.1 and MacOS X 10.3.7
> don't support that flag. Both systems do support Un*x style symlinks
> of course.
>
> Unfortunately, I've observed that 'cp' flags are very inconsistent
> across
> systems. The only flags that appear consistent to me across AIX 5.2,
> MacOS 10.3.7, and a Linux RH 7.3 system are '-p', '-R', '-i', and '-f'.
>
> -Travis
>

Right, system("cp ...") was a lazy shortcut to get the thing working.
Attached is a new version which uses the internal Perl functions
readlink and symlink. Should be portable for all platforms that support
symlinks.

Regards,

Bastiaan Bakker
E.Novation LifeLine Networks bv

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Wed Feb 16 05:52:50 2005

This is an archived mail posted to the Subversion Dev mailing list.