[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File permissions




On Mon, Sep 11, 2006 at 02:46:54PM +0200, Arjan Oosting wrote......

> Op ma, 11-09-2006 te 22:25 +1000, schreef James Healy:
> > Mentors,
> > 
> > I am attempting to build a package and lintian is spitting out a
> > bunch of "executable-not-elf-or-script" warnings.
> > 
> > The upstream tarball has an examples directory which I am
> > installing into the package using dh_installexamples. None of
> > the examples are shell scripts or ELF binaries, yet they seem to
> > untar with executable permissions.
> > 
> > What is the best way to modify the permissions when I copy them
> > over?
> Hi,
> 
> So it seems you have to do it with a call to chmod in your
> debian/rules. 

In debian/rules, try:

find debian/examples/ -type f -and -perm +111 -print0 |
    xargs -0ri chmod uog-x '{}'


Kevin

-- 
Kevin Coyner  GnuPG key: 1024D/8CE11941

Attachment: signature.asc
Description: Digital signature


Reply to: