From 142f2a38ffce549ca270996498e70976d1425741 Mon Sep 17 00:00:00 2001 From: mpp Date: Tue, 25 Feb 1997 02:56:13 +0000 Subject: Don't include /usr/X11R6/man in the makewhatis search path if it doesn't exist. Closes PR# 326. --- etc/weekly | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/weekly b/etc/weekly index cb65947..c812d90 100644 --- a/etc/weekly +++ b/etc/weekly @@ -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}" -- cgit v1.1