1997-08-16 17:04:02 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1997-08-16 17:04:02 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
exit 0 # do not run by default
|
|
|
|
|
1999-09-11 18:55:02 +00:00
|
|
|
if [ -x /usr/libexec/catman.local \
|
|
|
|
-a -d /usr/share/man/cat1 \
|
|
|
|
-a -x /usr/bin/manpath ]; then
|
1997-08-16 17:04:02 +00:00
|
|
|
echo ""
|
|
|
|
echo "Reformatting manual pages:"
|
1997-08-17 17:55:45 +00:00
|
|
|
|
1999-09-11 18:55:02 +00:00
|
|
|
MANPATH=`/usr/bin/manpath -q`
|
|
|
|
if [ $? = 0 ]; then
|
|
|
|
if [ "x${MANPATH}" = "x" ]; then
|
|
|
|
echo "manpath failed to find any manpath directories"
|
|
|
|
else
|
1999-11-23 03:21:19 +00:00
|
|
|
man_locales=`/usr/bin/manpath -qL`
|
1999-09-11 18:55:02 +00:00
|
|
|
|
|
|
|
# Preformat original, non-localized manpages
|
|
|
|
echo /usr/libexec/catman.local "${MANPATH}" | su -fm man
|
|
|
|
|
|
|
|
# Preformat localized manpages.
|
1999-11-23 03:21:19 +00:00
|
|
|
if [ X"${man_locales}" != X ]; then
|
1999-09-11 18:55:02 +00:00
|
|
|
for i in ${man_locales}
|
|
|
|
do
|
|
|
|
LC_CTYPE=$i echo /usr/libexec/catman.local -L "${MANPATH}" | \
|
|
|
|
su -fm man
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
1997-08-16 17:04:02 +00:00
|
|
|
fi
|