* Format "intro" page first (location from "intros" file)
* If the manpage requires running tbl (-> .TS), do so
This commit is contained in:
parent
4acdda21fd
commit
6fb770a42a
@ -1,5 +1,5 @@
|
||||
# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
|
||||
# $NetBSD: Makefile,v 1.5 2001/06/26 02:26:06 hubertf Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2001/06/30 00:19:25 hubertf Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
@ -20,10 +20,19 @@ man:
|
||||
man.ps:
|
||||
for i in 1 2 3 4 5 6 7 8 9 ; \
|
||||
do \
|
||||
for f in `cat man$${i}` ; \
|
||||
for f in `grep "$${i}\$$" intros` `cat man$${i}` ; \
|
||||
do \
|
||||
echo >&2 $${f} ; \
|
||||
troff -msafer -man -Tps $${f} ; \
|
||||
if [ ! -f $${f} ]; then \
|
||||
continue ; \
|
||||
fi ; \
|
||||
if grep -q ^\\.TS back ; \
|
||||
then \
|
||||
echo >&2 $${f} ; \
|
||||
cat $${f} | tbl | troff -msafer -man -Tps $${f} ; \
|
||||
else \
|
||||
echo >&2 $${f} "(tbl)" ; \
|
||||
cat $${f} | troff -msafer -man -Tps $${f} ; \
|
||||
fi ; \
|
||||
done >man$${i}pages.tmp ; \
|
||||
grops <man$${i}pages.tmp >man$${i}pages.ps ; \
|
||||
rm man$${i}pages.tmp ; \
|
||||
|
22
share/man/man0/intros
Normal file
22
share/man/man0/intros
Normal file
@ -0,0 +1,22 @@
|
||||
../man1/intro.1
|
||||
../../../lib/libc/sys/intro.2
|
||||
../man3/intro.3
|
||||
../man4/man4.amiga/intro.4
|
||||
../man4/man4.arm32/intro.4
|
||||
../man4/man4.atari/intro.4
|
||||
../man4/man4.hp300/intro.4
|
||||
../man4/man4.i386/intro.4
|
||||
../man4/man4.mac68k/intro.4
|
||||
../man4/man4.macppc/intro.4
|
||||
../man4/man4.mvme68k/intro.4
|
||||
../man4/man4.pc532/intro.4
|
||||
../man4/man4.pmax/intro.4
|
||||
../man4/man4.sparc/intro.4
|
||||
../man4/man4.sun3/intro.4
|
||||
../man4/man4.vax/intro.4
|
||||
../man4/man4.x68k/intro.4
|
||||
../man5/intro.5
|
||||
../man6/intro.6
|
||||
../man7/intro.7
|
||||
../man8/intro.8
|
||||
../man9/intro.9
|
Loading…
Reference in New Issue
Block a user