summaryrefslogtreecommitdiffstats
path: root/etc/weekly
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-25 02:56:13 +0000
committermpp <mpp@FreeBSD.org>1997-02-25 02:56:13 +0000
commit142f2a38ffce549ca270996498e70976d1425741 (patch)
tree74912b54f98f36a4ae57a06ddbf6f3fc162b5cc6 /etc/weekly
parent17cf792b06fe96ed8f6c7acf449d6b8951d38cda (diff)
downloadFreeBSD-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/weekly9
1 files changed, 7 insertions, 2 deletions
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}"
OpenPOWER on IntegriCloud