Use manpath -L for man locales
This commit is contained in:
parent
597ccab43e
commit
6e31a7f7fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53619
@ -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}"
|
||||
|
@ -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}" | \
|
||||
|
Loading…
Reference in New Issue
Block a user