summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/apropos/apropos.sh
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-10-30 21:18:52 +0000
committerache <ache@FreeBSD.org>1999-10-30 21:18:52 +0000
commita2d0bee1102bb84a14162d12435339981f661f5c (patch)
tree78b46778d8bacf65deef2f6ccb95163c4f343c6c /gnu/usr.bin/man/apropos/apropos.sh
parent9d26bc5a5be754a36f957859700bc50eb8fc372f (diff)
downloadFreeBSD-src-a2d0bee1102bb84a14162d12435339981f661f5c.zip
FreeBSD-src-a2d0bee1102bb84a14162d12435339981f661f5c.tar.gz
Localize it
Submitted by: phantom
Diffstat (limited to 'gnu/usr.bin/man/apropos/apropos.sh')
-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 4f68263..c6e8e62 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)
OpenPOWER on IntegriCloud