lpdspool+fonts 383 B

12345678910111213141516
  1. #!/bin/rc
  2. if (! ~ $DEBUG '') flag x +
  3. if (~ $#* 0) *='/fd/0'
  4. for (j in $*) {
  5. if (~ $j '/fd/0' || test -f $j) {
  6. @{bind -b $LPLIB/process /bin; $LPPROC} < $j |
  7. aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ |
  8. /$cputype/bin/aux/lpdsend -d$OUTDEV -tf -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
  9. }
  10. if not {
  11. echo $j cannot be opened >[1=2]
  12. }
  13. }