Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 66357 | Differences between
and this patch

Collapse All | Expand All

(-)espgs-7.07.1.orig/lib/pj-gs.sh (-7 / +8 lines)
Lines 241-246 Link Here
241
			then
241
			then
242
				/usr/lib/lprcat $Nofilter $Nolabel $file PCL1 $user $dev
242
				/usr/lib/lprcat $Nofilter $Nolabel $file PCL1 $user $dev
243
			else
243
			else
244
				TEMPFILE=`mktemp -t pjXXXXXX` || exit 1
244
				type=`file $file | sed 's/^[^:]*..//'`
245
				type=`file $file | sed 's/^[^:]*..//'`
245
				case "$type" in
246
				case "$type" in
246
				postscript*)
247
				postscript*)
Lines 251-272 Link Here
251
#
252
#
252
#					gs -q -sDEVICE=paintjet -r180 -sOutputFile=- -dDISKFONTS -dNOPAUSE - < $file 2>/tmp/sh$$
253
#					gs -q -sDEVICE=paintjet -r180 -sOutputFile=- -dDISKFONTS -dNOPAUSE - < $file 2>/tmp/sh$$
253
254
254
					gs -q -sDEVICE=paintjet -r180 -sOutputFile=/tmp/pj$$ -dDISKFONTS -dNOPAUSE - < $file 1>2
255
					gs -q -sDEVICE=paintjet -r180 -sOutputFile=$TEMPFILE -dDISKFONTS -dNOPAUSE - < $file 1>2
255
					cat /tmp/pj$$
256
					cat $TEMPFILE
256
					rm /tmp/pj$$
257
					rm $TEMPFILE
257
					needff=
258
					needff=
258
					;;
259
					;;
259
				*)	cat "$file" 2>/tmp/sh$$
260
				*)	cat "$file" 2>$TEMPFILE
260
					needff=1
261
					needff=1
261
					;;
262
					;;
262
				esac
263
				esac
263
264
264
				if [ -s /tmp/sh$$ ]
265
				if [ -s $TEMPFILE ]
265
				then
266
				then
266
#				    cat /tmp/sh$$	# output any errors
267
#				    cat /tmp/sh$$	# output any errors
267
				    cat /tmp/sh$$ 1>2	# output any errors
268
				    cat $TEMPFILE 1>2	# output any errors
268
				fi
269
				fi
269
				rm -f /tmp/sh$$
270
				rm -f $TEMPFILE
270
				if [ $needff ]; then echo "\014\r\c"; fi
271
				if [ $needff ]; then echo "\014\r\c"; fi
271
			fi
272
			fi
272
273
(-)espgs-7.07.1.orig/lib/ps2epsi (-6 / +1 lines)
Lines 1-12 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: ps2epsi,v 1.7 2003/09/02 18:01:31 easysw Exp $
2
# $Id: ps2epsi,v 1.7 2003/09/02 18:01:31 easysw Exp $
3
3
4
tmpfile=/tmp/ps2epsi$$
4
tmpfile=`mktemp -t ps2epsiXXXXXX` || exit 1
5
rm -f $tmpfile
6
if test -e $tmpfile; then
7
	echo "$0: Our temporary file $tmpfile already exists." 1>&2
8
	exit 1
9
fi
10
trap "rm -rf $tmpfile" 0 1 2 3 7 13 15
5
trap "rm -rf $tmpfile" 0 1 2 3 7 13 15
11
6
12
export outfile
7
export outfile
(-)espgs-7.07.1.orig/lib/pv.sh (-3 / +4 lines)
Lines 29-37 Link Here
29
PAGE=$1
29
PAGE=$1
30
shift
30
shift
31
FILE=$1
31
FILE=$1
32
TEMPFILE=`mktemp -t ${FILE}XXXXXX` || exit 1
32
shift
33
shift
33
trap "rm -rf $TEMPDIR/$FILE.$$.pv" 0 1 2 15
34
trap "rm -rf $TEMPFILE" 0 1 2 15
34
#dvips -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
35
#dvips -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
35
dvips -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv
36
dvips -p $PAGE -n 1 $FILE $* -o $TEMPFILE
36
gs $FILE.$$.pv
37
gs $TEMPFILE
37
exit 0
38
exit 0
(-)espgs-7.07.1.orig/lib/sysvlp.sh (-3 / +6 lines)
Lines 27-46 Link Here
27
# Brother HL-4: switch to HP laserjet II+ emulation
27
# Brother HL-4: switch to HP laserjet II+ emulation
28
# echo "\033\015H\c"
28
# echo "\033\015H\c"
29
29
30
TEMPDIR=`mktemp -td sysvlp.XXXXXX` || exit 1
31
30
i=1
32
i=1
31
while [ $i -le $copies ]
33
while [ $i -le $copies ]
32
do
34
do
33
	for file in $files
35
	for file in $files
34
	do
36
	do
35
		$GSHOME/gs \
37
		$GSHOME/gs \
36
			-sOUTPUTFILE=/tmp/psp$$.%02d \
38
			-sOUTPUTFILE=$TEMPDIR/psp$$.%02d \
37
			-sDEVICE=$DEVICE \
39
			-sDEVICE=$DEVICE \
38
			$EHANDLER $file \
40
			$EHANDLER $file \
39
			< /dev/null >> /usr/tmp/ps_log 2>&1
41
			< /dev/null >> /usr/tmp/ps_log 2>&1
40
42
41
		cat /tmp/psp$$.* 2>> /usr/tmp/ps_log
43
		cat $TEMPDIR/psp$$.* 2>> /usr/tmp/ps_log
42
		rm -f /tmp/psp$$.*
44
		rm -f $TEMPDIR/psp$$.*
43
	done
45
	done
44
	i=`expr $i + 1`
46
	i=`expr $i + 1`
45
done
47
done
48
rmdir $TEMPDIR
46
exit 0
49
exit 0

Return to bug 66357