1#!/bin/sh 2# $Id: gsepagif.sh,v 1.6 2000/07/08 04:29:25 nari Exp $ 3# output filter for EPSON LP-9200S 4 5GS="/usr/local/bin/gs" 6ERT="/usr/local/bin/ert" 7 8SIZE=a4 9DEV=epag 10RES=300 11EARG="-lang ESC/Page" 12XOFF=0 13YOFF=0 14 15ARG="-q -dNOPAUSE -dSAFER -dBATCH" 16ARG="$ARG -sPAPERSIZE=$SIZE -sOUTPUTFILE=- -sDEVICE=$DEV" 17ARG="$ARG -dEpagOffX=$XOFF -dEpagOffY=$YOFF" 18 19 case $0 in 20 *both.sh) ARG="$ARG -dDuplex";; 21 *flip.sh) ARG="$ARG -dDuplex -DTumble";; 22 *300.sh) RES=300; EARG="$EARG RS=QK";; 23 *600.sh) RES=600; EARG="$EARG RS=FN";; 24 esac 25 26ARG="$ARG -r$RES -" 27 28$GS $ARG | $ERT $EARG 29 30