man: don't paginate when using nroff
This tells bin/man to set the register L to very high to avoid pagination and updates tmac/tmac.an to use that value, if it's set, to set the page length. This is per Plan 9's rc/bin/man and sys/lib/tmac/tmac.an.
This commit is contained in:
committed by
Dan Cross
parent
61e362add9
commit
a5d6857a3b
11
bin/man
11
bin/man
@@ -18,6 +18,7 @@ fn roff {
|
||||
}
|
||||
if not {
|
||||
Nflag=-N
|
||||
Lflag='-rL1000i'
|
||||
}
|
||||
if(~ $x *eqn*)
|
||||
preproc=($preproc eqn)
|
||||
@@ -26,15 +27,15 @@ fn roff {
|
||||
|
||||
switch($#preproc) {
|
||||
case 0
|
||||
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN
|
||||
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag $Lflag -$MAN
|
||||
case 1
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc | troff $Nflag -$MAN
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc | troff $Nflag $Lflag -$MAN
|
||||
case 2
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | troff $Nflag -$MAN
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | troff $Nflag $Lflag -$MAN
|
||||
case 3
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | troff $Nflag -$MAN
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | troff $Nflag $Lflag -$MAN
|
||||
case *
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | $preproc(4) | troff $Nflag -$MAN
|
||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | $preproc(4) | troff $Nflag $Lflag -$MAN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user