Don't include /usr/X11R6/man in the makewhatis search path if
it doesn't exist. Closes PR# 326.
This commit is contained in:
parent
a1d72e7cac
commit
b6561e8951
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# @(#)weekly 5.14 (Berkeley) 6/23/91
|
# @(#)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
|
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
|
||||||
export PATH
|
export PATH
|
||||||
@ -52,7 +52,12 @@ chmod 444 ${locdb}
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Rebuilding whatis database:"
|
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}"
|
makewhatis.local "${MANPATH}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user