invoke page better
This commit is contained in:
parent
acb1930587
commit
b908772234
1 changed files with 1 additions and 11 deletions
12
bin/man
12
bin/man
|
|
@ -38,14 +38,6 @@ fn roff {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn page {
|
|
||||||
if(test -d /mnt/wsys/acme)
|
|
||||||
/bin/page -w
|
|
||||||
if not
|
|
||||||
/bin/page
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
while(~ $d 0) {
|
while(~ $d 0) {
|
||||||
if(~ $#* 0) {
|
if(~ $#* 0) {
|
||||||
echo 'Usage: man [-ntp] [-s sec] [0-9] [0-9] ... name1 name2 ...' >[1=2]
|
echo 'Usage: man [-ntp] [-s sec] [0-9] [0-9] ... name1 name2 ...' >[1=2]
|
||||||
|
|
@ -104,9 +96,7 @@ for(i in $fils) {
|
||||||
roff t $i | proof
|
roff t $i | proof
|
||||||
|
|
||||||
case P
|
case P
|
||||||
roff t $i |tr2post |psfonts >/tmp/man.$pid.ps
|
roff t $i |tr2post |psfonts |page
|
||||||
psv /tmp/man.$pid.ps
|
|
||||||
rm -f /tmp/man.$pid.ps
|
|
||||||
|
|
||||||
case n
|
case n
|
||||||
roff n $i | 9sed '
|
roff n $i | 9sed '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue