shithub: riscv

ref: a1fceabd5ba5f54d7a54a8bfa9138230f2372267
dir: /sys/lib/lp/spooler/pcclone/

View raw version
#!/bin/rc
if (! ~ $DEBUG '') flag x +
if (~ $OUTDEV -) OUTDEV=/fd/1
if (~ $#* 0) {
	@{bind -b $LPLIB/process /bin; $LPPROC} | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
	if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
}
if not {
	for (i in $*) {
		@{bind -b $LPLIB/process /bin; $LPPROC} < $i  | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
		if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
	}
}
exit ''