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 we cannot update the whatis
21 + # file, then let's simply skip it
22 + if ! touch ${mandir1}/whatis 2> /dev/null
24 + if [ x$verbose != x ]; then
25 + echo skipping $mandir - whatis file is readonly > /dev/stderr
30 if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
31 if [ x$verbose != x ]; then
32 echo skipping $mandir - we did it already > /dev/stderr
37 - # kludge for Slackware's /usr/man/preformat
38 - if [ $mandir = /usr/man/preformat ]
45 if [ -f ${mandir1}/whatis ]
47 cat ${mandir1}/whatis >> $TMPFILE