2011-03-30 13:49:47 +00:00
|
|
|
< /sys/man/fonts
|
|
|
|
|
|
|
|
LIB=/sys/lib/man
|
|
|
|
|
|
|
|
default:V: check
|
|
|
|
|
|
|
|
indices:V:
|
2020-01-04 17:02:54 +00:00
|
|
|
for (i in [0-9]){
|
2011-03-30 13:49:47 +00:00
|
|
|
$LIB/secindex $i > $i/INDEX
|
|
|
|
$LIB/mkhtmlindex $i > $i/INDEX.html
|
|
|
|
}
|
|
|
|
mk lookindex
|
|
|
|
$LIB/mksearchindex > searchindex # index for man2html searches
|
|
|
|
|
|
|
|
permind:V:
|
2011-05-12 18:36:46 +00:00
|
|
|
rm -f $LIB/permind/toc
|
2011-03-30 13:49:47 +00:00
|
|
|
{
|
|
|
|
echo .am TH
|
|
|
|
echo .tm '\\$1' '\\$2' '\\n%'
|
|
|
|
echo ..
|
2020-01-04 17:02:54 +00:00
|
|
|
for (i in [0-9]){
|
2011-03-30 13:49:47 +00:00
|
|
|
builtin cd $i
|
|
|
|
for(j in [a-z0-9]*)
|
|
|
|
switch($i/$j){
|
|
|
|
case 1/tbl
|
|
|
|
tbl $j
|
2021-06-27 00:13:58 +00:00
|
|
|
case 1/eqn 3/usb
|
2011-03-30 13:49:47 +00:00
|
|
|
eqn $j
|
|
|
|
case 1/pic
|
|
|
|
pic $j
|
|
|
|
case 1/grap
|
|
|
|
grap $j | pic
|
|
|
|
case *
|
|
|
|
cat $j
|
|
|
|
}
|
|
|
|
builtin cd ..
|
|
|
|
}
|
2011-05-12 18:36:46 +00:00
|
|
|
} | troff -$MAN > /dev/null >[2] $LIB/permind/toc
|
2011-03-30 13:49:47 +00:00
|
|
|
builtin cd $LIB/permind
|
|
|
|
rm -f out
|
|
|
|
mk out > /dev/null >[2] /dev/null
|
|
|
|
|
|
|
|
old-check:V: checksource
|
2020-01-04 17:02:54 +00:00
|
|
|
awk -f $LIB/checkman.awk [0-9]/* | sed '/\/(cda|av|midi|pub|weather|service\.9net|isdn)(\/|\))/d'
|
2011-03-30 13:49:47 +00:00
|
|
|
|
|
|
|
punccheck:
|
|
|
|
grep -n '^\.[IB][^PRIB].+[.;,:]$' [0-9]/* | grep -v '\.\.\.'
|
|
|
|
|
|
|
|
check:V: indices checksource
|
2020-01-04 17:02:54 +00:00
|
|
|
awk -f $LIB/checkman.awk [0-9]/*
|
2011-03-30 13:49:47 +00:00
|
|
|
|
|
|
|
checksource:QV:
|
|
|
|
sam -d >[2]/dev/null <<'!'
|
|
|
|
f input
|
2020-01-04 17:02:54 +00:00
|
|
|
< cat [0-9]/[0-9a-z]*
|
2011-03-30 13:49:47 +00:00
|
|
|
B output
|
|
|
|
b input
|
|
|
|
,x/^\.SH SOURCE/ .,/^\.SH/ x g/^\.B/t "output
|
|
|
|
b output
|
|
|
|
,x/^\.B.? / d
|
|
|
|
,x/ .*/d
|
|
|
|
,s/.+/if(! test -f & \&\& ! test -d &) echo no such SOURCE file '&'/g
|
|
|
|
,>rc
|
|
|
|
!
|
|
|
|
|
|
|
|
lookindex:V:
|
|
|
|
builtin cd $LIB/lookman
|
|
|
|
mkindex
|
|
|
|
|
|
|
|
|
|
|
|
print.out:V: permind
|
|
|
|
{
|
|
|
|
{echo -n $FONTS; cat $LIB/title} | troff
|
|
|
|
{echo -n $FONTS; cat $LIB/trademarks} | troff -ms
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; cat $LIB/preface4} | troff -ms
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; cat $LIB/preface3} | troff -ms
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; cat $LIB/preface} | troff -ms
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{
|
2020-01-04 17:02:54 +00:00
|
|
|
for (i in [0-9]){
|
2011-03-30 13:49:47 +00:00
|
|
|
builtin cd $i
|
|
|
|
for(j in [a-z0-9]*)
|
|
|
|
switch($i/$j){
|
|
|
|
case 1/tbl
|
|
|
|
tbl $j
|
2021-06-27 00:13:58 +00:00
|
|
|
case 1/eqn 3/usb
|
2011-03-30 13:49:47 +00:00
|
|
|
eqn $j
|
|
|
|
case 1/pic
|
|
|
|
pic $j
|
|
|
|
case 1/grap
|
|
|
|
grap $j | pic
|
|
|
|
case *
|
|
|
|
cat $j
|
|
|
|
}
|
|
|
|
builtin cd ..
|
|
|
|
}
|
|
|
|
} | troff -$MAN
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
cat $LIB/permind/out
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; echo ' '} | troff
|
|
|
|
{echo -n $FONTS; cat $LIB/colophon} | troff
|
|
|
|
} > print.out
|
|
|
|
|
2011-05-05 06:41:01 +00:00
|
|
|
%.ps: print.out
|
|
|
|
lp -dstdout $prereq >$target
|
|
|
|
|
|
|
|
%.gz: %
|
|
|
|
gzip $prereq
|
|
|
|
|
|
|
|
%.pdf: %.ps
|
|
|
|
ps2pdf $prereq $target
|
|
|
|
|
2011-03-30 13:49:47 +00:00
|
|
|
clean:V:
|
2020-01-04 17:02:54 +00:00
|
|
|
rm -f man.out print.out searchindex $LIB/permind/toc $LIB/lookman/index [0-9]^/INDEX^('' .html)
|
2011-05-09 16:47:40 +00:00
|
|
|
builtin cd $LIB/permind
|
|
|
|
mk clean
|