shithub: riscv

ref: e38d42b4a7f278a7f7835e07983115e4ee1b0db4
dir: /sys/lib/lp/spooler/nt-tekphaser350/

View raw version
#!/bin/rc

if (! ~ $DEBUG '') flag x +

if (~ $#* 0) *='/fd/0'

for (j in $*) {
	if (~ $j '/fd/0' || test -f $j) {
		@{bind -b $LPLIB/process /bin; $LPPROC} < $j | aux/download -f -H/sys/lib/postscript/font -mfontmap -ptekphaser350 | /$cputype/bin/aux/lpdsend -d$OUTDEV -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
	}
	if not {
		echo $j cannot be opened >[1=2]
	}
}