File: alc2000

package info (click to toggle)
apsfilter 7.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 61
  • sloc: sh: 457; ansic: 236; perl: 175; makefile: 157
file content (28 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $ApsCVS: src/apsfilter/driver/alc2000,v 1.1 2001/11/17 15:21:54 andreas Exp $

case "$QUALITY" in
	draft)	RESOLUTION=300x300
		GS_FEATURES="$GS_FEATURES -dTonerSaving" ;;
	low)	RESOLUTION=300x300 ;;
	medium)	RESOLUTION=600x600 ;;
	*)	RESOLUTION=1200x1200 ;;
esac

# this is a bit of a kludge
case "$PAPERTRAY" in
	"")	;;
	0)	GS_FEATURES="$GS_FEATURES -dManualFeed" ;;
	*)	GS_FEATURES="$GS_FEATURES -dCasset=$PAPERTRAY" ;;
esac

[ "$MEDIA" = trans ] && GS_FEATURES="$GS_FEATURES -sMediaType=TRANS"

[ "$HARDWARE_COPIES" ] && GS_FEATURES="$GS_FEATURES -dNumCopies=$COPIES"

if [ -n "$HARDWARE_DUPLEX" -a -n "$DUPLEX" ]; then
	if [ "$BINDING" = short ]; then
		GS_FEATURES="$GS_FEATURES -dDuplex -dTumble"
	else
		GS_FEATURES="$GS_FEATURES -dDuplex"
	fi
fi