mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-10 16:31:18 +01:00
Use manpath -L for locales
This commit is contained in:
parent
f052fd3563
commit
597ccab43e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53618
@ -53,13 +53,7 @@ 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
|
||||
man_locales=`%bindir%/manpath -qL`
|
||||
|
||||
# search for existing */whatis databases
|
||||
mandir=''
|
||||
@ -71,7 +65,7 @@ do
|
||||
fi
|
||||
|
||||
# Check for locailzed manpage subdirectories
|
||||
if [ "$man_locales" != "NO" ]; then
|
||||
if [ X"$man_locales" != X ]; then
|
||||
for l in $man_locales
|
||||
do
|
||||
if [ -f "$d/$l/$db" -a -r "$d/$l/$db" ];
|
||||
|
Loading…
Reference in New Issue
Block a user