Initial lp.
This commit is contained in:
parent
9f1d53a09b
commit
6174642093
30 changed files with 1528 additions and 0 deletions
21
lp/spooler/nospool
Executable file
21
lp/spooler/nospool
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/local/plan9/bin/rc
|
||||
if (! ~ $DEBUG '') flag x +
|
||||
|
||||
if (~ $LPCLASS *sendEOT*) SENDEOT=1
|
||||
if not SENDEOT=0
|
||||
|
||||
if (~ $OUTDEV -) OUTDEV=/dev/stdout
|
||||
if (~ $#* 0) {
|
||||
if (! ~ $DEBUG '') echo input file is stdin >[1=2]
|
||||
lpsub process $LPPROC >$OUTDEV
|
||||
if (~ $SENDEOT 1) echo -n `{ascii -t 4} > $OUTDEV
|
||||
}
|
||||
if not {
|
||||
if (! ~ $DEBUG '') echo input files $* >[1=2]
|
||||
for (i in $*) {
|
||||
if (! ~ $DEBUG '') echo processing $i >[1=2]
|
||||
lpsub process $LPPROC < $i > $OUTDEV
|
||||
if (~ $SENDEOT 1) echo -n `{ascii -t 4} > $OUTDEV
|
||||
}
|
||||
}
|
||||
exit ''
|
||||
Loading…
Add table
Add a link
Reference in a new issue