Deleted Added
full compact
330.catman (144343) 330.catman (208060)
1#!/bin/sh -
2#
1#!/bin/sh -
2#
3# $FreeBSD: head/etc/periodic/weekly/330.catman 144343 2005-03-30 18:02:49Z ru $
3# $FreeBSD: head/etc/periodic/weekly/330.catman 208060 2010-05-14 04:53:57Z dougb $
4#
5
6# If there is a global system configuration file, suck it in.
7#
8if [ -r /etc/defaults/periodic.conf ]
9then
10 . /etc/defaults/periodic.conf
11 source_periodic_confs

--- 10 unchanged lines hidden (view full) ---

22 echo ""
23 echo "Reformatting manual pages:"
24
25 MANPATH=`/usr/bin/manpath -q`
26 if [ $? = 0 ]
27 then
28 if [ -z "${MANPATH}" ]
29 then
4#
5
6# If there is a global system configuration file, suck it in.
7#
8if [ -r /etc/defaults/periodic.conf ]
9then
10 . /etc/defaults/periodic.conf
11 source_periodic_confs

--- 10 unchanged lines hidden (view full) ---

22 echo ""
23 echo "Reformatting manual pages:"
24
25 MANPATH=`/usr/bin/manpath -q`
26 if [ $? = 0 ]
27 then
28 if [ -z "${MANPATH}" ]
29 then
30 echo "manpath failed to find any manpath directories"
30 echo "manpath failed to find any manpath directories"
31 rc=3
32 else
33 man_locales=`/usr/bin/manpath -qL`
34 rc=0
31 rc=3
32 else
33 man_locales=`/usr/bin/manpath -qL`
34 rc=0
35
36 # Preformat original, non-localized manpages
35
36 # Preformat original, non-localized manpages
37 echo /usr/libexec/catman.local -r "$MANPATH" |
38 su -fm man || rc=3
39
40 # Preformat localized manpages.
41 if [ -n "$man_locales" ]
42 then
43 for i in $man_locales
44 do

--- 14 unchanged lines hidden ---
37 echo /usr/libexec/catman.local -r "$MANPATH" |
38 su -fm man || rc=3
39
40 # Preformat localized manpages.
41 if [ -n "$man_locales" ]
42 then
43 for i in $man_locales
44 do

--- 14 unchanged lines hidden ---