[Users] [ET Trac] [Einstein Toolkit] #453: Formaline deletes files if lib and src are symlinks

Erik Schnetter schnetter at cct.lsu.edu
Tue Jun 21 15:13:58 CDT 2011


On Tue, Jun 21, 2011 at 3:43 PM, Frank Loeffler <knarf at cct.lsu.edu> wrote:
> On Tue, Jun 21, 2011 at 02:40:52PM -0400, Erik Schnetter wrote:
>> The overall goal of this code is to create a shadow hierarchy of the
>> actual thorn with all relevant files. For this, all directories are
>> created via mkdir, and all files are hardlinked. After calling "git
>> add", this shadow directory is deleted again. (This is necessary
>> because "git add" can't be made to follow symbolic links.)
>
> This is what 'cp -rlL' should do, but we cannot rely on that because that
> might not work on all machines?

Yes, neither -r nor -l are standard options.

We could use e.g. tar (or cpio?) to copy the whole directory structure
and forget about using hard links. This would be reliable. But it
would not solve Barry's original problem, because it would not follow
the symbolic links.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>   http://www.cct.lsu.edu/~eschnett/


More information about the Users mailing list