On Wed, Nov 30, 2011 at 03:25:49PM +0100, Christoph wrote:
> 
> > Copying entire directory structures is the unusual case. It's always
> > preferrable that upstream provide some sort of sane build system that
> > gets all the permissioning correct. I would suggest using:
> > 
> >   cp -dr --no-preserve=ownership
> > 
> > This way, fakeroot installs the files as root but preserves other
> > metadata.
> 
> In order to preserve mode and timestamps, the command has to be
> either:
> 
>    cp -dpr --no-preserve=ownership /sourcedir /targetdir
> 
> or:
> 
>   cp -dr --preserve=mode,timestamp /sourcedir /targetdir
> 
> Cheers,
> Christoph

Erm right, thanks. Pre-coffee thinko. I was getting at the former.

d

Attachment: pgpaL0DCrxphC.pgp
Description: PGP signature

Reply via email to