Don't include /usr/X11R6/man in the makewhatis search path if

it doesn't exist.  Closes PR# 326.
This commit is contained in:
Mike Pritchard 1997-02-25 02:56:13 +00:00
parent a1d72e7cac
commit b6561e8951

View File

@ -1,7 +1,7 @@
#!/bin/sh -
#
# @(#)weekly 5.14 (Berkeley) 6/23/91
# $Id$
# $Id: weekly,v 1.19 1997/02/23 09:20:55 peter Exp $
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH
@ -52,7 +52,12 @@ chmod 444 ${locdb}
echo ""
echo "Rebuilding whatis database:"
MANPATH=${MANPATH:-/usr/share/man:/usr/X11R6/man:/usr/local/man}
if [ -d /usr/X11R6/man ]
then
MANPATH=${MANPATH:-/usr/share/man:/usr/X11R6/man:/usr/local/man}
else
MANPATH=${MANPATH:-/usr/share/man:/usr/local/man}
fi
makewhatis.local "${MANPATH}"