Re: Is "cp -a" allowed in debian/rules?
Douglas Bates wrote:
>Christian Schwarz <schwarz@monet.m.isar.de> writes:
>
>> On 11 Dec 1997, Douglas Bates wrote:
>>
>> > I have a vague recollection of seeing some comments regarding flags
>> > for cp that should be avoided in packaging scripts. Perhaps this was
>> > in the discussion of bashisms.
>>
>> I don't remember anything like that. Debian ships with `GNU cp', so I
>> don't see a reason for not using the `-a' option. (I'd prefer the `-a'
>> solution over the `tar' hack since it's much easier to read.)
>
>But consider the recent discussion of porting dpkg to other systems.
>If you were using dpkg on Solaris or HP-UX or ... you may not be able
>to count on cp understanding the -a flag.
So use this, which should work on any Unix anywhere:
cd <source>; find . -print | cpio -pdm <target>
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
Unsolicited email advertisements are not welcome; any person sending
such will be invoiced for telephone time used in downloading together
with a £25 administration charge.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: