diff options
author | Karl Berry <karl@freefriends.org> | 2005-12-28 00:07:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2005-12-28 00:07:27 +0000 |
commit | 30dd9f517c9c093ff3319061647a4555264f7914 (patch) | |
tree | 0d7a349bf99be5a42cc9c5a80a30f3b7136c4ccd /Master/xemtex/gslib/sysvlp.sh | |
parent | 08ab8dce83f53b0f915cb66a37bbc8478b22c307 (diff) |
trunk
git-svn-id: svn://tug.org/texlive/trunk@9 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/xemtex/gslib/sysvlp.sh')
-rw-r--r-- | Master/xemtex/gslib/sysvlp.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/xemtex/gslib/sysvlp.sh b/Master/xemtex/gslib/sysvlp.sh new file mode 100644 index 00000000000..b93304ce481 --- /dev/null +++ b/Master/xemtex/gslib/sysvlp.sh @@ -0,0 +1,46 @@ +#!/bin/sh +# $Id: sysvlp.sh,v 1.1 2000/03/09 08:40:40 lpd Exp $ + +# System V 3.2 lp interface for parallel, postscript printer +# with ghostscript 2.5.n. +# +# Thanks to Arne Ludwig (arne@rrzbu.hanse.de) for this script. +# + +DEVICE=lbp8 +GSHOME=/local/gs/2.5b2 +FONT=/local +LIBDIR=/usr/spool/lp/admins/lp/interfaces +#EHANDLER=$LIBDIR/ehandler.ps + +GS_LIB=$GSHOME:$FONT/fonts:$FONT/fonts/lw:$FONT/fonts/gs +export GS_LIB + +copies=$4 +shift 5 +files="$*" + +# serial line settings +# stty 19200 ixon ixoff 0<&1 +# stty 1200 tabs cread opost onlcr ixon ixany ff1 cr2 nl0 0<&1 + +# Brother HL-4: switch to HP laserjet II+ emulation +# echo "\033\015H\c" + +i=1 +while [ $i -le $copies ] +do + for file in $files + do + $GSHOME/gs \ + -sOUTPUTFILE=/tmp/psp$$.%02d \ + -sDEVICE=$DEVICE \ + $EHANDLER $file \ + < /dev/null >> /usr/tmp/ps_log 2>&1 + + cat /tmp/psp$$.* 2>> /usr/tmp/ps_log + rm -f /tmp/psp$$.* + done + i=`expr $i + 1` +done +exit 0 |