summaryrefslogtreecommitdiffstats
path: root/etc/periodic/weekly/320.whatis
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-23 03:21:19 +0000
committerache <ache@FreeBSD.org>1999-11-23 03:21:19 +0000
commita2d665c87acb51c3dde9d9af9418e94cd8756672 (patch)
tree7bd4f6061d23b6923c4ac80c093927a3ccbbdad2 /etc/periodic/weekly/320.whatis
parent4915a2f6a988cc16da029a8ba242b3dc4a0ec47d (diff)
downloadFreeBSD-src-a2d665c87acb51c3dde9d9af9418e94cd8756672.zip
FreeBSD-src-a2d665c87acb51c3dde9d9af9418e94cd8756672.tar.gz
Use manpath -L for man locales
Diffstat (limited to 'etc/periodic/weekly/320.whatis')
-rwxr-xr-xetc/periodic/weekly/320.whatis10
1 files changed, 2 insertions, 8 deletions
diff --git a/etc/periodic/weekly/320.whatis b/etc/periodic/weekly/320.whatis
index cab4376..3436331 100755
--- a/etc/periodic/weekly/320.whatis
+++ b/etc/periodic/weekly/320.whatis
@@ -13,19 +13,13 @@ if [ -x /usr/libexec/makewhatis.local -a -x /usr/bin/manpath ]; then
if [ "x${MANPATH}" = "x" ]; then
echo "manpath failed to find any manpage directories"
else
- # If possible, check global system configuration file
- # for additional man(1) 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=`/usr/bin/manpath -qL`
# Build whatis(1) database(s) for original, non-localized manpages.
/usr/libexec/makewhatis.local "${MANPATH}"
# Build whatis(1) database(s) for localized manpages.
- if [ "x${man_locales}" != "x" -a "${man_locales}" != "NO" ]; then
+ if [ X"${man_locales}" != X ]; then
for i in ${man_locales}
do
LC_CTYPE=$i /usr/libexec/makewhatis.local -a -L "${MANPATH}"
OpenPOWER on IntegriCloud