aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/apropos
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:11:54 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:11:54 +0000
commit597ccab43ed0c14ded2b0bab03e954a03908c78b (patch)
tree88d8f56829b420feaacf0379cf0cd5c1d9c4a49d /gnu/usr.bin/man/apropos
parentf052fd356389730ee8cfff4a830f4045d505c6d7 (diff)
downloadsrc-597ccab43ed0c14ded2b0bab03e954a03908c78b.tar.gz
src-597ccab43ed0c14ded2b0bab03e954a03908c78b.zip
Use manpath -L for locales
Notes
Notes: svn path=/head/; revision=53618
Diffstat (limited to 'gnu/usr.bin/man/apropos')
-rw-r--r--gnu/usr.bin/man/apropos/apropos.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/gnu/usr.bin/man/apropos/apropos.sh b/gnu/usr.bin/man/apropos/apropos.sh
index c6e8e62c5d8d..f316bfff8e66 100644
--- a/gnu/usr.bin/man/apropos/apropos.sh
+++ b/gnu/usr.bin/man/apropos/apropos.sh
@@ -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" ];