3 # Do some general file permission fixups.
5 PATH=debian:$PATH:/usr/lib/debhelper
9 if [ -d debian/tmp ]; then
10 doit "chown -R root.root debian/tmp"
11 doit "chmod -R go=rX debian/tmp"
14 # Fix up premissions in /usr/doc, setting everything to not exectable
16 files=`find debian/tmp/usr/doc -type f 2>/dev/null | tr "\n" " "` || true
18 doit "chmod 644 $files"
20 files=`find debian/tmp/usr/doc -type d 2>/dev/null | tr "\n" " "` || true
22 doit "chmod 755 $files"
25 # Executable man pages is just not done.
26 files=`find debian/tmp/usr/man/ debian/tmp/usr/X11*/man/ -type f 2>/dev/null | tr "\n" " "` || true
28 doit "chmod 644 $files"