30 Nov
2011
30 Nov
'11
2:35 p.m.
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