On 11/22/2009 03:35 PM, Phillip Smith wrote:
find ${pkgdir}/.../ -type d -exec chmod 755 {} \;
find ${pkgdir}/.../ -type f -exec chmod 644 {} \;
chmod -R u=rwX,go=rX $pkgdir

The capital X will only set the execute bit on directories, and leave
it untouched on files if it is already set :)
That assumes that all executable files actually need to be executable, which is often not the case with pre-packaged binary tarballs.. you just get random png/desktop/jar/etc files (or even all files sometimes) that are 755. Of course, there probably isn't any tangible harm in it, but it's at least annoying for the detail-oriented ;)

Reply via email to