Commit | Line | Data |
---|---|---|
69695f33 MW |
1 | # UNIX shell script for printing Mup output |
2 | ||
3 | # **** NOTE: The GS_DEVICE shell variable needs to be set to the | |
4 | # proper value for your printer type. | |
5 | # Different versions of ghostscript may support different | |
6 | # printer types, so execute ghostscript with the -h option | |
7 | # to see what your version supports. | |
8 | # | |
9 | # PRINTERTYPE printer | |
10 | # ------------------------------------------------------------------ | |
11 | # bj10e Canon BubbleJet BJ10e | |
12 | # cdeskjet H-P DeskJet 500C with 1 bit/pixel color | |
13 | # cdjcolor H-P DeskJet 500C with 24 bit/pixel color and | |
14 | # high-quality color (Floyd-Steinberg) dithering | |
15 | # cdjmono H-P DeskJet 500C printing black only | |
16 | # deskjet H-P DeskJet and DeskJet Plus | |
17 | # dfaxhigh DigiBoard, Inc.'s DigiFAX software format (high resolution) | |
18 | # dfaxlow DigiFAX low (normal) resolution | |
19 | # djet500 H-P DeskJet 500 | |
20 | # djet500c H-P DeskJet 500C | |
21 | # epson Epson-compatible dot matrix printers (9- or 24-pin) | |
22 | # eps9high Epson-compatible 9-pin, interleaved lines | |
23 | # (triple resolution) | |
24 | # epsonc Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers | |
25 | # laserjet H-P LaserJet | |
26 | # la50 DEC LA50 printer | |
27 | # la75 DEC LA75 printer | |
28 | # lbp8 Canon LBP-8II laser printer | |
29 | # ln03 DEC LN03 printer | |
30 | # lj250 DEC LJ250 Companion color printer | |
31 | # ljet2p H-P LaserJet IId/IIp/III* with TIFF compression | |
32 | # ljet3 H-P LaserJet III* with Delta Row compression | |
33 | # ljetplus H-P LaserJet Plus | |
34 | # necp6 NEC P6/P6+/P60 printers at 360 x 360 DPI resolution | |
35 | # paintjet H-P PaintJet color printer | |
36 | # pjetxl H-P PaintJet XL color printer | |
37 | # r4081 Ricoh 4081 laser printer | |
38 | # tek4696 Tektronix 4695/4696 inkjet plotter | |
39 | ||
40 | echo "Mupprnt - Version 5.3" >&2 | |
41 | ||
42 | # if environment variable COPIES is set, use that as number of copies to print | |
43 | if [ "$COPIES" != "" ] | |
44 | then | |
45 | _Mup_copies=-n$COPIES | |
46 | fi | |
47 | ||
48 | muptmp=/usr/tmp/mtmp$$ | |
49 | trap 'rm -f $muptmp' 0 1 2 15 | |
50 | mup $* | gs -dNOPAUSE -sOutputFile=$muptmp - | |
51 | ||
52 | ||
53 | if [ $? -eq 0 -a -s "$muptmp" ] | |
54 | then | |
55 | # use -c option to copy file to spool area, so we can remove tmp file | |
56 | lp -c $_Mup_copies $muptmp | |
57 | fi |