For a while I have noticed that on 9.0, even after running makewhatis,
the apropos command was still not finding many of the man pages in
/usr/share/man.  Here is a fix for this.

*** apropos.orig        2002-08-27 06:39:04.000000000 -0700
--- apropos     2002-12-30 17:30:38.000000000 -0800
***************
*** 69,75 ****
  found=0
  while [ $found = 0 -a -n "$1" ]
  do
!     for d in /var/cache/man /usr/lib
      do
          if [ -f $d/whatis ]
          then
--- 69,75 ----
  found=0
  while [ $found = 0 -a -n "$1" ]
  do
!     for d in /var/cache/man/$LANG /var/cache/man /usr/lib
      do
          if [ -f $d/whatis ]
          then
***************
*** 103,109 ****
      done
      nothing=
      found=0
!     for d in /var/cache/man $manpath /usr/lib
      do
          if [ -f $d/whatis ]
          then
--- 103,109 ----
      done
      nothing=
      found=0
!     for d in /var/cache/man/$LANG /var/cache/man $manpath /usr/lib
      do
          if [ -f $d/whatis ]
          then

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to