mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-08 13:28:05 +00:00
Fix catman to produce zipped cats, like man does.
In other (old) case we have both kind of cats at once.
This commit is contained in:
parent
b04a36b2c2
commit
4039f70287
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1535
@ -7,17 +7,19 @@ MANDIR=/usr/share/man
|
||||
formatman()
|
||||
{
|
||||
suffix=`echo $1 | sed -e 's/.*\\.//'`
|
||||
echo " "$1 "->" $*
|
||||
(cd cat$section; rm -f $*)
|
||||
if [ ".$suffix" = "%compext%" ]; then
|
||||
%zcat% man$section/$1 | nroff -man | %compress% > cat$section/$1
|
||||
adds=
|
||||
%zcat% man$section/$1 | nroff -man | %compress% > cat$section/$1$adds
|
||||
else
|
||||
nroff -man < man$section/$1 > cat$section/$1
|
||||
adds=%compext%
|
||||
nroff -man < man$section/$1 | %compress% > cat$section/$1$adds
|
||||
fi
|
||||
catfile=$1; shift
|
||||
echo " "$* "->" $1$adds
|
||||
catfile=$1$adds; shift
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
ln cat$section/$catfile cat$section/$1
|
||||
ln cat$section/$catfile cat$section/$1$adds
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user