Use manpath -L for locales

This commit is contained in:
Andrey A. Chernov 1999-11-23 03:11:54 +00:00
parent f052fd3563
commit 597ccab43e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53618

View File

@ -53,13 +53,7 @@ case X"$PAGER" in X)
;;
esac
# If possible check global system configuration file for additional
# man locales installed
if [ -r /etc/defaults/rc.conf ] ; then
. /etc/defaults/rc.conf
elif [ -r /etc/rc.conf ] ; then
. /etc/rc.conf
fi
man_locales=`%bindir%/manpath -qL`
# search for existing */whatis databases
mandir=''
@ -71,7 +65,7 @@ do
fi
# Check for locailzed manpage subdirectories
if [ "$man_locales" != "NO" ]; then
if [ X"$man_locales" != X ]; then
for l in $man_locales
do
if [ -f "$d/$l/$db" -a -r "$d/$l/$db" ];