1 Dont update makewhatis files if they're on readonly filesystems
3 http://bugs.gentoo.org/163932
8 if [ x$verbose != x ]; then
9 echo "about to enter $mandir" > /dev/stderr
12 + # kludge for Slackware's /usr/man/preformat
13 + if [ $mandir = /usr/man/preformat ]
20 + # if $mandir is on a readonly partition, and the whatis file
21 + # is not a symlink, then let's skip trying to update it
22 + if [ ! -L ${mandir1}/whatis ]
24 + if [ -e ${mandir1}/whatis ] && [ ! -w ${mandir1}/whatis ]
26 + if [ x$verbose != x ]; then
27 + echo skipping $mandir - whatis file is readonly > /dev/stderr
30 + elif [ ! -e ${mandir1}/whatis ] && [ ! -w ${mandir1} ]
32 + if [ x$verbose != x ]; then
33 + echo skipping $mandir - directory is readonly > /dev/stderr
39 if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
40 if [ x$verbose != x ]; then
41 echo skipping $mandir - we did it already > /dev/stderr
46 - # kludge for Slackware's /usr/man/preformat
47 - if [ $mandir = /usr/man/preformat ]
54 if [ -f ${mandir1}/whatis ]
56 cat ${mandir1}/whatis >> $TMPFILE