Date: Thu, 20 Nov 1997 01:26:18 +0000 From: Ruslan Shevchenko <Ruslan@Shevchenko.kiev.ua> To: hackers@freebsd.org Subject: rebuilding of whatis database does not care about setting in /etc/manpath.conf Message-ID: <347391BA.2E7168CC@Shevchenko.kiev.ua>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?347391BA.2E7168CC>
