Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
# extended to IJS driver by K.Okamoto
3
# duble-sided printing for PSC 2550 printer
4
#
5
if (! ~ $DEBUG '') flag x +
6
 
7
# usage: gspipeijs [dev]
8
# assumes postscript on stdin
9
 
10
switch($#*) {
11
case 0
12
	MODEL=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)(\+.*)?/\2/'}
13
	NUMBER=`{echo $LPCLASS | sed 's/(.*\+)?gsijs!([^+]*)\+(.*)?/\3/'}
14
case 1
15
	IJS=$1
16
case *
17
	echo 'usage: gspipeijs [dev]' >[1=2]
18
	exit gspipeijs
19
}
20
 
21
GSTMPFILE=/tmp/gsp$pid
22
 
23
switch($NUMBER) {
24
case 2100
25
	GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH)
26
case 2500
27
	GSOPT=(-q -sDEVICE'='ijs -sIjsServer'='hpijs -sDeviceManufacturer'='HP '-sDeviceModel='"$MODEL^' '^$NUMBER" -r600 -sOutputFile'='^$GSTMPFILE -dDuplex'='true -sPAPERSIZE'='a4 -dIjsUseOutputFD -dSAFER -dNOPAUSE -DBATCH)
28
}
29
 
30
gs $GSOPT  - 
31
 
32
cat $GSTMPFILE
33
rm $GSTMPFILE
34
 
35
exit