File: psprint

package info (click to toggle)
lexmark7000linux 0.1999-03-28-2
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 412 kB
  • ctags: 82
  • sloc: ansic: 929; sh: 93; makefile: 53
file content (18 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# $Id: psprint,v 1.3 1999/03/28 09:12:23 henryk Exp $
# Simple wrapper for GhostScript for Lexmark 7000 printer driver
set -e
LPDEVICE=/dev/lp0
L7KPROG=./pbm2l7k

if [ $# = 0 ];then
 echo "Usage: $0  file1.ps file2.ps ...."
 exit -1
fi

while [ ! -z "$1" ];do
gs -dNOPAUSE -q -sDEVICE=pbmraw -sOutputFile=- -r600 \
 $1 -c quit | $L7KPROG > $LPDEVICE
shift
done