Rev 2 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
2 |
- |
1 |
#!/bin/rc
|
|
|
2 |
if (! ~ $DEBUG '') flag x +
|
|
|
3 |
if (~ $OUTDEV -) OUTDEV=/fd/1
|
|
|
4 |
if (~ $#* 0) {
|
|
|
5 |
@{bind -b $LPLIB/process /bin; $LPPROC} | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
|
|
|
6 |
if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
|
|
|
7 |
}
|
|
|
8 |
if not {
|
|
|
9 |
for (i in $*) {
|
|
|
10 |
@{bind -b $LPLIB/process /bin; $LPPROC} < $i | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
|
|
|
11 |
if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
|
|
|
12 |
}
|
|
|
13 |
}
|
|
|
14 |
exit ''
|