aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:21:19 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-11-23 03:21:19 +0000
commit6e31a7f7fc1ef66b62b661b4c87444b66a2b4a36 (patch)
tree7bd4f6061d23b6923c4ac80c093927a3ccbbdad2
parent597ccab43ed0c14ded2b0bab03e954a03908c78b (diff)
downloadsrc-6e31a7f7fc1ef66b62b661b4c87444b66a2b4a36.tar.gz
src-6e31a7f7fc1ef66b62b661b4c87444b66a2b4a36.zip
Use manpath -L for man locales
Notes
Notes: svn path=/head/; revision=53619
-rwxr-xr-xetc/periodic/weekly/320.whatis10
-rwxr-xr-xetc/periodic/weekly/330.catman10
2 files changed, 4 insertions, 16 deletions
diff --git a/etc/periodic/weekly/320.whatis b/etc/periodic/weekly/320.whatis
index cab4376aa4b4..34363318698b 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}"
diff --git a/etc/periodic/weekly/330.catman b/etc/periodic/weekly/330.catman
index bb70e32e37d2..a2a6a8ee8e2a 100755
--- a/etc/periodic/weekly/330.catman
+++ b/etc/periodic/weekly/330.catman
@@ -16,19 +16,13 @@ if [ -x /usr/libexec/catman.local \
if [ "x${MANPATH}" = "x" ]; then
echo "manpath failed to find any manpath 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`
# Preformat original, non-localized manpages
echo /usr/libexec/catman.local "${MANPATH}" | su -fm man
# Preformat 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 echo /usr/libexec/catman.local -L "${MANPATH}" | \