Blob
1 #!/usr/local/plan9/bin/rc2 if (! ~ $DEBUG '') flag x +4 if (~ $LPCLASS *sendEOT*) SENDEOT=15 if not SENDEOT=07 if (~ $OUTDEV -) OUTDEV=/dev/stdout8 if (~ $#* 0) {9 if (! ~ $DEBUG '') echo input file is stdin >[1=2]10 lpsub process $LPPROC >$OUTDEV11 if (~ $SENDEOT 1) echo -n `{ascii -t 4} > $OUTDEV12 }13 if not {14 if (! ~ $DEBUG '') echo input files $* >[1=2]15 for (i in $*) {16 if (! ~ $DEBUG '') echo processing $i >[1=2]17 lpsub process $LPPROC < $i > $OUTDEV18 if (~ $SENDEOT 1) echo -n `{ascii -t 4} > $OUTDEV19 }20 }21 exit ''