diff options
author | mpp <mpp@FreeBSD.org> | 1997-02-25 02:56:13 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-02-25 02:56:13 +0000 |
commit | 142f2a38ffce549ca270996498e70976d1425741 (patch) | |
tree | 74912b54f98f36a4ae57a06ddbf6f3fc162b5cc6 /etc/weekly | |
parent | 17cf792b06fe96ed8f6c7acf449d6b8951d38cda (diff) | |
download | FreeBSD-src-142f2a38ffce549ca270996498e70976d1425741.zip FreeBSD-src-142f2a38ffce549ca270996498e70976d1425741.tar.gz |
Don't include /usr/X11R6/man in the makewhatis search path if
it doesn't exist. Closes PR# 326.
Diffstat (limited to 'etc/weekly')
-rw-r--r-- | etc/weekly | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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}" |