File: pscprint

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 (20 lines) | stat: -rwxr-xr-x 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# $Id: pscprint,v 1.1 1999/03/28 17:53:04 henryk Exp $
# Simple wrapper for GhostScript for Lexmark 7000 printer driver
# with colour support
set -e
LPDEVICE=/dev/lp0
PNMFILT=./pnmraw2cmyk
L7KPROG=./pbm2l7k

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

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