aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-10-30 21:18:52 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-10-30 21:18:52 +0000
commitfb17926b0c4c6b80b529f25030754c5005be9248 (patch)
tree78b46778d8bacf65deef2f6ccb95163c4f343c6c /gnu
parent522b3dcd28cce7981fa7ed47458afd8e63658664 (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/man/apropos/apropos.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/usr.bin/man/apropos/apropos.sh b/gnu/usr.bin/man/apropos/apropos.sh
index 4f68263ce4ec4..c6e8e62c5d8de 100644
--- a/gnu/usr.bin/man/apropos/apropos.sh
+++ b/gnu/usr.bin/man/apropos/apropos.sh
@@ -53,6 +53,14 @@ 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
+
# search for existing */whatis databases
mandir=''
for d in $manpath
@@ -61,6 +69,17 @@ do
then
mandir="$mandir $d/$db"
fi
+
+ # Check for locailzed manpage subdirectories
+ if [ "$man_locales" != "NO" ]; then
+ for l in $man_locales
+ do
+ if [ -f "$d/$l/$db" -a -r "$d/$l/$db" ];
+ then
+ mandir="$mandir $d/$l/$db"
+ fi
+ done
+ fi
done
case X"$mandir" in X)