diff options
Diffstat (limited to 'lp/daemon/gsdev')
-rwxr-xr-x | lp/daemon/gsdev | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lp/daemon/gsdev b/lp/daemon/gsdev new file mode 100755 index 00000000..bb48edd9 --- /dev/null +++ b/lp/daemon/gsdev @@ -0,0 +1,19 @@ +#!/usr/local/plan9/bin/rc + +fn local { + GSDEVICE=`{echo $LPCLASS | 9 sed 's/(.*\+)?gs!([^+]*)(\+.*)?/\2/'} + echo gs $GSDEVICE + { + psdownload -f -H$PLAN9/postscript/font -mfontmap -plw+ \ + < $LPDEST/$FILE(1) | + gs -sDEVICE'='$GSDEVICE -s'OUTPUTFILE='$OUTDEV -dSAFER -dNOPAUSE -dQUIET -dBATCH - + } >[2]$PRINTLOG +} +fn remote { + { + echo -d$LPDEST -pnoproc -M$SCHEDLINE(1) -u$SCHEDLINE(2) + cat $LPDEST/$FILE + sleep 5 + } | lpsend.rc $DEST_HOST +} +generic local remote '' |