From owner-freebsd-hackers Wed Nov 19 17:27:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA22115 for hackers-outgoing; Wed, 19 Nov 1997 17:27:07 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from cam.grad.kiev.ua ([195.5.25.54]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA22097 for ; Wed, 19 Nov 1997 17:27:00 -0800 (PST) (envelope-from Ruslan@Shevchenko.kiev.ua) Received: from Shevchenko.kiev.ua (localhost [127.0.0.1]) by cam.grad.kiev.ua (8.8.7/8.8.5) with ESMTP id BAA27881 for ; Thu, 20 Nov 1997 01:26:23 GMT Message-ID: <347391BA.2E7168CC@Shevchenko.kiev.ua> Date: Thu, 20 Nov 1997 01:26:18 +0000 From: Ruslan Shevchenko X-Mailer: Mozilla 4.03b8 [en] (X11; I; FreeBSD 2.2.5-STABLE i386) MIME-Version: 1.0 To: hackers@freebsd.org Subject: rebuilding of whatis database does not care about setting in /etc/manpath.conf Content-Type: multipart/mixed; boundary="------------C9117B100BBA79E6F6BDF7AF" Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a multi-part message in MIME format. --------------C9117B100BBA79E6F6BDF7AF Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Rebuilding of whatis database in /etc/wheecly use static MANPATH, so, if I change mypath in /etc/manpath.conf (for example, to add manuals to perl5), whatis database is not build for it => apropos not work for manuals in this path. The fix is trivial (see in attachment). I write to hackers, with hope, that somebody quickly correct this. Or it is nessesory to interact with commiters via send-pr ? --------------C9117B100BBA79E6F6BDF7AF Content-Type: text/plain; charset=koi8-r; name="etc-wheekly-path" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="etc-wheekly-path" --- /etc/weekly.old Thu Nov 20 01:13:25 1997 +++ /etc/weekly Thu Nov 20 01:17:05 1997 @@ -52,11 +52,10 @@ echo "" echo "Rebuilding whatis database:" -if [ -d /usr/X11R6/man ] +MANPATH=`/usr/bin/manpath` +if [ "x$MANPATH" = "x" ] then -MANPATH=${MANPATH:-/usr/share/man:/usr/X11R6/man:/usr/local/man} -else -MANPATH=${MANPATH:-/usr/share/man:/usr/local/man} + echo 'some bad with you manpath' fi makewhatis.local "${MANPATH}" --------------C9117B100BBA79E6F6BDF7AF--