summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-23 03:11:54 +0000
committerache <ache@FreeBSD.org>1999-11-23 03:11:54 +0000
commit4915a2f6a988cc16da029a8ba242b3dc4a0ec47d (patch)
tree88d8f56829b420feaacf0379cf0cd5c1d9c4a49d /gnu
parent0ed5649adb63b2228e79134450f23bb4c6e02b52 (diff)
downloadFreeBSD-src-4915a2f6a988cc16da029a8ba242b3dc4a0ec47d.zip
FreeBSD-src-4915a2f6a988cc16da029a8ba242b3dc4a0ec47d.tar.gz
Use manpath -L for locales
Diffstat (limited to 'gnu')
-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 c6e8e62..f316bff 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" ];
OpenPOWER on IntegriCloud