home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Unix / ps2epsmac1.3.shar < prev    next >
SHell self-extracting ARchive  |  1993-05-21  |  47.3 KB  |  [????/????]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert SHell self-extracting ARchive (archive/shar) ext Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)


id metadata
keyvalue
macFileType[????]
macFileCreator[????]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |#Receive|d: from |
|00000010| 4e 4f 43 32 2e 44 43 43 | 53 2e 55 50 45 4e 4e 2e |NOC2.DCC|S.UPENN.|
|00000020| 45 44 55 20 62 79 20 74 | 65 72 6d 69 6e 61 74 6f |EDU by t|erminato|
|00000030| 72 2e 72 73 2e 69 74 64 | 2e 75 6d 69 63 68 2e 65 |r.rs.itd|.umich.e|
|00000040| 64 75 20 28 35 2e 36 37 | 2f 32 2e 32 29 0a 23 09 |du (5.67|/2.2).#.|
|00000050| 69 64 20 41 41 31 38 31 | 37 30 3b 20 54 75 65 2c |id AA181|70; Tue,|
|00000060| 20 32 36 20 4a 61 6e 20 | 39 33 20 31 35 3a 31 39 | 26 Jan |93 15:19|
|00000070| 3a 31 33 20 2d 30 35 30 | 30 0a 23 52 65 63 65 69 |:13 -050|0.#Recei|
|00000080| 76 65 64 3a 20 66 72 6f | 6d 20 4d 45 43 48 2e 53 |ved: fro|m MECH.S|
|00000090| 45 41 53 2e 55 50 45 4e | 4e 2e 45 44 55 20 62 79 |EAS.UPEN|N.EDU by|
|000000a0| 20 6e 6f 63 32 2e 64 63 | 63 73 2e 75 70 65 6e 6e | noc2.dc|cs.upenn|
|000000b0| 2e 65 64 75 0a 23 09 69 | 64 20 41 41 31 30 35 36 |.edu.#.i|d AA1056|
|000000c0| 31 3b 20 54 75 65 2c 20 | 32 36 20 4a 61 6e 20 39 |1; Tue, |26 Jan 9|
|000000d0| 33 20 31 35 3a 31 39 3a | 31 30 20 2d 30 35 30 30 |3 15:19:|10 -0500|
|000000e0| 0a 23 52 65 74 75 72 6e | 2d 50 61 74 68 3a 20 3c |.#Return|-Path: <|
|000000f0| 67 65 6f 72 67 65 40 6d | 65 63 68 2e 73 65 61 73 |george@m|ech.seas|
|00000100| 2e 75 70 65 6e 6e 2e 65 | 64 75 3e 0a 23 52 65 63 |.upenn.e|du>.#Rec|
|00000110| 65 69 76 65 64 3a 20 62 | 79 20 6d 65 63 68 2e 73 |eived: b|y mech.s|
|00000120| 65 61 73 2e 75 70 65 6e | 6e 2e 65 64 75 0a 23 09 |eas.upen|n.edu.#.|
|00000130| 69 64 20 41 41 32 31 35 | 39 35 3b 20 54 75 65 2c |id AA215|95; Tue,|
|00000140| 20 32 36 20 4a 61 6e 20 | 39 33 20 31 35 3a 31 39 | 26 Jan |93 15:19|
|00000150| 3a 30 37 20 45 53 54 0a | 23 44 61 74 65 3a 20 54 |:07 EST.|#Date: T|
|00000160| 75 65 2c 20 32 36 20 4a | 61 6e 20 39 33 20 31 35 |ue, 26 J|an 93 15|
|00000170| 3a 31 39 3a 30 37 20 45 | 53 54 0a 23 46 72 6f 6d |:19:07 E|ST.#From|
|00000180| 3a 20 67 65 6f 72 67 65 | 40 6d 65 63 68 2e 73 65 |: george|@mech.se|
|00000190| 61 73 2e 75 70 65 6e 6e | 2e 65 64 75 20 28 47 65 |as.upenn|.edu (Ge|
|000001a0| 6f 72 67 65 20 4a 65 66 | 66 65 72 73 6f 6e 29 0a |orge Jef|ferson).|
|000001b0| 23 50 6f 73 74 65 64 2d | 44 61 74 65 3a 20 54 75 |#Posted-|Date: Tu|
|000001c0| 65 2c 20 32 36 20 4a 61 | 6e 20 39 33 20 31 35 3a |e, 26 Ja|n 93 15:|
|000001d0| 31 39 3a 30 37 20 45 53 | 54 0a 23 4d 65 73 73 61 |19:07 ES|T.#Messa|
|000001e0| 67 65 2d 49 64 3a 20 3c | 39 33 30 31 32 36 32 30 |ge-Id: <|93012620|
|000001f0| 31 39 2e 41 41 32 31 35 | 39 35 40 6d 65 63 68 2e |19.AA215|95@mech.|
|00000200| 73 65 61 73 2e 75 70 65 | 6e 6e 2e 65 64 75 3e 0a |seas.upe|nn.edu>.|
|00000210| 23 54 6f 3a 20 6d 61 63 | 67 69 66 74 73 40 6d 61 |#To: mac|gifts@ma|
|00000220| 63 2e 61 72 63 68 69 76 | 65 2e 75 6d 69 63 68 2e |c.archiv|e.umich.|
|00000230| 65 64 75 0a 23 53 75 62 | 6a 65 63 74 3a 20 70 73 |edu.#Sub|ject: ps|
|00000240| 32 65 70 73 2d 6d 61 63 | 0a 23 0a 23 0a 23 74 68 |2eps-mac|.#.#.#th|
|00000250| 69 73 20 69 73 20 76 65 | 72 73 69 6f 6e 20 31 2e |is is ve|rsion 1.|
|00000260| 33 20 6f 66 20 6d 79 20 | 28 20 75 6e 69 78 20 62 |3 of my |( unix b|
|00000270| 61 73 65 64 20 29 20 70 | 61 63 6b 61 67 65 20 66 |ased ) p|ackage f|
|00000280| 6f 72 20 63 6f 6e 76 65 | 72 74 69 6e 67 0a 23 70 |or conve|rting.#p|
|00000290| 6f 73 74 73 63 72 69 70 | 74 20 2d 3e 20 6d 61 63 |ostscrip|t -> mac|
|000002a0| 20 66 6f 72 6d 61 74 20 | 65 70 73 20 77 69 74 68 | format |eps with|
|000002b0| 20 73 63 72 65 65 6e 20 | 70 72 65 76 69 65 77 2e | screen |preview.|
|000002c0| 0a 23 0a 23 6e 65 77 20 | 66 65 61 74 75 72 65 73 |.#.#new |features|
|000002d0| 20 69 6e 63 6c 75 64 65 | 3a 0a 23 31 20 6d 61 6a | include|:.#1 maj|
|000002e0| 6f 72 20 62 75 67 20 66 | 69 78 2e 20 28 20 77 6f |or bug f|ix. ( wo|
|000002f0| 75 6c 64 20 63 72 61 73 | 68 20 77 68 65 6e 20 63 |uld cras|h when c|
|00000300| 6f 6e 76 65 72 74 69 6e | 67 20 6c 61 72 67 65 20 |onvertin|g large |
|00000310| 69 6d 61 67 65 73 20 29 | 0a 23 63 6f 6c 6f 72 20 |images )|.#color |
|00000320| 73 75 70 70 6f 72 74 20 | 28 20 6f 66 66 20 62 79 |support |( off by|
|00000330| 20 64 65 66 61 75 6c 74 | 2c 20 74 6f 20 72 65 64 | default|, to red|
|00000340| 75 63 65 20 66 69 6c 65 | 20 73 69 7a 65 20 29 0a |uce file| size ).|
|00000350| 23 72 6f 62 75 73 74 20 | 72 65 63 6f 67 6e 69 74 |#robust |recognit|
|00000360| 69 6f 6e 20 6f 66 20 61 | 6c 6c 20 73 6f 72 74 73 |ion of a|ll sorts|
|00000370| 20 6f 66 20 77 69 65 72 | 64 20 62 6f 75 6e 64 69 | of wier|d boundi|
|00000380| 6e 67 20 62 6f 78 0a 23 | 20 6c 69 6e 65 20 66 6f |ng box.#| line fo|
|00000390| 72 6d 61 74 73 20 28 20 | 61 74 65 6e 64 2c 20 64 |rmats ( |atend, d|
|000003a0| 65 63 69 6d 61 6c 20 6e | 75 6d 62 65 72 73 2c 20 |ecimal n|umbers, |
|000003b0| 65 74 63 20 29 0a 23 6d | 6f 72 65 20 69 6e 66 6f |etc ).#m|ore info|
|000003c0| 72 6d 61 74 69 76 65 20 | 28 20 69 6d 68 6f 20 29 |rmative |( imho )|
|000003d0| 20 65 72 72 6f 72 20 72 | 65 70 6f 72 74 69 6e 67 | error r|eporting|
|000003e0| 2e 0a 23 70 62 6d 74 6f | 65 70 73 69 2e 63 20 69 |..#pbmto|epsi.c i|
|000003f0| 73 20 6e 6f 77 20 69 6e | 63 6c 75 64 65 64 20 69 |s now in|cluded i|
|00000400| 6e 20 74 68 69 73 20 64 | 69 73 74 72 69 62 75 74 |n this d|istribut|
|00000410| 69 6f 6e 2e 0a 23 20 28 | 20 73 74 69 6c 6c 20 6e |ion..# (| still n|
|00000420| 65 65 64 73 20 70 62 6d | 70 6c 75 73 20 74 6f 20 |eeds pbm|plus to |
|00000430| 63 6f 6d 70 69 6c 65 20 | 74 68 6f 75 67 68 20 29 |compile |though )|
|00000440| 0a 23 75 6e 69 78 20 22 | 6d 61 6e 22 20 70 61 67 |.#unix "|man" pag|
|00000450| 65 0a 23 0a 23 72 65 71 | 75 69 72 65 73 20 67 68 |e.#.#req|uires gh|
|00000460| 6f 73 74 73 63 72 69 70 | 74 2c 20 61 6e 64 20 74 |ostscrip|t, and t|
|00000470| 68 65 20 70 62 6d 70 6c | 75 73 20 70 61 63 6b 61 |he pbmpl|us packa|
|00000480| 67 65 2e 0a 23 0a 23 67 | 65 6f 72 67 65 20 6a 65 |ge..#.#g|eorge je|
|00000490| 66 66 65 72 73 6f 6e 0a | 23 67 65 6f 72 67 65 40 |fferson.|#george@|
|000004a0| 6d 65 63 68 2e 73 65 61 | 73 2e 75 70 65 6e 6e 2e |mech.sea|s.upenn.|
|000004b0| 65 64 75 0a 23 0a 23 66 | 6f 72 20 74 68 65 20 61 |edu.#.#f|or the a|
|000004c0| 72 63 68 69 76 69 73 74 | 73 2c 20 72 65 70 6c 61 |rchivist|s, repla|
|000004d0| 63 65 73 20 20 6d 61 63 | 2f 75 74 69 6c 2f 75 6e |ces mac|/util/un|
|000004e0| 69 78 2f 70 73 32 65 70 | 73 31 2e 31 2e 73 68 61 |ix/ps2ep|s1.1.sha|
|000004f0| 72 20 40 75 6d 69 63 68 | 0a 23 20 20 20 20 20 20 |r @umich|.# |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 20 20 20 20 20 20 20 20 | 69 6e 66 6f 2d 6d 61 63 | |info-mac|
|00000520| 2f 75 6e 69 78 2f 70 73 | 32 65 70 73 2d 31 31 2e |/unix/ps|2eps-11.|
|00000530| 73 68 61 72 20 40 73 75 | 6d 65 78 0a 23 0a 23 42 |shar @su|mex.#.#B|
|00000540| 54 57 2c 20 74 68 65 20 | 6e 61 6d 65 20 70 73 32 |TW, the |name ps2|
|00000550| 65 70 73 20 69 73 20 61 | 6c 72 65 61 64 79 20 74 |eps is a|lready t|
|00000560| 61 6b 65 6e 20 28 20 62 | 79 20 73 65 76 65 72 61 |aken ( b|y severa|
|00000570| 6c 20 70 72 6f 67 72 61 | 6d 73 2c 20 73 69 67 68 |l progra|ms, sigh|
|00000580| 20 29 0a 23 69 66 20 70 | 73 32 65 70 73 2d 6d 61 | ).#if p|s2eps-ma|
|00000590| 63 31 2e 33 2e 73 68 61 | 72 20 69 73 20 74 6f 6f |c1.3.sha|r is too|
|000005a0| 20 6c 6f 6e 67 2c 20 67 | 6f 20 77 69 74 68 0a 23 | long, g|o with.#|
|000005b0| 70 73 32 65 70 73 6d 61 | 63 31 33 2e 73 68 61 72 |ps2epsma|c13.shar|
|000005c0| 20 6f 72 20 70 73 32 65 | 70 73 6d 61 63 31 33 2e | or ps2e|psmac13.|
|000005d0| 73 68 20 6f 72 20 70 73 | 32 6d 61 63 31 33 2e 73 |sh or ps|2mac13.s|
|000005e0| 68 0a 23 0a 23 74 68 61 | 6e 6b 73 2e 0a 23 0a 23 |h.#.#tha|nks..#.#|
|000005f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 70 73 32 65 70 73 2d |--------|-ps2eps-|
|00000600| 6d 61 63 31 2e 33 2e 73 | 68 61 72 2d 2d 2d 2d 63 |mac1.3.s|har----c|
|00000610| 75 74 20 68 65 72 65 2d | 2d 2d 0a 23 21 20 2f 62 |ut here-|--.#! /b|
|00000620| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|00000630| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2c |a shell |archive,|
|00000640| 20 6d 65 61 6e 69 6e 67 | 3a 0a 23 20 31 2e 20 52 | meaning|:.# 1. R|
|00000650| 65 6d 6f 76 65 20 65 76 | 65 72 79 74 68 69 6e 67 |emove ev|erything|
|00000660| 20 61 62 6f 76 65 20 74 | 68 65 20 23 21 20 2f 62 | above t|he #! /b|
|00000670| 69 6e 2f 73 68 20 6c 69 | 6e 65 2e 0a 23 20 32 2e |in/sh li|ne..# 2.|
|00000680| 20 53 61 76 65 20 74 68 | 65 20 72 65 73 75 6c 74 | Save th|e result|
|00000690| 69 6e 67 20 74 65 78 74 | 20 69 6e 20 61 20 66 69 |ing text| in a fi|
|000006a0| 6c 65 2e 0a 23 20 33 2e | 20 45 78 65 63 75 74 65 |le..# 3.| Execute|
|000006b0| 20 74 68 65 20 66 69 6c | 65 20 77 69 74 68 20 2f | the fil|e with /|
|000006c0| 62 69 6e 2f 73 68 20 28 | 6e 6f 74 20 63 73 68 29 |bin/sh (|not csh)|
|000006d0| 20 74 6f 20 63 72 65 61 | 74 65 20 74 68 65 20 66 | to crea|te the f|
|000006e0| 69 6c 65 73 3a 0a 23 09 | 52 45 41 44 4d 45 0a 23 |iles:.#.|README.#|
|000006f0| 09 70 73 32 65 70 73 2d | 6d 61 63 0a 23 09 70 73 |.ps2eps-|mac.#.ps|
|00000700| 2d 70 69 63 74 32 6d 61 | 63 62 2e 63 0a 23 09 6d |-pict2ma|cb.c.#.m|
|00000710| 61 6b 65 66 69 6c 65 0a | 23 09 74 65 73 74 2e 70 |akefile.|#.test.p|
|00000720| 73 0a 23 09 65 72 5f 65 | 63 68 6f 2e 63 0a 23 09 |s.#.er_e|cho.c.#.|
|00000730| 73 74 5f 65 63 68 6f 0a | 23 09 70 73 32 65 70 73 |st_echo.|#.ps2eps|
|00000740| 2d 6d 61 63 2e 6d 0a 23 | 09 70 62 6d 74 6f 65 70 |-mac.m.#|.pbmtoep|
|00000750| 73 69 2e 63 0a 23 09 74 | 65 73 74 2e 65 70 73 2e |si.c.#.t|est.eps.|
|00000760| 62 69 6e 2e 75 75 0a 23 | 20 54 68 69 73 20 61 72 |bin.uu.#| This ar|
|00000770| 63 68 69 76 65 20 63 72 | 65 61 74 65 64 3a 20 54 |chive cr|eated: T|
|00000780| 68 75 20 4a 75 6e 20 31 | 31 20 31 30 3a 34 30 3a |hu Jun 1|1 10:40:|
|00000790| 35 37 20 31 39 39 32 0a | 65 78 70 6f 72 74 20 50 |57 1992.|export P|
|000007a0| 41 54 48 3b 20 50 41 54 | 48 3d 2f 62 69 6e 3a 24 |ATH; PAT|H=/bin:$|
|000007b0| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|000007c0| 27 52 45 41 44 4d 45 27 | 0a 74 68 65 6e 0a 09 65 |'README'|.then..e|
|000007d0| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|000007e0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|000007f0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 52 45 |isting f|ile "'RE|
|00000800| 41 44 4d 45 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |ADME'".e|lse.cat |
|00000810| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00000820| 52 45 41 44 4d 45 27 0a | 0a 70 73 32 65 70 73 2d |README'.|.ps2eps-|
|00000830| 6d 61 63 20 74 61 6b 65 | 73 20 61 6e 20 61 72 62 |mac take|s an arb|
|00000840| 69 74 72 61 72 79 20 70 | 6f 73 74 73 63 72 69 70 |itrary p|ostscrip|
|00000850| 74 20 66 69 6c 65 0a 28 | 20 65 76 65 6e 20 73 6f |t file.(| even so|
|00000860| 72 74 20 6f 66 20 77 6f | 72 6b 73 20 77 69 74 68 |rt of wo|rks with|
|00000870| 20 6d 61 63 69 6e 74 6f | 73 68 20 6c 61 73 65 72 | macinto|sh laser|
|00000880| 77 72 69 74 65 72 20 64 | 72 69 76 65 72 20 64 75 |writer d|river du|
|00000890| 6d 70 73 2e 2e 20 29 0a | 61 6e 64 20 63 72 65 61 |mps.. ).|and crea|
|000008a0| 74 65 73 20 61 6e 20 27 | 65 6e 63 61 70 73 75 6c |tes an '|encapsul|
|000008b0| 61 74 65 64 20 70 6f 73 | 74 73 63 72 69 70 74 20 |ated pos|tscript |
|000008c0| 77 69 74 68 20 65 6d 62 | 65 64 64 65 64 20 70 69 |with emb|edded pi|
|000008d0| 63 74 27 20 66 69 6c 65 | 20 69 6e 0a 6d 61 63 62 |ct' file| in.macb|
|000008e0| 69 6e 61 72 79 20 66 6f | 72 6d 61 74 2e 0a 54 68 |inary fo|rmat..Th|
|000008f0| 69 73 20 66 69 6c 65 20 | 63 61 6e 20 62 65 20 69 |is file |can be i|
|00000900| 6e 63 6c 75 64 65 64 20 | 69 6e 20 63 65 72 74 61 |ncluded |in certa|
|00000910| 69 6e 20 70 72 6f 67 72 | 61 6d 73 20 28 20 65 67 |in progr|ams ( eg|
|00000920| 20 57 6f 72 64 35 20 29 | 20 74 68 61 74 20 73 75 | Word5 )| that su|
|00000930| 70 70 6f 72 74 0a 74 68 | 65 20 66 6f 72 6d 61 74 |pport.th|e format|
|00000940| 2c 20 61 6e 64 20 79 6f | 75 20 77 69 6c 6c 20 67 |, and yo|u will g|
|00000950| 65 74 20 61 20 37 32 64 | 70 69 20 73 63 72 65 65 |et a 72d|pi scree|
|00000960| 6e 20 70 72 65 76 69 65 | 77 20 69 6d 61 67 65 2c |n previe|w image,|
|00000970| 20 62 75 74 20 70 6f 73 | 74 73 63 72 69 70 74 0a | but pos|tscript.|
|00000980| 71 75 61 6c 69 74 79 20 | 6f 75 74 70 75 74 20 6f |quality |output o|
|00000990| 6e 20 79 6f 75 72 20 70 | 6f 73 74 73 63 72 69 70 |n your p|ostscrip|
|000009a0| 74 20 70 72 69 6e 74 65 | 72 2e 0a 4e 6f 74 65 20 |t printe|r..Note |
|000009b0| 74 68 61 74 20 74 68 65 | 72 65 20 69 73 20 6e 6f |that the|re is no|
|000009c0| 20 77 61 79 20 74 6f 20 | 72 65 70 72 65 73 65 6e | way to |represen|
|000009d0| 74 20 6d 75 6c 74 69 20 | 70 61 67 65 20 64 6f 63 |t multi |page doc|
|000009e0| 75 6d 65 6e 74 73 20 75 | 73 69 6e 67 20 0a 74 68 |uments u|sing .th|
|000009f0| 65 20 65 6d 62 65 64 65 | 64 20 70 69 63 74 20 66 |e embede|d pict f|
|00000a00| 6f 72 6d 61 74 2e 0a 0a | 73 6f 20 66 61 72 20 69 |ormat...|so far i|
|00000a10| 74 20 68 61 73 20 62 65 | 65 6e 20 75 73 65 64 20 |t has be|en used |
|00000a20| 73 75 63 65 73 73 66 75 | 6c 6c 79 20 77 69 74 68 |sucessfu|lly with|
|00000a30| 0a 4d 53 57 6f 72 64 20 | 35 20 61 6e 64 20 69 74 |.MSWord |5 and it|
|00000a40| 73 20 27 64 72 61 77 27 | 20 6d 6f 64 75 6c 65 20 |s 'draw'| module |
|00000a50| 28 20 64 6f 65 73 20 5f | 6e 6f 74 5f 20 77 6f 72 |( does _|not_ wor|
|00000a60| 6b 20 77 69 74 68 20 4d | 53 57 34 20 6f 72 20 6c |k with M|SW4 or l|
|00000a70| 6f 77 65 72 20 29 0a 4f | 7a 54 65 58 0a 4b 61 6c |ower ).O|zTeX.Kal|
|00000a80| 69 64 61 67 72 61 70 68 | 0a 61 20 73 68 6f 72 74 |idagraph|.a short|
|00000a90| 20 6c 69 73 74 2c 20 73 | 69 67 68 20 2d 2d 20 61 | list, s|igh -- a|
|00000aa0| 6e 79 74 68 69 6e 67 20 | 65 6c 73 65 3f 0a 0a 74 |nything |else?..t|
|00000ab0| 6f 20 6d 61 6b 65 20 75 | 73 65 20 6f 66 20 74 68 |o make u|se of th|
|00000ac0| 69 73 20 70 72 6f 67 72 | 61 6d 20 79 6f 75 20 6e |is progr|am you n|
|00000ad0| 65 65 64 20 67 68 6f 73 | 74 73 63 72 69 70 74 20 |eed ghos|tscript |
|00000ae0| 61 6e 64 20 70 62 6d 70 | 6c 75 73 0a 0a 2e 2e 61 |and pbmp|lus....a|
|00000af0| 6e 64 20 79 6f 75 20 6e | 65 65 64 20 74 6f 20 6b |nd you n|eed to k|
|00000b00| 6e 6f 77 20 68 6f 77 20 | 74 6f 20 74 72 61 6e 73 |now how |to trans|
|00000b10| 66 65 72 20 61 20 6d 61 | 63 62 69 6e 61 72 79 20 |fer a ma|cbinary |
|00000b20| 66 69 6c 65 20 74 6f 20 | 79 6f 75 72 20 6d 61 63 |file to |your mac|
|00000b30| 69 6e 74 6f 73 68 0a 20 | 69 6e 20 61 20 6e 75 74 |intosh. |in a nut|
|00000b40| 73 68 65 6c 6c 20 2d 2d | 20 73 65 74 20 79 6f 75 |shell --| set you|
|00000b50| 72 20 75 6e 69 78 20 74 | 72 61 6e 73 66 65 72 20 |r unix t|ransfer |
|00000b60| 70 72 6f 67 72 61 6d 20 | 74 6f 20 27 62 69 6e 61 |program |to 'bina|
|00000b70| 72 79 27 20 61 6e 64 20 | 79 6f 75 72 0a 20 6d 61 |ry' and |your. ma|
|00000b80| 63 69 6e 74 6f 73 68 20 | 74 72 61 6e 73 66 65 72 |cintosh |transfer|
|00000b90| 20 70 72 6f 67 72 61 6d | 20 74 6f 20 27 6d 61 63 | program| to 'mac|
|00000ba0| 62 69 6e 61 72 79 27 0a | 0a 71 75 69 63 6b 20 61 |binary'.|.quick a|
|00000bb0| 6e 64 20 64 69 72 74 79 | 20 75 73 61 67 65 20 69 |nd dirty| usage i|
|00000bc0| 73 20 73 69 6d 70 6c 79 | 0a 70 73 32 65 70 73 2d |s simply|.ps2eps-|
|00000bd0| 6d 61 63 20 66 69 6c 65 | 2e 70 73 0a 2d 77 68 69 |mac file|.ps.-whi|
|00000be0| 63 68 20 70 72 6f 64 75 | 63 65 73 20 66 69 6c 65 |ch produ|ces file|
|00000bf0| 2e 65 70 73 2e 62 69 6e | 0a 2d 77 68 69 63 68 20 |.eps.bin|.-which |
|00000c00| 77 68 65 6e 20 74 72 61 | 6e 73 66 65 72 72 65 64 |when tra|nsferred|
|00000c10| 20 74 6f 20 79 6f 75 72 | 20 6d 61 63 20 77 69 6c | to your| mac wil|
|00000c20| 6c 20 62 65 20 6e 61 6d | 65 64 20 22 66 69 6c 65 |l be nam|ed "file|
|00000c30| 2e 65 70 73 22 0a 62 79 | 20 64 65 66 61 75 6c 74 |.eps".by| default|
|00000c40| 20 74 68 69 73 20 77 69 | 6c 6c 20 62 65 20 61 20 | this wi|ll be a |
|00000c50| 57 6f 72 64 35 20 66 69 | 6c 65 2c 20 64 6f 75 62 |Word5 fi|le, doub|
|00000c60| 6c 65 20 63 6c 69 63 6b | 69 6e 67 20 6f 6e 20 74 |le click|ing on t|
|00000c70| 68 69 73 20 66 69 6c 65 | 20 77 69 6c 6c 20 0a 6f |his file| will .o|
|00000c80| 70 65 6e 20 69 74 20 69 | 6e 20 77 6f 72 64 35 2c |pen it i|n word5,|
|00000c90| 20 77 69 74 68 20 61 20 | 6e 69 63 65 20 73 63 72 | with a |nice scr|
|00000ca0| 65 65 6e 20 69 6d 61 67 | 65 2e 0a 0a 59 6f 75 20 |een imag|e...You |
|00000cb0| 63 61 6e 20 65 61 73 69 | 6c 79 20 63 68 61 6e 67 |can easi|ly chang|
|00000cc0| 65 20 74 68 65 20 74 79 | 70 65 2f 63 72 65 61 74 |e the ty|pe/creat|
|00000cd0| 6f 72 20 62 79 20 73 65 | 74 74 69 6e 67 20 73 68 |or by se|tting sh|
|00000ce0| 65 6c 6c 20 76 61 72 69 | 61 62 6c 65 73 0a 73 6f |ell vari|ables.so|
|00000cf0| 20 74 68 61 74 20 74 68 | 65 20 65 70 73 20 66 69 | that th|e eps fi|
|00000d00| 6c 65 20 77 69 6c 6c 20 | 6f 70 65 6e 20 69 6e 20 |le will |open in |
|00000d10| 79 6f 75 72 20 66 61 76 | 6f 72 69 74 65 20 65 70 |your fav|orite ep|
|00000d20| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 70 72 6f |s compat|ible pro|
|00000d30| 67 72 61 6d 2e 0a 0a 6e | 6f 74 65 73 2d 2d 2d 2d |gram...n|otes----|
|00000d40| 2d 2d 2d 2d 2d 2d 2d 0a | 75 73 61 67 65 20 0a 20 |-------.|usage . |
|00000d50| 20 20 70 73 32 65 70 73 | 2d 6d 61 63 20 5b 20 6f | ps2eps|-mac [ o|
|00000d60| 70 74 69 6f 6e 73 20 5d | 20 66 69 6c 65 2e 70 73 |ptions ]| file.ps|
|00000d70| 0a 6f 70 74 69 6f 6e 73 | 20 63 61 6e 20 62 65 20 |.options| can be |
|00000d80| 61 6e 79 20 6f 66 2e 2e | 0a 20 2d 71 20 2d 3e 20 |any of..|. -q -> |
|00000d90| 71 75 69 65 74 20 6d 6f | 64 65 2c 20 6f 76 65 72 |quiet mo|de, over|
|00000da0| 77 72 69 74 65 73 20 73 | 63 72 61 74 63 68 20 66 |writes s|cratch f|
|00000db0| 69 6c 65 73 20 77 69 74 | 68 6f 75 74 20 61 73 6b |iles wit|hout ask|
|00000dc0| 69 6e 67 0a 20 2d 62 61 | 74 63 68 20 2d 3e 20 73 |ing. -ba|tch -> s|
|00000dd0| 61 6d 65 20 61 73 20 2d | 71 0a 20 2d 64 20 2d 3e |ame as -|q. -d ->|
|00000de0| 20 77 68 65 72 65 20 74 | 6f 20 70 75 74 20 74 68 | where t|o put th|
|00000df0| 65 20 6f 75 74 70 75 74 | 20 66 69 6c 65 2c 20 63 |e output| file, c|
|00000e00| 61 6e 20 62 65 20 22 73 | 74 64 6f 75 74 22 20 74 |an be "s|tdout" t|
|00000e10| 6f 20 70 69 70 65 20 6f | 75 74 70 75 74 0a 20 20 |o pipe o|utput. |
|00000e20| 20 20 20 20 20 74 6f 20 | 73 74 64 6f 75 74 20 28 | to |stdout (|
|00000e30| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 73 | automat|ically s|
|00000e40| 65 74 73 20 22 2d 71 22 | 20 61 6e 64 20 73 65 6e |ets "-q"| and sen|
|00000e50| 64 73 20 65 72 72 6f 72 | 73 20 74 6f 20 61 20 6c |ds error|s to a l|
|00000e60| 6f 67 20 66 69 6c 65 20 | 29 0a 20 2d 70 69 70 65 |og file |). -pipe|
|00000e70| 2c 20 65 71 69 76 61 6c | 65 6e 74 20 74 6f 20 22 |, eqival|ent to "|
|00000e80| 2d 64 20 73 74 64 6f 75 | 74 22 0a 20 2d 6c 6f 67 |-d stdou|t". -log|
|00000e90| 20 6c 6f 67 66 69 6c 65 | 20 2d 3e 20 73 65 6e 64 | logfile| -> send|
|00000ea0| 20 6f 75 74 70 75 74 20 | 6d 65 73 73 61 67 65 73 | output |messages|
|00000eb0| 20 74 6f 20 6c 6f 67 66 | 69 6c 65 0a 20 2d 64 65 | to logf|ile. -de|
|00000ec0| 62 75 67 20 6e 20 2d 3e | 20 63 68 61 6e 67 65 20 |bug n ->| change |
|00000ed0| 64 65 62 75 67 20 6c 65 | 76 65 6c 20 74 6f 20 6e |debug le|vel to n|
|00000ee0| 0a 20 2d 77 69 64 65 6e | 20 6e 20 6f 72 20 2d 77 |. -widen| n or -w|
|00000ef0| 69 64 65 6e 20 75 6e 73 | 65 74 20 2d 3e 20 6f 76 |iden uns|et -> ov|
|00000f00| 65 72 72 69 64 65 20 64 | 65 66 61 75 6c 74 20 77 |erride d|efault w|
|00000f10| 69 64 65 6e 62 6f 78 20 | 76 61 6c 75 65 0a 0a 65 |idenbox |value..e|
|00000f20| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 76 61 72 69 61 |nvironme|nt varia|
|00000f30| 62 6c 65 73 0a 73 65 74 | 65 6e 76 20 45 50 53 54 |bles.set|env EPST|
|00000f40| 59 50 45 20 45 50 53 46 | 0a 73 65 74 65 6e 76 20 |YPE EPSF|.setenv |
|00000f50| 45 50 53 43 52 45 41 54 | 4f 52 20 4d 53 57 44 0a |EPSCREAT|OR MSWD.|
|00000f60| 74 6f 20 73 65 74 20 74 | 68 65 20 74 79 70 65 20 |to set t|he type |
|00000f70| 61 6e 64 20 63 72 65 61 | 74 6f 72 20 6f 66 20 74 |and crea|tor of t|
|00000f80| 68 65 20 6d 61 63 69 6e | 74 6f 73 68 20 66 69 6c |he macin|tosh fil|
|00000f90| 65 0a 74 68 65 20 64 65 | 66 61 75 6c 74 73 20 61 |e.the de|faults a|
|00000fa0| 72 65 20 45 50 53 46 2c | 4d 53 57 44 20 77 68 69 |re EPSF,|MSWD whi|
|00000fb0| 63 68 20 6c 65 74 20 6d | 65 20 64 6f 75 62 6c 65 |ch let m|e double|
|00000fc0| 20 63 6c 69 63 6b 0a 74 | 6f 20 6f 70 65 6e 20 74 | click.t|o open t|
|00000fd0| 68 65 20 66 69 6c 65 20 | 69 6e 20 4d 53 57 6f 72 |he file |in MSWor|
|00000fe0| 64 20 35 2c 20 74 68 65 | 20 64 65 66 61 75 6c 74 |d 5, the| default|
|00000ff0| 73 20 61 72 65 20 64 65 | 66 69 6e 65 64 20 69 6e |s are de|fined in|
|00001000| 20 70 73 2d 70 69 63 74 | 32 6d 61 63 62 69 6e 2e | ps-pict|2macbin.|
|00001010| 63 0a 0a 62 65 20 73 75 | 72 65 20 74 68 61 74 20 |c..be su|re that |
|00001020| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 61 72 |the foll|owing ar|
|00001030| 65 20 6f 6e 20 79 6f 75 | 72 20 70 61 74 68 2c 20 |e on you|r path, |
|00001040| 6f 72 20 61 72 65 20 69 | 6e 20 74 68 65 0a 20 24 |or are i|n the. $|
|00001050| 70 73 32 65 70 73 64 69 | 72 20 64 69 72 65 63 74 |ps2epsdi|r direct|
|00001060| 6f 72 79 20 6c 69 73 74 | 0a 0a 70 73 2d 70 69 63 |ory list|..ps-pic|
|00001070| 74 32 6d 61 63 62 69 6e | 0a 65 72 5f 65 63 68 6f |t2macbin|.er_echo|
|00001080| 20 20 3c 77 65 6c 6c 2c | 20 79 6f 75 20 63 6f 75 | <well,| you cou|
|00001090| 6c 64 20 6c 69 76 65 20 | 77 69 74 68 6f 75 74 20 |ld live |without |
|000010a0| 74 68 69 73 2e 2e 3e 0a | 20 28 20 69 6e 20 74 68 |this..>.| ( in th|
|000010b0| 65 20 70 73 32 65 70 73 | 2d 6d 61 63 20 73 68 65 |e ps2eps|-mac she|
|000010c0| 6c 6c 20 61 72 63 68 69 | 76 65 20 29 0a 0a 70 6e |ll archi|ve )..pn|
|000010d0| 6d 63 72 6f 70 20 5f 6f | 72 5f 20 70 6e 6d 63 75 |mcrop _o|r_ pnmcu|
|000010e0| 74 20 20 3c 20 70 6e 6d | 63 75 74 20 77 6f 72 6b |t < pnm|cut work|
|000010f0| 73 20 62 65 74 74 65 72 | 20 69 20 74 68 69 6e 6b |s better| i think|
|00001100| 2c 20 67 65 74 20 62 6f | 74 68 20 69 66 20 79 6f |, get bo|th if yo|
|00001110| 75 20 63 61 6e 20 3e 0a | 70 62 6d 74 6f 65 70 73 |u can >.|pbmtoeps|
|00001120| 69 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |i | |
|00001130| 20 20 20 20 20 20 20 0a | 70 70 6d 74 6f 70 69 63 | .|ppmtopic|
|00001140| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00001150| 20 20 20 20 20 20 20 0a | 20 28 20 65 78 70 6f 72 | .| ( expor|
|00001160| 74 2e 6c 63 73 2e 6d 69 | 74 2e 65 64 75 20 3b 20 |t.lcs.mi|t.edu ; |
|00001170| 63 6f 6e 74 72 69 62 2f | 70 62 6d 2a 20 29 0a 0a |contrib/|pbm* )..|
|00001180| 67 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |gs | |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|000011a0| 20 28 20 70 72 65 70 2e | 61 69 2e 6d 69 74 2e 65 | ( prep.|ai.mit.e|
|000011b0| 64 75 20 3b 20 70 75 62 | 2f 67 6e 75 2f 67 68 6f |du ; pub|/gnu/gho|
|000011c0| 73 74 2a 20 29 20 0a 0a | 6d 61 63 70 73 0a 20 28 |st* ) ..|macps. (|
|000011d0| 20 73 75 6d 65 78 2d 61 | 69 6d 2e 73 74 61 6e 66 | sumex-a|im.stanf|
|000011e0| 6f 72 64 2e 65 64 75 20 | 3b 20 69 6e 66 6f 2d 6d |ord.edu |; info-m|
|000011f0| 61 63 2f 75 6e 69 78 20 | 29 0a 20 6d 61 63 70 73 |ac/unix |). macps|
|00001200| 20 69 73 20 6e 65 65 64 | 65 64 20 69 66 20 74 68 | is need|ed if th|
|00001210| 65 20 6f 72 69 67 69 6e | 61 6c 20 70 73 20 66 69 |e origin|al ps fi|
|00001220| 6c 65 20 69 73 20 61 20 | 6d 61 63 69 6e 74 6f 73 |le is a |macintos|
|00001230| 68 0a 20 6c 61 73 65 72 | 77 72 69 74 65 72 20 64 |h. laser|writer d|
|00001240| 72 69 76 65 72 20 64 75 | 6d 70 0a 0a 61 63 6b 6e |river du|mp..ackn|
|00001250| 6f 77 6c 65 64 67 65 6d | 65 6e 74 73 20 20 2d 2d |owledgem|ents --|
|00001260| 20 69 6e 20 61 64 64 69 | 74 69 6f 6e 20 74 6f 20 | in addi|tion to |
|00001270| 74 68 65 20 61 62 6f 76 | 65 20 70 72 6f 67 72 61 |the abov|e progra|
|00001280| 6d 73 2c 20 49 20 6c 65 | 61 72 6e 65 64 20 61 20 |ms, I le|arned a |
|00001290| 6c 6f 74 0a 28 20 61 6e | 64 20 6d 61 79 62 65 20 |lot.( an|d maybe |
|000012a0| 62 6f 72 72 6f 77 65 64 | 20 73 6f 6d 65 20 63 6f |borrowed| some co|
|000012b0| 64 65 2e 2e 20 29 20 66 | 72 6f 6d 20 0a 0a 6d 63 |de.. ) f|rom ..mc|
|000012c0| 76 65 72 74 0a 6d 61 63 | 62 69 6e 0a 70 73 32 65 |vert.mac|bin.ps2e|
|000012d0| 70 73 66 20 20 44 6f 75 | 67 20 43 72 61 62 69 6c |psf Dou|g Crabil|
|000012e0| 6c 20 6d 61 79 20 6e 6f | 74 69 63 65 20 74 68 61 |l may no|tice tha|
|000012f0| 74 20 74 68 69 73 20 73 | 68 65 6c 6c 20 73 63 72 |t this s|hell scr|
|00001300| 69 70 74 20 62 65 61 72 | 73 20 73 6f 6d 65 0a 20 |ipt bear|s some. |
|00001310| 20 20 20 20 20 20 20 20 | 72 65 73 65 6d 62 6c 65 | |resemble|
|00001320| 6e 63 65 20 74 6f 20 68 | 69 73 20 73 63 72 69 70 |nce to h|is scrip|
|00001330| 74 20 28 20 77 68 69 63 | 68 20 63 72 65 61 74 65 |t ( whic|h create|
|00001340| 73 20 61 20 70 63 20 63 | 6f 6d 70 61 74 61 62 6c |s a pc c|ompatabl|
|00001350| 65 20 66 69 6c 65 20 29 | 0a 0a 74 68 65 20 6d 61 |e file )|..the ma|
|00001360| 6e 20 70 61 67 65 20 77 | 61 73 20 63 6f 6e 74 72 |n page w|as contr|
|00001370| 69 62 75 74 65 64 20 62 | 79 20 6a 63 40 6d 73 63 |ibuted b|y jc@msc|
|00001380| 2e 65 64 75 0a 0a 6b 6e | 6f 77 6e 20 62 75 67 73 |.edu..kn|own bugs|
|00001390| 0a 0a 74 72 61 6e 73 6c | 61 74 69 6e 67 20 6c 69 |..transl|ating li|
|000013a0| 6e 65 20 65 6e 64 69 6e | 67 73 20 77 69 74 68 20 |ne endin|gs with |
|000013b0| 74 72 20 69 73 20 62 6f | 75 6e 64 20 74 6f 20 6d |tr is bo|und to m|
|000013c0| 65 73 73 20 75 70 20 61 | 6e 79 20 62 69 6e 61 72 |ess up a|ny binar|
|000013d0| 79 20 73 74 75 66 66 0a | 20 69 6e 20 74 68 65 20 |y stuff.| in the |
|000013e0| 73 6f 75 72 63 65 20 70 | 6f 73 74 73 63 72 69 70 |source p|ostscrip|
|000013f0| 74 20 20 2d 2d 20 74 72 | 79 20 70 6c 61 79 69 6e |t -- tr|y playin|
|00001400| 67 20 77 69 74 68 20 74 | 68 65 20 74 72 61 6e 73 |g with t|he trans|
|00001410| 6c 61 74 65 20 6f 70 74 | 69 6f 6e 73 0a 20 69 66 |late opt|ions. if|
|00001420| 20 73 6f 6d 65 6f 6e 65 | 20 6b 6e 6f 77 73 20 61 | someone| knows a|
|00001430| 20 66 6f 6f 6c 70 72 6f | 6f 66 20 77 61 79 20 74 | foolpro|of way t|
|00001440| 6f 20 64 6f 20 6c 69 6e | 65 20 65 6e 64 69 6e 67 |o do lin|e ending|
|00001450| 20 74 72 61 6e 73 6c 61 | 74 69 6f 6e 2c 0a 20 70 | transla|tion,. p|
|00001460| 6c 65 61 73 65 20 67 69 | 76 65 20 6d 65 20 61 20 |lease gi|ve me a |
|00001470| 63 61 6c 6c 2e 2e 2e 0a | 0a 65 78 70 6c 69 6e 61 |call....|.explina|
|00001480| 74 69 6f 6e 20 6f 66 20 | 6f 70 74 69 6f 6e 73 20 |tion of |options |
|00001490| 74 68 61 74 20 63 61 6e | 20 62 65 20 73 65 74 20 |that can| be set |
|000014a0| 69 6e 20 74 68 65 20 70 | 73 32 65 70 73 2d 6d 61 |in the p|s2eps-ma|
|000014b0| 63 20 73 63 72 69 70 74 | 20 0a 7b 20 66 6f 72 20 |c script| .{ for |
|000014c0| 63 73 68 20 6e 6f 76 69 | 63 65 73 2e 2e 2e 0a 20 |csh novi|ces.... |
|000014d0| 20 61 20 73 68 65 6c 6c | 20 76 61 72 69 61 62 6c | a shell| variabl|
|000014e0| 65 20 63 61 6e 20 62 65 | 20 27 73 65 74 27 0a 20 |e can be| 'set'. |
|000014f0| 20 73 65 74 20 78 0a 20 | 20 6f 72 20 73 65 74 20 | set x. | or set |
|00001500| 74 6f 20 61 20 76 61 6c | 75 65 0a 20 20 73 65 74 |to a val|ue. set|
|00001510| 20 78 20 3d 20 31 0a 20 | 20 6f 72 20 73 65 74 20 | x = 1. | or set |
|00001520| 74 6f 20 61 20 6c 69 73 | 74 0a 20 20 73 65 74 20 |to a lis|t. set |
|00001530| 78 20 3d 20 28 20 31 20 | 41 20 34 2e 35 20 29 0a |x = ( 1 |A 4.5 ).|
|00001540| 20 20 74 68 65 20 6c 69 | 6e 65 2c 0a 20 20 23 73 | the li|ne,. #s|
|00001550| 65 74 20 78 0a 20 20 69 | 73 20 63 6f 6d 6d 65 6e |et x. i|s commen|
|00001560| 74 65 64 20 6f 75 74 2c | 20 74 68 75 73 20 28 20 |ted out,| thus ( |
|00001570| 75 6e 6c 65 73 73 20 70 | 72 65 76 69 6f 75 73 6c |unless p|reviousl|
|00001580| 79 20 73 65 74 20 29 20 | 78 20 69 73 20 27 75 6e |y set ) |x is 'un|
|00001590| 73 65 74 27 0a 0a 20 20 | 69 6e 20 74 68 69 73 20 |set'.. |in this |
|000015a0| 70 72 6f 67 72 61 6d 2c | 20 61 6c 6c 20 6f 66 20 |program,| all of |
|000015b0| 74 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 69 6e |the vari|ables in|
|000015c0| 20 74 68 65 20 6f 70 74 | 69 6f 6e 73 20 73 65 63 | the opt|ions sec|
|000015d0| 74 69 6f 6e 0a 20 20 6d | 61 79 20 62 65 20 27 73 |tion. m|ay be 's|
|000015e0| 65 74 27 20 6f 72 20 27 | 75 6e 73 65 74 27 2e 20 |et' or '|unset'. |
|000015f0| 20 53 6f 6d 65 20 6f 66 | 20 74 68 65 6d 20 2d 20 | Some of| them - |
|00001600| 77 68 65 72 65 20 69 6e | 64 69 63 61 74 65 64 20 |where in|dicated |
|00001610| 2d 0a 20 20 6d 75 73 74 | 20 62 65 20 73 65 74 20 |-. must| be set |
|00001620| 74 6f 20 76 61 6c 75 65 | 73 2c 20 69 66 20 74 68 |to value|s, if th|
|00001630| 65 79 20 61 72 65 20 73 | 65 74 2e 20 20 20 20 20 |ey are s|et. |
|00001640| 20 7d 0a 0a 23 73 65 74 | 20 70 73 32 65 70 73 64 | }..#set| ps2epsd|
|00001650| 69 72 20 3d 20 20 28 20 | 2f 75 73 72 2f 6e 65 77 |ir = ( |/usr/new|
|00001660| 2f 62 69 6e 20 29 0a 0a | 61 64 64 20 64 69 72 65 |/bin )..|add dire|
|00001670| 63 74 6f 72 69 65 73 20 | 74 6f 20 79 6f 75 72 20 |ctories |to your |
|00001680| 73 65 61 72 63 68 20 70 | 61 74 68 2e 0a 79 6f 75 |search p|ath..you|
|00001690| 20 6d 69 67 68 74 20 6e | 65 65 64 20 68 65 72 65 | might n|eed here|
|000016a0| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 73 20 | the dir|ectorys |
|000016b0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 0a 67 73 2c 20 |containi|ng .gs, |
|000016c0| 70 62 6d 20 73 74 75 66 | 66 2c 20 74 68 65 20 70 |pbm stuf|f, the p|
|000016d0| 73 2d 70 69 63 74 32 6d | 61 63 62 69 6e 20 65 78 |s-pict2m|acbin ex|
|000016e0| 65 63 75 74 61 62 6c 65 | 0a 0a 6c 69 6e 65 20 65 |ecutable|..line e|
|000016f0| 6e 64 69 6e 67 20 74 72 | 61 6e 73 6c 61 74 69 6f |nding tr|anslatio|
|00001700| 6e 20 6f 70 74 69 6f 6e | 73 20 2d 2d 20 61 20 63 |n option|s -- a c|
|00001710| 6f 6e 63 65 72 6e 20 6f | 6e 6c 79 20 69 66 20 79 |oncern o|nly if y|
|00001720| 6f 75 72 20 70 73 20 63 | 6f 6e 74 61 69 6e 73 0a |our ps c|ontains.|
|00001730| 76 65 72 79 20 6c 6f 6e | 67 20 6c 69 6e 65 73 20 |very lon|g lines |
|00001740| 6f 72 20 62 69 6e 61 72 | 79 20 64 61 74 61 20 28 |or binar|y data (|
|00001750| 20 69 6e 63 6c 75 64 65 | 64 20 66 6f 6e 74 73 20 | include|d fonts |
|00001760| 61 6e 64 20 73 75 63 68 | 20 29 0a 0a 23 73 65 74 |and such| )..#set|
|00001770| 20 6e 6f 74 72 61 6e 73 | 6c 61 74 65 0a 0a 6c 65 | notrans|late..le|
|00001780| 61 76 65 20 75 6e 69 78 | 20 6c 69 6e 65 20 65 6e |ave unix| line en|
|00001790| 64 69 6e 67 73 20 65 76 | 65 72 79 77 68 65 72 65 |dings ev|erywhere|
|000017a0| 0a 6e 6f 74 72 61 6e 73 | 6c 61 74 65 20 5f 64 6f |.notrans|late _do|
|000017b0| 65 73 5f 6e 6f 74 5f 77 | 6f 72 6b 5f 20 77 69 74 |es_not_w|ork_ wit|
|000017c0| 68 20 6d 73 77 6f 72 64 | 2e 20 2d 2d 20 64 6f 65 |h msword|. -- doe|
|000017d0| 73 20 69 74 20 77 6f 72 | 6b 20 77 69 74 68 20 61 |s it wor|k with a|
|000017e0| 6e 79 74 68 69 6e 67 3f | 3f 3f 0a 0a 23 73 65 74 |nything?|??..#set|
|000017f0| 20 6e 6f 74 72 61 6e 73 | 66 69 6c 65 0a 0a 73 65 | notrans|file..se|
|00001800| 74 20 6e 6f 74 72 61 6e | 73 6c 61 74 65 66 69 6c |t notran|slatefil|
|00001810| 65 20 74 6f 20 70 75 74 | 20 6d 61 63 20 6c 69 6e |e to put| mac lin|
|00001820| 65 20 65 6e 64 69 6e 67 | 73 20 6f 6e 20 6f 6e 6c |e ending|s on onl|
|00001830| 79 20 74 68 65 20 66 69 | 72 73 74 0a 74 77 6f 20 |y the fi|rst.two |
|00001840| 6c 69 6e 65 73 20 6f 66 | 20 74 68 65 20 66 69 6c |lines of| the fil|
|00001850| 65 20 2d 2d 20 74 68 69 | 73 20 69 73 20 61 20 6c |e -- thi|s is a l|
|00001860| 69 74 74 6c 65 20 77 69 | 65 72 64 20 62 75 74 20 |ittle wi|erd but |
|00001870| 69 74 20 73 65 65 6d 73 | 0a 74 6f 20 77 6f 72 6b |it seems|.to work|
|00001880| 2e 20 20 49 20 61 6d 20 | 72 65 61 6c 6c 79 20 63 |. I am |really c|
|00001890| 75 72 69 6f 75 73 20 69 | 66 20 74 68 69 73 20 69 |urious i|f this i|
|000018a0| 73 20 6f 6b 20 77 69 74 | 68 20 70 73 20 69 6e 74 |s ok wit|h ps int|
|000018b0| 65 72 70 72 65 74 65 72 | 73 0a 6c 69 6b 65 20 66 |erpreter|s.like f|
|000018c0| 72 65 65 64 6f 6d 20 6f | 66 20 74 68 65 20 70 72 |reedom o|f the pr|
|000018d0| 65 73 73 2e 20 20 54 68 | 69 73 20 27 61 69 6e 74 |ess. Th|is 'aint|
|000018e0| 20 67 6f 6e 6e 61 20 77 | 6f 72 6b 20 77 68 65 6e | gonna w|ork when|
|000018f0| 20 74 68 65 20 0a 65 78 | 69 73 74 69 6e 67 20 62 | the .ex|isting b|
|00001900| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 69 73 20 75 |ounding |box is u|
|00001910| 73 65 64 20 28 20 73 65 | 65 20 62 62 69 6e 66 6f |sed ( se|e bbinfo|
|00001920| 20 62 65 6c 6f 77 20 29 | 0a 0a 23 73 65 74 20 68 | below )|..#set h|
|00001930| 61 76 65 6d 61 63 70 73 | 0a 0a 75 6e 63 6f 6d 6d |avemacps|..uncomm|
|00001940| 65 6e 74 20 6f 6e 6c 79 | 20 69 66 20 79 6f 75 20 |ent only| if you |
|00001950| 68 61 76 65 20 6d 61 63 | 70 73 20 61 6e 64 20 79 |have mac|ps and y|
|00001960| 6f 75 20 6d 69 67 68 74 | 20 62 65 20 70 72 6f 63 |ou might| be proc|
|00001970| 65 73 73 69 6e 67 0a 61 | 20 6d 61 63 20 6c 61 73 |essing.a| mac las|
|00001980| 65 72 77 72 69 74 65 72 | 20 64 72 69 76 65 72 20 |erwriter| driver |
|00001990| 67 65 6e 65 72 61 74 65 | 64 20 66 69 6c 65 20 28 |generate|d file (|
|000019a0| 20 62 65 77 61 72 65 2c | 20 79 6f 75 20 61 72 65 | beware,| you are|
|000019b0| 20 6f 6e 20 74 68 69 6e | 20 69 63 65 2e 2e 20 29 | on thin| ice.. )|
|000019c0| 0a 74 79 70 69 63 61 6c | 6c 79 20 79 6f 75 72 20 |.typical|ly your |
|000019d0| 27 65 70 73 27 20 66 69 | 6c 65 20 77 69 6c 6c 20 |'eps' fi|le will |
|000019e0| 6f 6e 6c 79 20 70 72 69 | 6e 74 20 66 72 6f 6d 20 |only pri|nt from |
|000019f0| 61 20 6d 61 63 20 72 75 | 6e 6e 69 6e 67 20 61 20 |a mac ru|nning a |
|00001a00| 63 65 72 74 61 69 6e 0a | 6c 61 73 65 72 77 72 69 |certain.|laserwri|
|00001a10| 74 65 72 20 64 72 69 76 | 65 72 2e 0a 0a 23 73 65 |ter driv|er...#se|
|00001a20| 74 20 6e 6f 73 68 6f 77 | 70 61 67 65 0a 75 6e 63 |t noshow|page.unc|
|00001a30| 6f 6d 6d 65 6e 74 20 74 | 6f 20 61 64 64 20 6c 69 |omment t|o add li|
|00001a40| 6e 65 20 74 6f 20 75 6e | 64 65 66 69 6e 65 20 73 |ne to un|define s|
|00001a50| 68 6f 77 70 61 67 65 20 | 69 6e 20 74 68 65 20 70 |howpage |in the p|
|00001a60| 6f 73 74 73 63 72 69 70 | 74 20 5b 2f 73 68 6f 77 |ostscrip|t [/show|
|00001a70| 70 61 67 65 20 7b 7d 20 | 64 65 66 5d 0a 6f 6e 6c |page {} |def].onl|
|00001a80| 79 20 6e 65 63 65 73 73 | 61 72 79 20 69 66 2e 2e |y necess|ary if..|
|00001a90| 0a 31 29 79 6f 75 72 20 | 70 73 20 63 6f 6e 74 61 |.1)your |ps conta|
|00001aa0| 69 6e 73 20 73 68 6f 77 | 70 61 67 65 0a 32 29 20 |ins show|page.2) |
|00001ab0| 79 6f 75 72 20 6d 61 63 | 20 61 70 70 6c 69 63 61 |your mac| applica|
|00001ac0| 74 69 6f 6e 20 64 6f 65 | 73 6e 27 74 20 6c 69 6b |tion doe|sn't lik|
|00001ad0| 65 20 69 74 20 28 20 65 | 67 20 57 6f 72 64 20 29 |e it ( e|g Word )|
|00001ae0| 0a 2e 2e 62 75 74 20 69 | 74 20 73 68 6f 75 6c 64 |...but i|t should|
|00001af0| 20 6e 65 76 65 72 20 68 | 75 72 74 2e 2e 20 28 20 | never h|urt.. ( |
|00001b00| 79 65 61 20 72 69 67 68 | 74 20 29 0a 0a 23 73 65 |yea righ|t )..#se|
|00001b10| 74 20 64 65 6e 73 69 74 | 79 20 3d 20 37 32 20 20 |t densit|y = 72 |
|00001b20| 20 20 20 20 20 20 0a 0a | 64 6f 20 6e 6f 74 20 75 | ..|do not u|
|00001b30| 73 65 20 74 68 69 73 20 | 2d 2d 20 63 68 61 6e 67 |se this |-- chang|
|00001b40| 69 6e 67 20 74 68 65 20 | 64 65 6e 73 69 74 79 20 |ing the |density |
|00001b50| 63 68 61 6e 67 65 73 20 | 74 68 65 20 5f 73 69 7a |changes |the _siz|
|00001b60| 65 5f 20 6e 6f 74 20 74 | 68 65 0a 72 65 73 6f 6c |e_ not t|he.resol|
|00001b70| 75 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 70 69 63 |ution of| the pic|
|00001b80| 74 20 69 6d 61 67 65 20 | 2c 20 73 69 67 68 2e 20 |t image |, sigh. |
|00001b90| 20 49 66 20 73 6f 6d 6f | 6e 65 20 27 66 69 78 65 | If somo|ne 'fixe|
|00001ba0| 73 27 20 70 70 6d 74 6f | 70 69 63 74 20 74 6f 0a |s' ppmto|pict to.|
|00001bb0| 68 61 76 65 20 61 20 72 | 65 73 6f 6c 75 74 69 6f |have a r|esolutio|
|00001bc0| 6e 20 6f 70 74 69 6f 6e | 20 6d 65 20 61 6e 64 20 |n option| me and |
|00001bd0| 6d 79 20 64 65 73 6b 77 | 72 69 74 65 72 20 77 69 |my deskw|riter wi|
|00001be0| 6c 6c 20 62 65 20 67 72 | 65 61 74 66 75 6c 2e 0a |ll be gr|eatful..|
|00001bf0| 28 20 76 61 6c 75 65 20 | 72 65 71 75 69 72 65 64 |( value |required|
|00001c00| 2c 20 69 66 20 73 65 74 | 20 29 0a 0a 73 65 74 20 |, if set| )..set |
|00001c10| 77 69 64 65 6e 62 6f 78 | 20 3d 20 31 0a 0a 74 68 |widenbox| = 1..th|
|00001c20| 65 20 62 6f 75 6e 64 69 | 6e 67 20 62 6f 78 20 73 |e boundi|ng box s|
|00001c30| 6f 6d 65 74 69 6d 65 73 | 20 63 68 6f 70 73 20 6f |ometimes| chops o|
|00001c40| 66 66 20 65 64 67 65 73 | 20 6f 66 20 70 69 63 74 |ff edges| of pict|
|00001c50| 75 72 65 2c 20 74 68 69 | 73 20 75 73 65 73 20 61 |ure, thi|s uses a|
|00001c60| 20 68 61 63 6b 20 74 6f | 20 0a 77 69 64 65 6e 20 | hack to| .widen |
|00001c70| 74 68 65 20 62 62 20 62 | 79 20 24 77 69 64 65 6e |the bb b|y $widen|
|00001c80| 62 6f 78 20 70 6f 69 6e | 74 73 20 0a 61 6e 20 65 |box poin|ts .an e|
|00001c90| 72 72 6f 72 20 77 69 6c | 6c 20 72 65 73 75 6c 74 |rror wil|l result|
|00001ca0| 20 69 66 20 74 68 65 20 | 27 6e 65 77 27 20 62 6f | if the |'new' bo|
|00001cb0| 75 6e 64 69 6e 67 20 62 | 6f 78 20 67 6f 65 73 20 |unding b|ox goes |
|00001cc0| 62 65 79 6f 6e 64 20 74 | 68 65 0a 65 64 67 65 20 |beyond t|he.edge |
|00001cd0| 6f 66 20 67 68 6f 73 74 | 73 63 72 69 70 74 73 20 |of ghost|scripts |
|00001ce0| 27 70 61 67 65 27 20 2d | 2d 20 69 66 20 79 6f 75 |'page' -|- if you|
|00001cf0| 72 20 70 73 20 64 72 61 | 77 73 20 61 74 20 74 68 |r ps dra|ws at th|
|00001d00| 65 20 6f 72 69 67 69 6e | 20 74 68 65 6e 0a 79 6f |e origin| then.yo|
|00001d10| 75 20 63 61 6e 74 20 77 | 69 64 65 6e 20 74 68 65 |u cant w|iden the|
|00001d20| 20 62 6f 78 20 28 20 74 | 72 79 20 75 73 69 6e 67 | box ( t|ry using|
|00001d30| 20 61 20 74 72 61 6e 73 | 6c 61 74 65 20 69 6e 20 | a trans|late in |
|00001d40| 74 68 65 20 73 6f 75 72 | 63 65 20 70 73 20 29 0a |the sour|ce ps ).|
|00001d50| 6e 6f 74 65 20 2d 2d 20 | 73 65 74 20 77 69 64 65 |note -- |set wide|
|00001d60| 6e 62 6f 78 20 3d 20 30 | 20 69 73 20 6e 6f 74 20 |nbox = 0| is not |
|00001d70| 65 78 61 63 74 6c 79 20 | 74 68 65 20 73 61 6d 65 |exactly |the same|
|00001d80| 20 61 73 20 6c 65 61 76 | 69 6e 67 20 77 69 64 65 | as leav|ing wide|
|00001d90| 6e 62 6f 78 20 75 6e 73 | 65 74 0a 2d 2d 20 70 6e |nbox uns|et.-- pn|
|00001da0| 6d 63 75 74 20 69 73 20 | 75 73 65 64 20 72 61 74 |mcut is |used rat|
|00001db0| 68 65 72 20 74 68 61 6e | 20 70 6e 6d 63 72 6f 70 |her than| pnmcrop|
|00001dc0| 20 28 20 69 6e 20 70 72 | 69 63 69 70 6c 65 20 74 | ( in pr|iciple t|
|00001dd0| 68 65 20 73 61 6d 65 20 | 72 65 73 75 6c 74 20 62 |he same |result b|
|00001de0| 79 20 61 20 0a 64 69 66 | 66 65 72 65 6e 74 20 6d |y a .dif|ferent m|
|00001df0| 65 74 68 6f 64 20 29 0a | 77 69 64 65 6e 62 6f 78 |ethod ).|widenbox|
|00001e00| 20 63 61 6e 20 6e 6f 77 | 20 62 65 20 64 65 66 69 | can now| be defi|
|00001e10| 6e 65 64 20 6f 6e 20 74 | 68 65 20 63 6f 6d 6d 61 |ned on t|he comma|
|00001e20| 6e 64 20 6c 69 6e 65 20 | 61 73 20 77 65 6c 6c 20 |nd line |as well |
|00001e30| 28 20 73 65 65 20 75 73 | 61 67 65 20 29 0a 77 68 |( see us|age ).wh|
|00001e40| 61 74 65 76 65 72 20 79 | 6f 75 20 64 6f 20 77 69 |atever y|ou do wi|
|00001e50| 74 68 20 69 74 20 68 65 | 72 65 20 69 73 20 74 68 |th it he|re is th|
|00001e60| 65 20 64 65 66 61 75 6c | 74 2e 0a 28 20 76 61 6c |e defaul|t..( val|
|00001e70| 75 65 20 72 65 71 75 69 | 72 65 64 2c 20 69 66 20 |ue requi|red, if |
|00001e80| 73 65 74 20 20 2a 69 6e | 74 65 67 65 72 20 6f 6e |set *in|teger on|
|00001e90| 6c 79 2a 20 29 0a 0a 23 | 73 65 74 20 62 62 69 6e |ly* )..#|set bbin|
|00001ea0| 66 6f 0a 0a 77 69 74 68 | 20 62 62 69 6e 66 6f 20 |fo..with| bbinfo |
|00001eb0| 6e 6f 74 20 73 65 74 2c | 20 75 73 65 20 74 68 65 |not set,| use the|
|00001ec0| 20 62 6f 75 6e 64 69 6e | 67 20 62 6f 78 20 69 6e | boundin|g box in|
|00001ed0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 70 73 | the ori|ginal ps|
|00001ee0| 20 66 69 6c 65 0a 28 20 | 69 66 20 6f 6e 65 20 65 | file.( |if one e|
|00001ef0| 78 69 73 74 73 20 29 20 | 2d 2d 20 72 65 71 75 69 |xists ) |-- requi|
|00001f00| 72 65 73 20 77 69 64 65 | 6e 62 6f 78 20 74 6f 20 |res wide|nbox to |
|00001f10| 62 65 20 73 65 74 20 61 | 73 20 77 65 6c 6c 2e 0a |be set a|s well..|
|00001f20| 62 62 69 6e 66 6f 20 75 | 6e 73 65 74 2c 20 61 6e |bbinfo u|nset, an|
|00001f30| 64 20 77 69 64 65 6e 62 | 6f 78 20 3d 20 30 0a 6c |d widenb|ox = 0.l|
|00001f40| 65 61 76 65 73 20 74 68 | 65 20 70 6f 73 74 73 63 |eaves th|e postsc|
|00001f50| 72 69 70 74 20 27 64 61 | 74 61 20 66 6f 72 6b 27 |ript 'da|ta fork'|
|00001f60| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 0a 6f 72 69 67 | complet|ely.orig|
|00001f70| 69 6e 61 6c 20 69 66 20 | 74 68 65 20 6f 72 69 67 |inal if |the orig|
|00001f80| 69 6e 61 6c 20 66 69 6c | 65 20 63 6f 6e 74 61 69 |inal fil|e contai|
|00001f90| 6e 73 20 61 20 62 6f 75 | 6e 64 69 6e 67 20 62 6f |ns a bou|nding bo|
|00001fa0| 78 2e 20 20 4f 66 20 63 | 6f 75 72 73 65 2c 20 69 |x. Of c|ourse, i|
|00001fb0| 66 0a 74 68 65 20 65 78 | 69 73 74 69 6e 67 20 62 |f.the ex|isting b|
|00001fc0| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 69 73 20 77 |ounding |box is w|
|00001fd0| 72 6f 6e 67 20 79 6f 75 | 20 77 69 6c 6c 20 67 65 |rong you| will ge|
|00001fe0| 74 20 67 61 72 62 61 67 | 65 2e 0a 0a 73 65 74 20 |t garbag|e...set |
|00001ff0| 77 69 64 65 6e 62 6f 78 | 62 62 20 3d 20 30 0a 0a |widenbox|bb = 0..|
|00002000| 69 66 20 73 65 74 2c 20 | 77 69 64 65 6e 62 6f 78 |if set, |widenbox|
|00002010| 62 62 20 6f 76 65 72 72 | 69 64 65 73 20 77 69 64 |bb overr|ides wid|
|00002020| 65 6e 62 6f 78 20 69 6e | 20 63 61 73 65 73 20 77 |enbox in| cases w|
|00002030| 68 65 72 65 20 65 78 69 | 73 74 69 6e 67 20 0a 62 |here exi|sting .b|
|00002040| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 69 73 20 75 |ounding |box is u|
|00002050| 73 65 64 20 28 20 74 79 | 70 69 63 61 6c 6c 79 20 |sed ( ty|pically |
|00002060| 74 68 69 73 20 73 68 6f | 75 6c 64 20 62 65 20 7a |this sho|uld be z|
|00002070| 65 72 6f 20 49 20 67 75 | 65 73 73 2e 20 29 0a 77 |ero I gu|ess. ).w|
|00002080| 69 64 65 6e 62 6f 78 20 | 73 74 69 6c 6c 20 6d 75 |idenbox |still mu|
|00002090| 73 74 20 62 65 20 73 65 | 74 20 74 6f 20 73 6f 6d |st be se|t to som|
|000020a0| 65 74 68 69 6e 67 20 66 | 6f 72 20 74 68 69 73 20 |ething f|or this |
|000020b0| 74 6f 20 68 61 70 70 65 | 6e 2e 0a 69 65 2e 20 74 |to happe|n..ie. t|
|000020c0| 68 65 20 64 65 66 61 75 | 6c 74 20 6f 70 65 72 61 |he defau|lt opera|
|000020d0| 74 69 6f 6e 20 69 73 0a | 6e 6f 20 62 6f 75 6e 64 |tion is.|no bound|
|000020e0| 69 6e 67 20 62 6f 78 20 | 69 6e 20 6f 72 69 67 69 |ing box |in origi|
|000020f0| 6e 61 6c 20 66 69 6c 65 | 20 2d 3e 20 63 61 6c 63 |nal file| -> calc|
|00002100| 75 6c 61 74 65 20 61 20 | 62 6f 78 20 61 6e 64 20 |ulate a |box and |
|00002110| 77 69 64 65 6e 20 62 79 | 20 31 20 70 6f 69 6e 74 |widen by| 1 point|
|00002120| 0a 62 6f 75 6e 64 69 6e | 67 20 62 6f 78 20 69 6e |.boundin|g box in|
|00002130| 20 6f 72 69 67 69 6e 61 | 6c 20 66 69 6c 65 20 2d | origina|l file -|
|00002140| 3e 20 75 73 65 20 69 74 | 2c 20 6e 6f 20 6d 6f 64 |> use it|, no mod|
|00002150| 69 66 69 63 61 74 69 6f | 6e 20 61 74 20 61 6c 6c |ificatio|n at all|
|00002160| 20 74 6f 20 70 6f 73 74 | 73 63 72 69 70 74 0a 28 | to post|script.(|
|00002170| 20 76 61 6c 75 65 20 72 | 65 71 75 69 72 65 64 2c | value r|equired,|
|00002180| 20 69 66 20 73 65 74 20 | 29 0a 0a 70 6c 65 61 73 | if set |)..pleas|
|00002190| 65 20 69 6e 66 6f 72 6d | 20 6d 65 2c 20 69 66 20 |e inform| me, if |
|000021a0| 79 6f 75 20 68 61 76 65 | 20 70 72 6f 62 6c 65 6d |you have| problem|
|000021b0| 73 20 77 69 74 68 20 77 | 69 64 65 6e 62 6f 78 2c |s with w|idenbox,|
|000021c0| 20 61 73 20 74 68 65 20 | 70 6e 6d 63 72 6f 70 0a | as the |pnmcrop.|
|000021d0| 6d 65 74 68 6f 64 20 6f | 66 20 63 72 6f 70 70 69 |method o|f croppi|
|000021e0| 6e 67 20 74 68 65 20 70 | 69 63 74 20 77 69 6c 6c |ng the p|ict will|
|000021f0| 20 62 65 20 6c 65 66 74 | 20 6f 75 74 20 6f 66 20 | be left| out of |
|00002200| 66 75 74 75 72 65 20 76 | 65 72 73 69 6f 6e 73 0a |future v|ersions.|
|00002210| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 20 6e 65 65 |if it is| not nee|
|00002220| 64 65 64 2e 0a 0a 73 65 | 74 20 65 72 72 6f 72 20 |ded...se|t error |
|00002230| 3d 20 65 72 5f 65 63 68 | 6f 0a 0a 65 72 72 6f 72 |= er_ech|o..error|
|00002240| 20 72 65 70 6f 72 74 69 | 6e 67 20 70 72 6f 67 72 | reporti|ng progr|
|00002250| 61 6d 2c 20 69 6e 20 63 | 61 73 65 20 74 68 65 20 |am, in c|ase the |
|00002260| 64 65 66 61 75 6c 74 20 | 65 72 5f 65 63 68 6f 20 |default |er_echo |
|00002270| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6d 70 69 6c 65 |does not| compile|
|00002280| 2c 0a 74 68 65 72 65 20 | 69 73 20 61 20 63 73 68 |,.there |is a csh|
|00002290| 20 73 63 72 69 70 74 20 | 73 74 5f 65 63 68 6f 2e | script |st_echo.|
|000022a0| 20 73 74 5f 65 63 68 6f | 20 64 6f 65 73 20 6e 6f | st_echo| does no|
|000022b0| 74 20 77 6f 72 6b 20 77 | 69 74 68 20 2d 6c 6f 67 |t work w|ith -log|
|000022c0| 20 6f 72 20 2d 70 69 70 | 65 0a 28 20 76 61 6c 75 | or -pip|e.( valu|
|000022d0| 65 20 72 65 71 75 69 72 | 65 64 20 29 0a 0a 23 73 |e requir|ed )..#s|
|000022e0| 65 74 20 6c 6f 67 20 70 | 73 32 65 70 73 2e 6c 6f |et log p|s2eps.lo|
|000022f0| 67 0a 0a 64 69 72 65 63 | 74 20 6f 75 74 70 75 74 |g..direc|t output|
|00002300| 20 74 6f 20 61 20 6c 6f | 67 20 66 69 6c 65 20 72 | to a lo|g file r|
|00002310| 61 74 68 65 72 20 74 68 | 61 6e 20 73 74 61 6e 64 |ather th|an stand|
|00002320| 61 72 64 20 65 72 72 6f | 72 2e 20 20 54 68 69 73 |ard erro|r. This|
|00002330| 20 72 65 61 6c 6c 79 20 | 6a 75 73 74 0a 67 65 74 | really |just.get|
|00002340| 73 20 70 61 73 73 65 64 | 20 74 6f 20 24 65 72 72 |s passed| to $err|
|00002350| 6f 72 0a 63 61 6e 20 62 | 65 20 73 65 74 20 77 69 |or.can b|e set wi|
|00002360| 74 68 20 22 2d 6c 6f 67 | 20 66 69 6c 65 22 20 6f |th "-log| file" o|
|00002370| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00002380| 6e 65 0a 28 76 61 6c 75 | 65 20 72 65 71 75 69 72 |ne.(valu|e requir|
|00002390| 65 64 20 69 66 20 73 65 | 74 20 29 0a 0a 73 65 74 |ed if se|t )..set|
|000023a0| 20 64 65 62 75 67 6c 65 | 76 20 3d 20 31 0a 0a 64 | debugle|v = 1..d|
|000023b0| 65 66 61 75 6c 74 20 64 | 65 62 75 67 20 6c 65 76 |efault d|ebug lev|
|000023c0| 65 6c 2c 20 70 61 73 73 | 65 64 20 74 6f 20 24 65 |el, pass|ed to $e|
|000023d0| 72 72 6f 72 0a 20 30 20 | 2d 3e 20 6f 6e 6c 79 20 |rror. 0 |-> only |
|000023e0| 66 61 74 61 6c 20 65 72 | 72 6f 72 20 6d 65 73 73 |fatal er|ror mess|
|000023f0| 61 67 65 73 0a 20 31 20 | 2d 3e 20 6c 65 74 73 20 |ages. 1 |-> lets |
|00002400| 79 6f 75 20 6b 6e 6f 77 | 20 77 68 61 74 20 69 73 |you know| what is|
|00002410| 20 67 6f 69 6e 67 20 6f | 6e 0a 20 33 20 2d 3e 20 | going o|n. 3 -> |
|00002420| 70 6f 73 73 61 62 6c 79 | 20 69 6e 74 65 72 65 73 |possably| interes|
|00002430| 74 69 6e 67 20 73 74 75 | 66 66 0a 20 34 20 28 20 |ting stu|ff. 4 ( |
|00002440| 6f 72 20 68 69 67 68 65 | 72 20 29 20 2d 3e 20 76 |or highe|r ) -> v|
|00002450| 65 72 79 20 76 65 72 62 | 6f 73 65 0a 63 61 6e 20 |ery verb|ose.can |
|00002460| 62 65 20 6f 76 65 72 72 | 69 64 64 65 6e 20 77 69 |be overr|idden wi|
|00002470| 74 68 20 22 2d 64 65 62 | 75 67 20 6e 22 20 6f 6e |th "-deb|ug n" on|
|00002480| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | the com|mand lin|
|00002490| 65 0a 28 76 61 6c 75 65 | 20 72 65 71 75 69 72 65 |e.(value| require|
|000024a0| 64 20 69 66 20 73 65 74 | 20 29 0a 0a 23 73 65 74 |d if set| )..#set|
|000024b0| 20 71 75 69 65 74 0a 0a | 6d 61 6b 65 20 22 2d 71 | quiet..|make "-q|
|000024c0| 22 20 6f 6e 20 62 79 20 | 64 65 66 61 75 6c 74 20 |" on by |default |
|000024d0| 28 20 6f 76 65 72 77 72 | 69 74 65 73 20 66 69 6c |( overwr|ites fil|
|000024e0| 65 73 20 77 69 74 68 6f | 75 74 20 61 73 6b 69 6e |es witho|ut askin|
|000024f0| 67 20 29 0a 74 68 69 73 | 20 63 61 6e 6e 6f 74 20 |g ).this| cannot |
|00002500| 62 65 20 6f 76 65 72 72 | 69 64 65 6e 20 6f 6e 20 |be overr|iden on |
|00002510| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00002520| 0a 0a 6d 6f 72 65 20 75 | 73 61 67 65 20 6e 6f 74 |..more u|sage not|
|00002530| 65 73 20 61 72 65 20 69 | 6e 20 74 68 65 20 73 68 |es are i|n the sh|
|00002540| 65 6c 6c 20 73 63 72 69 | 70 74 20 27 70 73 32 65 |ell scri|pt 'ps2e|
|00002550| 70 73 2d 6d 61 63 27 0a | 0a 74 68 69 73 20 73 68 |ps-mac'.|.this sh|
|00002560| 65 6c 6c 20 61 72 63 68 | 69 76 65 20 63 6f 6e 74 |ell arch|ive cont|
|00002570| 61 69 6e 73 0a 6d 61 6b | 65 66 69 6c 65 20 20 20 |ains.mak|efile |
|00002580| 20 20 20 20 20 20 20 20 | 20 2d 2d 20 65 6e 74 65 | | -- ente|
|00002590| 72 20 27 6d 61 6b 65 27 | 20 74 6f 20 63 6f 6d 70 |r 'make'| to comp|
|000025a0| 69 6c 65 2e 2e 0a 70 73 | 32 65 70 73 2d 6d 61 63 |ile...ps|2eps-mac|
|000025b0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 65 78 65 | | -- exe|
|000025c0| 63 75 74 61 62 6c 65 20 | 73 68 65 6c 6c 20 73 63 |cutable |shell sc|
|000025d0| 72 69 70 74 0a 70 73 2d | 70 69 63 74 32 6d 61 63 |ript.ps-|pict2mac|
|000025e0| 62 69 6e 2e 63 20 20 20 | 20 2d 2d 20 73 6f 75 72 |bin.c | -- sour|
|000025f0| 63 65 20 66 6f 72 20 6d | 61 63 62 69 6e 61 72 79 |ce for m|acbinary|
|00002600| 20 63 72 65 61 74 69 6e | 67 20 75 74 69 6c 69 74 | creatin|g utilit|
|00002610| 79 0a 74 65 73 74 2e 70 | 73 20 20 20 20 20 20 20 |y.test.p|s |
|00002620| 20 20 20 20 20 20 2d 2d | 20 73 69 6d 70 6c 65 20 | --| simple |
|00002630| 74 65 73 74 20 66 69 6c | 65 0a 74 65 73 74 2d 65 |test fil|e.test-e|
|00002640| 78 2e 65 70 73 2e 62 69 | 6e 2e 75 75 20 20 2d 2d |x.eps.bi|n.uu --|
|00002650| 20 65 78 61 6d 70 6c 65 | 20 6d 61 63 62 69 6e 61 | example| macbina|
|00002660| 72 79 2c 20 63 72 65 61 | 74 65 64 20 66 72 6f 6d |ry, crea|ted from|
|00002670| 20 74 65 73 74 2e 70 73 | 0a 52 45 41 44 4d 45 20 | test.ps|.README |
|00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 20 | | -- |
|00002690| 74 68 69 73 20 66 69 6c | 65 0a 65 72 5f 65 63 68 |this fil|e.er_ech|
|000026a0| 6f 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 2d 2d |o.c | --|
|000026b0| 20 65 72 72 6f 72 20 68 | 61 6e 64 6c 69 6e 67 20 | error h|andling |
|000026c0| 63 20 70 72 6f 67 72 61 | 6d 0a 70 62 6d 74 6f 65 |c progra|m.pbmtoe|
|000026d0| 70 73 69 2e 63 20 20 20 | 20 20 20 20 20 20 2d 2d |psi.c | --|
|000026e0| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 70 62 6d 70 | additio|nal pbmp|
|000026f0| 6c 75 73 20 73 6f 75 72 | 63 65 0a 70 73 32 65 70 |lus sour|ce.ps2ep|
|00002700| 73 2d 6d 61 63 2e 31 20 | 20 20 20 20 20 20 20 2d |s-mac.1 | -|
|00002710| 2d 20 75 6e 69 78 20 6d | 61 6e 20 70 61 67 65 20 |- unix m|an page |
|00002720| 0a 0a 76 65 72 73 69 6f | 6e 20 68 69 73 74 6f 72 |..versio|n histor|
|00002730| 79 0a 69 6e 69 74 69 61 | 6c 20 72 65 6c 65 61 73 |y.initia|l releas|
|00002740| 65 20 34 2f 34 2f 39 32 | 0a 67 65 6f 72 67 65 20 |e 4/4/92|.george |
|00002750| 6a 65 66 66 65 72 73 6f | 6e 20 20 67 65 6f 72 67 |jefferso|n georg|
|00002760| 65 40 6d 65 63 68 2e 73 | 65 61 73 2e 75 70 65 6e |e@mech.s|eas.upen|
|00002770| 6e 2e 65 64 75 0a 76 2e | 30 2e 31 20 34 2f 35 2f |n.edu.v.|0.1 4/5/|
|00002780| 39 32 0a 61 64 64 65 64 | 20 6f 70 74 69 6f 6e 73 |92.added| options|
|00002790| 20 74 6f 20 6d 6f 64 69 | 66 79 20 6c 69 6e 65 20 | to modi|fy line |
|000027a0| 65 6e 64 69 6e 67 20 74 | 72 61 6e 73 6c 61 74 69 |ending t|ranslati|
|000027b0| 6f 6e 20 69 6e 20 70 73 | 32 65 70 73 2d 6d 61 63 |on in ps|2eps-mac|
|000027c0| 20 73 63 72 69 70 74 0a | 28 20 73 61 6d 65 20 61 | script.|( same a|
|000027d0| 63 74 69 6f 6e 20 62 79 | 20 64 65 66 61 75 6c 74 |ction by| default|
|000027e0| 20 29 0a 76 2e 30 2e 32 | 20 34 2f 35 2f 39 32 0a | ).v.0.2| 4/5/92.|
|000027f0| 61 64 64 65 64 20 63 6f | 64 65 20 74 6f 20 77 69 |added co|de to wi|
|00002800| 64 65 6e 20 74 68 65 20 | 62 6f 75 6e 64 69 6e 67 |den the |bounding|
|00002810| 20 62 6f 78 20 2d 2d 20 | 62 79 20 31 20 70 74 20 | box -- |by 1 pt |
|00002820| 61 73 20 64 65 66 61 75 | 6c 74 0a 62 65 74 74 65 |as defau|lt.bette|
|00002830| 72 20 74 65 73 74 2e 70 | 73 0a 76 2e 30 2e 33 20 |r test.p|s.v.0.3 |
|00002840| 34 2f 36 2f 39 32 20 0a | 63 6f 72 72 65 63 74 69 |4/6/92 .|correcti|
|00002850| 6f 6e 73 20 74 6f 20 64 | 6f 63 75 6d 65 6e 74 61 |ons to d|ocumenta|
|00002860| 74 69 6f 6e 0a 63 68 61 | 6e 67 65 20 64 65 66 61 |tion.cha|nge defa|
|00002870| 75 6c 74 20 66 69 6c 65 | 20 74 79 70 65 20 74 6f |ult file| type to|
|00002880| 20 45 50 53 46 0a 66 69 | 78 65 64 20 69 6e 66 6f | EPSF.fi|xed info|
|00002890| 20 68 65 61 64 65 72 20 | 62 75 67 0a 70 61 64 20 | header |bug.pad |
|000028a0| 72 65 73 6f 75 72 63 65 | 20 66 6f 72 6b 20 74 6f |resource| fork to|
|000028b0| 20 31 32 38 20 62 79 74 | 65 20 62 6f 75 6e 64 20 | 128 byt|e bound |
|000028c0| 28 20 73 75 6e 74 61 72 | 20 63 68 6f 6b 65 64 2e |( suntar| choked.|
|000028d0| 2e 2e 20 29 0a 76 2e 30 | 2e 34 0a 6e 6f 77 20 6c |.. ).v.0|.4.now l|
|000028e0| 6f 6f 6b 73 20 66 6f 72 | 20 61 20 62 6f 75 6e 64 |ooks for| a bound|
|000028f0| 69 6e 67 20 62 6f 78 20 | 6c 69 6e 65 20 69 6e 20 |ing box |line in |
|00002900| 74 68 65 20 73 6f 75 72 | 63 65 20 66 69 6c 65 20 |the sour|ce file |
|00002910| 61 6e 64 20 75 73 65 73 | 20 69 74 0a 72 61 74 68 |and uses| it.rath|
|00002920| 65 72 20 74 68 61 6e 20 | 75 73 69 6e 67 20 70 70 |er than |using pp|
|00002930| 6d 74 6f 65 70 73 69 20 | 74 6f 20 63 61 6c 63 75 |mtoepsi |to calcu|
|00002940| 6c 61 74 65 2e 2e 0a 74 | 68 69 73 20 66 65 61 74 |late...t|his feat|
|00002950| 75 72 65 20 69 73 20 27 | 6f 6e 27 20 62 79 20 64 |ure is '|on' by d|
|00002960| 65 66 61 75 6c 74 20 20 | 28 20 73 65 65 20 62 62 |efault |( see bb|
|00002970| 69 6e 66 6f 20 6f 70 74 | 69 6f 6e 20 29 0a 65 78 |info opt|ion ).ex|
|00002980| 70 6c 69 6e 61 74 69 6f | 6e 20 6f 66 20 6d 6f 73 |plinatio|n of mos|
|00002990| 74 20 6f 70 74 69 6f 6e | 73 20 6d 6f 76 65 64 20 |t option|s moved |
|000029a0| 74 6f 20 74 68 69 73 20 | 66 69 6c 65 20 66 72 6f |to this |file fro|
|000029b0| 6d 20 74 68 65 20 73 68 | 65 6c 6c 20 73 63 72 69 |m the sh|ell scri|
|000029c0| 70 74 0a 76 2e 30 2e 35 | 0a 49 20 5f 74 68 69 6e |pt.v.0.5|.I _thin|
|000029d0| 6b 5f 20 74 68 65 20 62 | 6f 75 6e 64 69 6e 67 20 |k_ the b|ounding |
|000029e0| 62 6f 78 20 69 73 20 6e | 6f 77 20 63 61 6c 63 75 |box is n|ow calcu|
|000029f0| 6c 61 74 65 64 20 63 6f | 72 72 65 63 74 6c 79 20 |lated co|rrectly |
|00002a00| 69 6e 20 61 6c 6c 20 63 | 61 73 65 73 2e 0a 76 2e |in all c|ases..v.|
|00002a10| 30 2e 36 0a 61 64 64 65 | 64 20 65 72 5f 65 63 68 |0.6.adde|d er_ech|
|00002a20| 6f 2e 63 2c 20 77 68 69 | 63 68 20 6c 65 74 73 20 |o.c, whi|ch lets |
|00002a30| 6d 65 20 64 6f 20 6e 69 | 63 65 20 65 72 72 6f 72 |me do ni|ce error|
|00002a40| 20 72 65 70 6f 72 74 69 | 6e 67 0a 28 20 69 66 20 | reporti|ng.( if |
|00002a50| 65 72 5f 65 63 68 6f 20 | 66 61 69 6c 73 20 74 6f |er_echo |fails to|
|00002a60| 20 77 6f 72 6b 2c 20 69 | 74 20 69 73 20 61 20 62 | work, i|t is a b|
|00002a70| 69 74 20 73 75 70 65 72 | 66 6c 75 6f 75 73 2c 20 |it super|fluous, |
|00002a80| 75 6e 73 65 74 20 24 65 | 72 72 6f 72 20 29 0a 76 |unset $e|rror ).v|
|00002a90| 2e 30 2e 37 0a 62 79 70 | 61 73 73 20 66 74 69 6d |.0.7.byp|ass ftim|
|00002aa0| 65 2c 20 66 6f 72 20 73 | 79 73 76 20 6d 61 63 68 |e, for s|ysv mach|
|00002ab0| 69 6e 65 73 0a 76 2e 30 | 2e 38 0a 6d 6f 72 65 20 |ines.v.0|.8.more |
|00002ac0| 73 79 73 76 20 63 6f 6d | 70 61 74 61 62 69 6c 74 |sysv com|patabilt|
|00002ad0| 79 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 0a 73 |y modifi|cation.s|
|00002ae0| 68 6f 72 74 65 6e 65 64 | 20 70 73 2d 70 69 63 74 |hortened| ps-pict|
|00002af0| 32 6d 61 63 62 69 6e 2e | 63 20 74 6f 20 70 73 2d |2macbin.|c to ps-|
|00002b00| 70 69 63 74 32 6d 61 63 | 62 2e 63 0a 76 2e 30 2e |pict2mac|b.c.v.0.|
|00002b10| 39 0a 61 64 64 65 64 20 | 70 62 6d 74 6f 65 70 73 |9.added |pbmtoeps|
|00002b20| 69 20 73 6f 75 72 63 65 | 20 74 6f 20 64 69 73 74 |i source| to dist|
|00002b30| 72 69 62 75 74 69 6f 6e | 0a 76 2e 30 2e 39 31 0a |ribution|.v.0.91.|
|00002b40| 66 69 78 65 64 20 74 69 | 6d 65 28 29 20 62 75 67 |fixed ti|me() bug|
|00002b50| 20 77 68 69 63 68 20 63 | 61 75 73 65 64 20 63 72 | which c|aused cr|
|00002b60| 61 73 68 20 6f 6e 20 73 | 75 6e 33 27 73 0a 76 2e |ash on s|un3's.v.|
|00002b70| 31 2e 30 0a 69 6e 63 6c | 75 64 65 64 20 73 74 5f |1.0.incl|uded st_|
|00002b80| 65 63 68 6f 2c 20 61 6c | 74 68 6f 75 67 68 20 69 |echo, al|though i|
|00002b90| 20 64 6f 6e 74 20 6b 6e | 6f 77 20 6f 66 20 61 6e | dont kn|ow of an|
|00002ba0| 79 20 70 72 6f 62 6c 65 | 6d 73 20 77 69 74 68 20 |y proble|ms with |
|00002bb0| 65 72 5f 65 63 68 6f 0a | 61 64 64 65 64 20 6d 61 |er_echo.|added ma|
|00002bc0| 6e 20 70 61 67 65 2c 20 | 6e 6f 77 20 69 20 74 68 |n page, |now i th|
|00002bd0| 69 6e 6b 20 77 65 20 61 | 72 65 20 72 65 61 64 79 |ink we a|re ready|
|00002be0| 20 74 6f 20 73 65 6e 64 | 20 74 6f 20 73 6f 6d 65 | to send| to some|
|00002bf0| 20 66 74 70 20 73 69 74 | 65 73 2e 0a 76 2e 31 2e | ftp sit|es..v.1.|
|00002c00| 31 20 0a 72 65 63 6f 67 | 6e 69 73 65 73 20 67 73 |1 .recog|nises gs|
|00002c10| 32 2e 34 20 6d 75 6c 74 | 69 2d 70 61 67 65 20 6f |2.4 mult|i-page o|
|00002c20| 75 74 70 75 74 2c 20 61 | 62 6f 72 74 73 20 77 69 |utput, a|borts wi|
|00002c30| 74 68 20 61 6e 20 61 70 | 72 6f 70 72 69 61 74 65 |th an ap|ropriate|
|00002c40| 20 6d 65 73 73 61 67 65 | 2e 0a 76 2e 31 2e 32 0a | message|..v.1.2.|
|00002c50| 63 6f 6d 70 61 74 61 62 | 69 6c 69 74 79 20 77 69 |compatab|ility wi|
|00002c60| 74 68 20 73 65 76 65 72 | 61 6c 20 64 69 66 66 65 |th sever|al diffe|
|00002c70| 72 65 6e 74 20 42 6f 75 | 6e 64 69 6e 67 42 6f 78 |rent Bou|ndingBox|
|00002c80| 20 66 6f 72 6d 61 74 73 | 0a 28 20 61 74 65 6e 64 | formats|.( atend|
|00002c90| 20 29 0a 6e 6f 6e 20 2d | 20 69 6e 74 65 67 65 72 | ).non -| integer|
|00002ca0| 20 76 61 6c 75 65 73 0a | 62 6f 78 3a 78 20 28 20 | values.|box:x ( |
|00002cb0| 6e 6f 20 73 70 61 63 65 | 20 29 0a 6d 61 6b 65 73 |no space| ).makes|
|00002cc0| 20 73 75 72 65 20 66 69 | 72 73 74 20 6c 69 6e 65 | sure fi|rst line|
|00002cd0| 20 69 73 20 25 21 50 53 | 2d 41 64 6f 62 65 0a 65 | is %!PS|-Adobe.e|
|00002ce0| 76 65 6e 20 6d 6f 72 65 | 20 73 61 6e 69 6e 74 79 |ven more| saninty|
|00002cf0| 20 63 68 65 63 6b 69 6e | 67 2e 0a 72 65 70 61 69 | checkin|g..repai|
|00002d00| 72 65 64 20 6d 61 6a 6f | 72 20 62 75 67 20 69 6e |red majo|r bug in|
|00002d10| 20 70 73 2d 70 69 63 74 | 32 6d 61 63 62 2e 63 2c | ps-pict|2macb.c,|
|00002d20| 20 77 68 69 63 68 20 63 | 61 75 73 65 64 20 6d 61 | which c|aused ma|
|00002d30| 63 20 74 6f 20 63 72 61 | 73 68 20 0a 20 77 69 74 |c to cra|sh . wit|
|00002d40| 68 20 6c 61 72 67 65 20 | 69 6d 61 67 65 73 2e 0a |h large |images..|
|00002d50| 6d 6f 72 65 20 6f 75 74 | 70 75 74 20 6f 70 74 69 |more out|put opti|
|00002d60| 6f 6e 73 0a 76 2e 31 2e | 33 0a 63 6f 6c 6f 72 20 |ons.v.1.|3.color |
|00002d70| 73 75 70 70 6f 72 74 2e | 0a 66 69 78 65 64 20 66 |support.|.fixed f|
|00002d80| 74 70 20 6f 75 74 70 75 | 74 0a 53 48 41 52 5f 45 |tp outpu|t.SHAR_E|
|00002d90| 4f 46 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |OF.fi # |end of o|
|00002da0| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00002db0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 70 73 32 |.if test| -f 'ps2|
|00002dc0| 65 70 73 2d 6d 61 63 27 | 0a 74 68 65 6e 0a 09 65 |eps-mac'|.then..e|
|00002dd0| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|00002de0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00002df0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 70 73 |isting f|ile "'ps|
|00002e00| 32 65 70 73 2d 6d 61 63 | 27 22 0a 65 6c 73 65 0a |2eps-mac|'".else.|
|00002e10| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00002e20| 20 3e 20 27 70 73 32 65 | 70 73 2d 6d 61 63 27 0a | > 'ps2e|ps-mac'.|
|00002e30| 23 21 2f 62 69 6e 2f 63 | 73 68 20 2d 66 0a 23 63 |#!/bin/c|sh -f.#c|
|00002e40| 72 65 61 74 65 73 20 61 | 20 6d 61 63 69 6e 74 6f |reates a| macinto|
|00002e50| 73 68 20 22 70 6f 73 74 | 73 63 72 69 70 74 20 77 |sh "post|script w|
|00002e60| 69 74 68 20 70 69 63 74 | 20 70 72 65 76 69 65 77 |ith pict| preview|
|00002e70| 22 20 66 69 6c 65 0a 23 | 69 6e 20 6d 61 63 62 69 |" file.#|in macbi|
|00002e80| 6e 61 72 79 20 66 6f 72 | 6d 61 74 2e 20 28 20 74 |nary for|mat. ( t|
|00002e90| 72 61 6e 73 66 65 72 20 | 74 6f 20 61 20 6d 61 63 |ransfer |to a mac|
|00002ea0| 20 69 6e 20 62 69 6e 61 | 72 79 2f 6d 61 63 62 69 | in bina|ry/macbi|
|00002eb0| 6e 61 72 79 20 65 6e 61 | 62 6c 65 64 20 6d 6f 64 |nary ena|bled mod|
|00002ec0| 65 20 29 0a 23 0a 23 23 | 23 6f 70 74 69 6f 6e 73 |e ).#.##|#options|
|00002ed0| 2c 20 63 68 61 6e 67 65 | 20 64 65 66 61 75 6c 74 |, change| default|
|00002ee0| 73 20 62 79 20 75 6e 63 | 6f 6d 6d 65 6e 74 69 6e |s by unc|ommentin|
|00002ef0| 67 20 22 23 22 20 6c 69 | 6e 65 73 20 20 5f 53 45 |g "#" li|nes _SE|
|00002f00| 45 5f 52 45 41 44 4d 45 | 5f 0a 23 23 23 5f 61 6e |E_README|_.###_an|
|00002f10| 79 5f 20 6f 66 20 74 68 | 65 73 65 20 6f 70 74 69 |y_ of th|ese opti|
|00002f20| 6f 6e 73 20 6d 61 79 20 | 62 65 20 27 75 6e 73 65 |ons may |be 'unse|
|00002f30| 74 27 20 6f 72 20 63 6f | 6d 6d 65 6e 74 65 64 20 |t' or co|mmented |
|00002f40| 6f 75 74 0a 23 73 65 74 | 20 70 73 32 65 70 73 64 |out.#set| ps2epsd|
|00002f50| 69 72 20 3d 20 20 28 20 | 2f 75 73 72 2f 6e 65 77 |ir = ( |/usr/new|
|00002f60| 2f 62 69 6e 20 29 20 20 | 20 20 20 23 20 61 64 64 |/bin ) | # add|
|00002f70| 20 74 6f 20 73 65 61 72 | 63 68 20 70 61 74 68 0a | to sear|ch path.|
|00002f80| 23 73 65 74 20 6e 6f 74 | 72 61 6e 73 6c 61 74 65 |#set not|ranslate|
|00002f90| 20 20 20 20 20 20 20 20 | 20 20 20 23 64 6f 20 6e | | #do n|
|00002fa0| 6f 74 20 74 72 61 6e 73 | 6c 61 74 65 20 61 6e 79 |ot trans|late any|
|00002fb0| 20 6c 69 6e 65 20 65 6e | 64 69 6e 67 73 0a 23 73 | line en|dings.#s|
|00002fc0| 65 74 20 6e 6f 74 72 61 | 6e 73 66 69 6c 65 20 20 |et notra|nsfile |
|00002fd0| 20 20 20 20 20 20 20 20 | 20 23 70 75 74 20 6d 61 | | #put ma|
|00002fe0| 63 20 6c 69 6e 65 20 65 | 6e 64 69 6e 67 20 6f 6e |c line e|nding on|
|00002ff0| 20 6f 6e 6c 79 20 66 69 | 72 73 74 20 74 77 6f 20 | only fi|rst two |
|00003000| 6c 69 6e 65 73 0a 23 73 | 65 74 20 68 61 76 65 6d |lines.#s|et havem|
|00003010| 61 63 70 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |acps | |
|00003020| 20 23 70 61 73 73 20 74 | 68 72 6f 75 67 68 20 6d | #pass t|hrough m|
|00003030| 61 63 70 73 20 69 66 20 | 6e 65 63 65 73 73 61 72 |acps if |necessar|
|00003040| 79 0a 23 73 65 74 20 6e | 6f 73 68 6f 77 70 61 67 |y.#set n|oshowpag|
|00003050| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 23 75 6e |e | #un|
|00003060| 64 65 66 69 6e 65 20 73 | 68 6f 77 70 61 67 65 20 |define s|howpage |
|00003070| 69 6e 20 65 70 73 20 66 | 69 6c 65 0a 23 73 65 74 |in eps f|ile.#set|
|00003080| 20 64 65 6e 73 69 74 79 | 20 3d 20 37 32 20 20 20 | density| = 72 |
|00003090| 20 20 20 20 20 20 20 23 | 64 6f 6e 74 20 63 68 61 | #|dont cha|
|000030a0| 6e 67 65 20 74 68 69 73 | 2c 20 69 74 20 64 6f 65 |nge this|, it doe|
|000030b0| 73 6e 27 74 20 77 6f 72 | 6b 20 3a 2d 28 0a 73 65 |sn't wor|k :-(.se|
|000030c0| 74 20 77 69 64 65 6e 62 | 6f 78 20 3d 20 31 20 20 |t widenb|ox = 1 |
|000030d0| 20 20 20 20 20 20 20 20 | 20 23 61 64 64 20 6e 20 | | #add n |
|000030e0| 70 6f 69 6e 74 73 20 65 | 78 74 72 61 20 77 68 69 |points e|xtra whi|
|000030f0| 74 65 20 73 70 61 63 65 | 20 61 72 6f 75 6e 64 20 |te space| around |
|00003100| 69 6d 61 67 65 0a 23 73 | 65 74 20 62 62 69 6e 66 |image.#s|et bbinf|
|00003110| 6f 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |o | |
|00003120| 20 23 64 6f 20 6e 6f 74 | 20 6c 6f 6f 6b 20 66 6f | #do not| look fo|
|00003130| 72 20 65 78 69 73 74 69 | 6e 67 20 62 6f 75 6e 64 |r existi|ng bound|
|00003140| 69 6e 67 20 62 6f 78 0a | 73 65 74 20 77 69 64 65 |ing box.|set wide|
|00003150| 6e 62 6f 78 62 62 20 3d | 20 30 20 20 20 20 20 20 |nboxbb =| 0 |
|00003160| 20 20 20 23 77 69 64 65 | 6e 62 6f 78 20 75 73 65 | #wide|nbox use|
|00003170| 64 20 77 68 65 6e 20 75 | 73 69 6e 67 20 65 78 69 |d when u|sing exi|
|00003180| 73 74 69 6e 67 20 62 6f | 75 6e 64 69 6e 67 20 62 |sting bo|unding b|
|00003190| 6f 78 0a 73 65 74 20 65 | 72 72 6f 72 20 3d 20 65 |ox.set e|rror = e|
|000031a0| 72 5f 65 63 68 6f 20 20 | 20 20 20 20 20 20 23 74 |r_echo | #t|
|000031b0| 75 72 6e 20 6f 6e 20 65 | 72 72 6f 72 20 72 65 70 |urn on e|rror rep|
|000031c0| 6f 72 74 69 6e 67 0a 23 | 73 65 74 20 6c 6f 67 20 |orting.#|set log |
|000031d0| 3d 20 70 73 32 65 70 73 | 2e 6c 6f 67 20 20 20 20 |= ps2eps|.log |
|000031e0| 20 20 23 77 72 69 74 65 | 20 74 6f 20 6c 6f 67 20 | #write| to log |
|000031f0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 73 74 64 65 |rather t|han stde|
|00003200| 72 72 0a 73 65 74 20 64 | 65 62 75 67 6c 65 76 20 |rr.set d|ebuglev |
|00003210| 3d 20 31 20 20 20 20 20 | 20 20 20 20 20 20 23 64 |= 1 | #d|
|00003220| 65 66 61 75 6c 74 20 64 | 65 62 75 67 20 6c 65 76 |efault d|ebug lev|
|00003230| 65 6c 20 28 20 30 20 3d | 20 6e 6f 6e 65 2c 20 35 |el ( 0 =| none, 5|
|00003240| 20 3d 20 61 6c 6c 20 29 | 0a 23 73 65 74 20 71 75 | = all )|.#set qu|
|00003250| 69 65 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |iet | |
|00003260| 20 20 20 20 20 23 6d 61 | 6b 65 20 2d 71 20 6f 6e | #ma|ke -q on|
|00003270| 20 62 79 20 64 65 66 61 | 75 6c 74 0a 23 23 23 65 | by defa|ult.###e|
|00003280| 6e 64 20 6f 66 20 6f 70 | 74 69 6f 6e 73 2c 20 65 |nd of op|tions, e|
|00003290| 6e 64 20 6f 66 20 65 76 | 65 6e 20 6d 69 6c 64 6c |nd of ev|en mildl|
|000032a0| 79 20 69 6e 74 65 72 65 | 73 74 69 6e 67 20 6e 6f |y intere|sting no|
|000032b0| 74 65 73 0a 73 65 74 20 | 63 6f 6c 6f 72 73 20 3d |tes.set |colors =|
|000032c0| 20 70 70 6d 31 72 75 6e | 0a 69 66 28 24 3f 64 65 | ppm1run|.if($?de|
|000032d0| 62 75 67 6c 65 76 20 3d | 3d 20 30 29 73 65 74 20 |buglev =|= 0)set |
|000032e0| 64 65 62 75 67 6c 65 76 | 20 3d 20 30 0a 73 65 74 |debuglev| = 0.set|
|000032f0| 20 64 65 73 74 64 69 72 | 20 3d 20 27 2e 27 0a 77 | destdir| = '.'.w|
|00003300| 68 69 6c 65 28 20 24 23 | 61 72 67 76 20 3e 20 20 |hile( $#|argv > |
|00003310| 30 20 20 29 0a 20 73 77 | 69 74 63 68 20 28 20 24 |0 ). sw|itch ( $|
|00003320| 31 20 29 0a 20 63 61 73 | 65 20 2d 65 78 65 63 0a |1 ). cas|e -exec.|
|00003330| 20 73 65 74 20 64 65 73 | 74 64 69 72 20 3d 20 6f | set des|tdir = o|
|00003340| 2e 63 6f 6d 6d 61 6e 64 | 0a 20 73 65 74 20 63 6f |.command|. set co|
|00003350| 6d 6d 61 6e 64 20 3d 20 | 22 24 32 22 0a 20 73 68 |mmand = |"$2". sh|
|00003360| 69 66 74 0a 20 62 72 65 | 61 6b 73 77 0a 20 63 61 |ift. bre|aksw. ca|
|00003370| 73 65 20 2d 77 69 64 65 | 6e 0a 20 20 73 65 74 20 |se -wide|n. set |
|00003380| 77 69 64 65 6e 62 6f 78 | 20 3d 20 24 32 0a 20 20 |widenbox| = $2. |
|00003390| 69 66 28 20 24 77 69 64 | 65 6e 62 6f 78 20 3d 3d |if( $wid|enbox ==|
|000033a0| 20 75 6e 73 65 74 20 29 | 75 6e 73 65 74 20 77 69 | unset )|unset wi|
|000033b0| 64 65 6e 62 6f 78 0a 20 | 20 73 68 69 66 74 0a 20 |denbox. | shift. |
|000033c0| 62 72 65 61 6b 73 77 0a | 20 63 61 73 65 20 2d 38 |breaksw.| case -8|
|000033d0| 0a 20 20 73 65 74 20 63 | 6f 6c 6f 72 73 20 3d 20 |. set c|olors = |
|000033e0| 70 70 6d 38 72 75 6e 0a | 20 62 72 65 61 6b 73 77 |ppm8run.| breaksw|
|000033f0| 0a 20 63 61 73 65 20 2d | 32 34 0a 20 20 73 65 74 |. case -|24. set|
|00003400| 20 63 6f 6c 6f 72 73 20 | 3d 20 70 70 6d 32 34 72 | colors |= ppm24r|
|00003410| 75 6e 0a 20 62 72 65 61 | 6b 73 77 0a 20 63 61 73 |un. brea|ksw. cas|
|00003420| 65 20 2d 71 0a 20 63 61 | 73 65 20 2d 62 61 74 63 |e -q. ca|se -batc|
|00003430| 68 0a 20 20 73 65 74 20 | 71 75 69 65 74 0a 20 62 |h. set |quiet. b|
|00003440| 72 65 61 6b 73 77 0a 20 | 63 61 73 65 20 2d 64 0a |reaksw. |case -d.|
|00003450| 20 20 73 65 74 20 64 65 | 73 74 64 69 72 20 3d 20 | set de|stdir = |
|00003460| 24 32 0a 20 20 73 68 69 | 66 74 0a 20 62 72 65 61 |$2. shi|ft. brea|
|00003470| 6b 73 77 0a 20 63 61 73 | 65 20 2d 66 74 70 0a 20 |ksw. cas|e -ftp. |
|00003480| 20 73 65 74 20 66 74 70 | 20 3d 20 24 32 0a 20 20 | set ftp| = $2. |
|00003490| 73 68 69 66 74 0a 20 20 | 73 65 74 20 64 65 73 74 |shift. |set dest|
|000034a0| 64 69 72 20 3d 20 6f 2e | 66 74 70 0a 20 62 72 65 |dir = o.|ftp. bre|
|000034b0| 61 6b 73 77 0a 20 63 61 | 73 65 20 2d 70 69 70 65 |aksw. ca|se -pipe|
|000034c0| 0a 20 20 73 65 74 20 64 | 65 73 74 64 69 72 20 3d |. set d|estdir =|
|000034d0| 20 73 74 64 6f 75 74 0a | 20 63 61 73 65 20 2d 64 | stdout.| case -d|
|000034e0| 65 62 75 67 0a 20 20 73 | 65 74 20 64 65 62 75 67 |ebug. s|et debug|
|000034f0| 6c 65 76 20 3d 20 24 32 | 0a 20 20 73 68 69 66 74 |lev = $2|. shift|
|00003500| 0a 20 62 72 65 61 6b 73 | 77 0a 20 63 61 73 65 20 |. breaks|w. case |
|00003510| 2d 6c 6f 67 0a 20 20 73 | 65 74 20 6c 6f 67 66 69 |-log. s|et logfi|
|00003520| 6c 65 20 3d 20 24 32 0a | 20 20 73 68 69 66 74 0a |le = $2.| shift.|
|00003530| 20 62 72 65 61 6b 73 77 | 0a 20 64 65 66 61 75 6c | breaksw|. defaul|
|00003540| 74 0a 20 20 73 65 74 20 | 73 6f 75 72 63 65 20 3d |t. set |source =|
|00003550| 20 24 31 20 23 66 75 6c | 6c 20 70 61 74 68 20 6e | $1 #ful|l path n|
|00003560| 61 6d 65 20 6f 66 20 6f | 72 69 67 69 6e 61 6c 20 |ame of o|riginal |
|00003570| 70 73 20 66 69 6c 65 0a | 20 62 72 65 61 6b 73 77 |ps file.| breaksw|
|00003580| 0a 20 65 6e 64 73 77 0a | 20 73 68 69 66 74 0a 65 |. endsw.| shift.e|
|00003590| 6e 64 0a 69 66 28 20 24 | 3f 73 6f 75 72 63 65 20 |nd.if( $|?source |
|000035a0| 3d 3d 20 30 20 29 74 68 | 65 6e 0a 20 65 63 68 6f |== 0 )th|en. echo|
|000035b0| 20 6e 6f 20 69 6e 70 75 | 74 20 66 69 6c 65 20 73 | no inpu|t file s|
|000035c0| 70 65 63 69 66 69 65 64 | 0a 20 65 78 69 74 0a 65 |pecified|. exit.e|
|000035d0| 6c 73 65 20 69 66 28 20 | 21 20 2d 66 20 24 73 6f |lse if( |! -f $so|
|000035e0| 75 72 63 65 20 29 74 68 | 65 6e 0a 20 65 63 68 6f |urce )th|en. echo|
|000035f0| 20 24 73 6f 75 72 63 65 | 20 6e 6f 74 20 66 6f 75 | $source| not fou|
|00003600| 6e 64 0a 20 65 78 69 74 | 0a 65 6c 73 65 20 69 66 |nd. exit|.else if|
|00003610| 28 20 60 68 65 61 64 20 | 2d 31 20 24 73 6f 75 72 |( `head |-1 $sour|
|00003620| 63 65 20 7c 20 67 72 65 | 70 20 27 5e 25 5c 5c 21 |ce | gre|p '^%\\!|
|00003630| 27 20 7c 20 77 63 20 2d | 6c 60 20 3d 3d 20 30 29 |' | wc -|l` == 0)|
|00003640| 74 68 65 6e 0a 20 65 63 | 68 6f 20 24 73 6f 75 72 |then. ec|ho $sour|
|00003650| 63 65 20 69 73 20 6e 6f | 74 20 20 61 20 70 6f 73 |ce is no|t a pos|
|00003660| 74 73 63 72 69 70 74 20 | 66 69 6c 65 0a 20 65 78 |tscript |file. ex|
|00003670| 69 74 0a 65 6e 64 69 66 | 0a 69 66 28 20 24 64 65 |it.endif|.if( $de|
|00003680| 73 74 64 69 72 20 3d 3d | 20 73 74 64 6f 75 74 20 |stdir ==| stdout |
|00003690| 29 74 68 65 6e 0a 20 73 | 65 74 20 71 75 69 65 74 |)then. s|et quiet|
|000036a0| 0a 20 69 66 28 20 24 3f | 6c 6f 67 66 69 6c 65 20 |. if( $?|logfile |
|000036b0| 3d 3d 20 30 20 29 73 65 | 74 20 6c 6f 67 66 69 6c |== 0 )se|t logfil|
|000036c0| 65 20 3d 20 70 73 32 65 | 70 73 2d 6d 61 63 2e 6c |e = ps2e|ps-mac.l|
|000036d0| 6f 67 20 20 0a 65 6e 64 | 69 66 0a 69 66 28 20 24 |og .end|if.if( $|
|000036e0| 3f 65 72 72 6f 72 20 3d | 3d 20 31 20 26 26 20 24 |?error =|= 1 && $|
|000036f0| 3f 6c 6f 67 66 69 6c 65 | 20 3d 3d 20 31 20 29 74 |?logfile| == 1 )t|
|00003700| 68 65 6e 0a 20 72 6d 20 | 2d 66 20 24 6c 6f 67 66 |hen. rm |-f $logf|
|00003710| 69 6c 65 0a 20 73 65 74 | 20 65 72 72 6f 72 20 3d |ile. set| error =|
|00003720| 20 28 20 24 65 72 72 6f | 72 20 2d 6c 6f 67 20 24 | ( $erro|r -log $|
|00003730| 6c 6f 67 66 69 6c 65 20 | 29 0a 65 6e 64 69 66 0a |logfile |).endif.|
|00003740| 69 66 28 20 24 3f 65 72 | 72 6f 72 20 3d 3d 20 30 |if( $?er|ror == 0|
|00003750| 20 29 73 65 74 20 65 72 | 72 6f 72 20 3d 20 65 72 | )set er|ror = er|
|00003760| 5f 65 63 68 6f 20 20 20 | 20 20 20 20 20 20 20 20 |_echo | |
|00003770| 20 20 20 20 20 20 23 23 | 64 65 62 75 67 0a 69 66 | ##|debug.if|
|00003780| 28 20 22 60 77 68 69 63 | 68 20 24 65 72 72 6f 72 |( "`whic|h $error|
|00003790| 5b 31 5d 20 7c 20 77 63 | 20 2d 77 60 22 20 21 3d |[1] | wc| -w`" !=|
|000037a0| 20 31 20 29 67 6f 74 6f | 20 65 72 72 6f 72 6f 6b | 1 )goto| errorok|
|000037b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 74 | | #t|
|000037c0| 68 65 6e 20 20 20 20 20 | 23 23 64 65 62 75 67 0a |hen |##debug.|
|000037d0| 20 65 63 68 6f 20 65 72 | 72 6f 72 2c 20 24 65 72 | echo er|ror, $er|
|000037e0| 72 6f 72 5b 31 5d 20 69 | 73 20 6e 6f 74 20 6f 6e |ror[1] i|s not on|
|000037f0| 20 79 6f 75 72 20 70 61 | 74 68 0a 20 69 66 28 20 | your pa|th. if( |
|00003800| 22 60 77 68 69 63 68 20 | 73 74 5f 65 63 68 6f 20 |"`which |st_echo |
|00003810| 7c 20 77 63 20 2d 77 60 | 22 20 21 3d 20 31 20 29 || wc -w`|" != 1 )|
|00003820| 74 68 65 6e 0a 20 20 73 | 65 74 20 65 72 72 6f 72 |then. s|et error|
|00003830| 20 3d 20 73 74 5f 65 63 | 68 6f 20 0a 20 65 6c 73 | = st_ec|ho . els|
|00003840| 65 0a 20 20 65 63 68 6f | 20 66 61 74 61 6c 20 65 |e. echo| fatal e|
|00003850| 72 72 6f 72 2c 20 73 74 | 5f 65 63 68 6f 20 69 73 |rror, st|_echo is|
|00003860| 20 6e 6f 74 20 6f 6e 20 | 79 6f 75 72 20 70 61 74 | not on |your pat|
|00003870| 68 20 65 69 74 68 65 72 | 0a 20 20 65 78 69 74 0a |h either|. exit.|
|00003880| 20 65 6e 64 69 66 20 20 | 20 20 20 20 20 20 20 20 | endif | |
|00003890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000038a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000038b0| 20 20 20 20 20 20 20 23 | 23 64 65 62 75 67 0a 65 | #|#debug.e|
|000038c0| 72 72 6f 72 6f 6b 3a 20 | 20 23 65 6e 64 69 66 0a |rrorok: | #endif.|
|000038d0| 73 65 74 20 65 72 72 6f | 72 20 3d 20 28 20 24 65 |set erro|r = ( $e|
|000038e0| 72 72 6f 72 20 2d 6f 66 | 66 20 24 64 65 62 75 67 |rror -of|f $debug|
|000038f0| 6c 65 76 20 29 0a 69 66 | 28 20 24 64 65 62 75 67 |lev ).if|( $debug|
|00003900| 6c 65 76 20 3e 3d 20 34 | 20 29 74 68 65 6e 20 20 |lev >= 4| )then |
|00003910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003920| 20 20 20 20 20 20 20 20 | 20 23 23 64 65 62 75 67 | | ##debug|
|00003930| 0a 20 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |. $error| -level |
|00003940| 34 20 73 68 65 6c 6c 20 | 76 61 72 69 61 62 6c 65 |4 shell |variable|
|00003950| 73 2e 2e 2e 20 20 20 20 | 20 20 20 20 20 23 23 64 |s... | ##d|
|00003960| 65 62 75 67 0a 20 73 65 | 74 20 7c 20 24 65 72 72 |ebug. se|t | $err|
|00003970| 6f 72 20 2d 63 61 74 20 | 2d 6c 65 76 65 6c 20 34 |or -cat |-level 4|
|00003980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003990| 20 20 23 23 64 65 62 75 | 67 0a 20 24 65 72 72 6f | ##debu|g. $erro|
|000039a0| 72 20 2d 6c 65 76 65 6c | 20 34 20 20 65 6e 76 69 |r -level| 4 envi|
|000039b0| 72 6f 6e 6d 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |ronment |variable|
|000039c0| 73 2e 2e 2e 20 20 20 23 | 23 64 65 62 75 67 0a 20 |s... #|#debug. |
|000039d0| 70 72 69 6e 74 65 6e 76 | 20 7c 20 24 65 72 72 6f |printenv| | $erro|
|000039e0| 72 20 2d 63 61 74 20 2d | 6c 65 76 65 6c 20 34 20 |r -cat -|level 4 |
|000039f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 23 64 65 | | ##de|
|00003a00| 62 75 67 0a 20 24 65 72 | 72 6f 72 20 2d 6c 65 76 |bug. $er|ror -lev|
|00003a10| 65 6c 20 34 20 20 64 69 | 72 65 63 74 6f 72 79 20 |el 4 di|rectory |
|00003a20| 6c 69 73 74 69 6e 67 2e | 2e 2e 20 20 20 20 20 20 |listing.|.. |
|00003a30| 20 23 23 64 65 62 75 67 | 0a 20 2f 62 69 6e 2f 6c | ##debug|. /bin/l|
|00003a40| 73 20 2d 6c 20 7c 20 24 | 65 72 72 6f 72 20 2d 63 |s -l | $|error -c|
|00003a50| 61 74 20 2d 6c 65 76 65 | 6c 20 34 20 20 20 20 20 |at -leve|l 4 |
|00003a60| 20 20 20 20 20 20 23 23 | 64 65 62 75 67 0a 65 6e | ##|debug.en|
|00003a70| 64 69 66 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |dif | |
|00003a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003aa0| 20 20 20 20 23 23 64 65 | 62 75 67 0a 69 66 28 20 | ##de|bug.if( |
|00003ab0| 24 3f 70 73 32 65 70 73 | 64 69 72 20 3d 3d 20 31 |$?ps2eps|dir == 1|
|00003ac0| 20 29 74 68 65 6e 0a 20 | 73 65 74 20 70 61 74 68 | )then. |set path|
|00003ad0| 20 3d 20 28 20 24 70 73 | 32 65 70 73 64 69 72 20 | = ( $ps|2epsdir |
|00003ae0| 24 70 61 74 68 20 29 0a | 65 6e 64 69 66 0a 73 65 |$path ).|endif.se|
|00003af0| 74 20 70 73 66 69 6c 65 | 20 3d 20 20 24 73 6f 75 |t psfile| = $sou|
|00003b00| 72 63 65 3a 74 20 23 6f | 72 69 67 69 6e 61 6c 20 |rce:t #o|riginal |
|00003b10| 66 69 6c 65 20 77 69 74 | 68 6f 75 74 20 70 61 74 |file wit|hout pat|
|00003b20| 68 6e 61 6d 65 0a 73 65 | 74 20 6e 61 6d 65 20 3d |hname.se|t name =|
|00003b30| 20 24 70 73 66 69 6c 65 | 3a 72 20 20 20 20 23 72 | $psfile|:r #r|
|00003b40| 6f 6f 74 20 6e 61 6d 65 | 20 28 20 2e 70 73 20 72 |oot name| ( .ps r|
|00003b50| 65 6d 6f 76 65 64 20 29 | 0a 24 65 72 72 6f 72 20 |emoved )|.$error |
|00003b60| 2d 6c 65 76 65 6c 20 32 | 20 20 72 65 61 64 69 6e |-level 2| readin|
|00003b70| 67 20 24 73 6f 75 72 63 | 65 20 74 6f 20 63 72 65 |g $sourc|e to cre|
|00003b80| 61 74 65 20 24 7b 6e 61 | 6d 65 7d 2e 65 70 73 2e |ate ${na|me}.eps.|
|00003b90| 62 69 6e 20 23 23 64 65 | 62 75 67 0a 73 65 74 20 |bin ##de|bug.set |
|00003ba0| 70 70 6d 20 3d 20 24 7b | 6e 61 6d 65 7d 2e 70 70 |ppm = ${|name}.pp|
|00003bb0| 6d 20 20 20 23 67 68 6f | 73 74 73 63 72 69 70 74 |m #gho|stscript|
|00003bc0| 20 6f 75 74 70 75 74 0a | 73 65 74 20 65 70 73 20 | output.|set eps |
|00003bd0| 3d 20 20 24 7b 6e 61 6d | 65 7d 2e 65 70 73 20 20 |= ${nam|e}.eps |
|00003be0| 23 6e 61 6d 65 20 6f 66 | 20 6d 61 63 20 66 69 6c |#name of| mac fil|
|00003bf0| 65 20 74 6f 20 62 65 20 | 63 72 65 61 74 65 64 0a |e to be |created.|
|00003c00| 73 65 74 20 70 69 63 74 | 20 3d 20 24 7b 65 70 73 |set pict| = ${eps|
|00003c10| 7d 2e 70 69 63 74 20 20 | 23 70 69 63 74 20 64 61 |}.pict |#pict da|
|00003c20| 74 61 20 6f 75 74 70 75 | 74 20 62 79 20 70 70 6d |ta outpu|t by ppm|
|00003c30| 74 6f 70 69 63 74 0a 73 | 65 74 20 64 61 74 20 3d |topict.s|et dat =|
|00003c40| 20 24 7b 65 70 73 7d 2e | 70 73 20 20 20 20 20 23 | ${eps}.|ps #|
|00003c50| 64 61 74 61 20 66 6f 72 | 6b 2c 20 25 25 62 6f 75 |data for|k, %%bou|
|00003c60| 6e 64 69 6e 20 62 6f 78 | 20 61 64 64 65 64 20 61 |ndin box| added a|
|00003c70| 6e 64 20 6c 69 6e 65 20 | 65 6e 64 73 20 63 68 61 |nd line |ends cha|
|00003c80| 6e 67 65 64 0a 73 65 74 | 20 62 69 6e 20 3d 20 24 |nged.set| bin = $|
|00003c90| 7b 65 70 73 7d 2e 62 69 | 6e 20 20 20 20 23 6d 61 |{eps}.bi|n #ma|
|00003ca0| 63 62 69 6e 61 72 79 20 | 66 69 6c 65 0a 73 65 74 |cbinary |file.set|
|00003cb0| 20 73 61 76 65 20 3d 20 | 24 7b 70 69 63 74 7d 2d | save = |${pict}-|
|00003cc0| 73 61 76 65 20 23 74 65 | 6d 70 6f 72 61 72 79 20 |save #te|mporary |
|00003cd0| 63 6f 70 79 20 6f 66 20 | 6f 72 69 67 69 6e 61 6c |copy of |original|
|00003ce0| 0a 73 65 74 20 66 6c 73 | 20 3d 20 28 20 20 24 65 |.set fls| = ( $e|
|00003cf0| 70 73 20 24 70 70 6d 20 | 24 70 69 63 74 20 24 64 |ps $ppm |$pict $d|
|00003d00| 61 74 20 24 62 69 6e 20 | 24 73 61 76 65 20 29 0a |at $bin |$save ).|
|00003d10| 73 65 74 20 6e 70 20 3d | 20 31 0a 77 68 69 6c 65 |set np =| 1.while|
|00003d20| 28 20 2d 66 20 24 7b 6e | 61 6d 65 7d 2e 24 7b 6e |( -f ${n|ame}.${n|
|00003d30| 70 7d 70 70 6d 20 7c 7c | 20 24 6e 70 20 3c 20 34 |p}ppm ||| $np < 4|
|00003d40| 20 29 0a 20 73 65 74 20 | 66 6c 73 20 3d 20 28 20 | ). set |fls = ( |
|00003d50| 20 24 66 6c 73 20 24 7b | 6e 61 6d 65 7d 2e 24 7b | $fls ${|name}.${|
|00003d60| 6e 70 7d 70 70 6d 20 29 | 0a 20 40 20 6e 70 20 3d |np}ppm )|. @ np =|
|00003d70| 20 24 6e 70 20 2b 20 31 | 0a 65 6e 64 0a 73 65 74 | $np + 1|.end.set|
|00003d80| 20 64 65 73 74 72 6f 79 | 0a 66 6f 72 65 61 63 68 | destroy|.foreach|
|00003d90| 20 69 20 28 20 24 66 6c | 73 20 29 0a 20 69 66 28 | i ( $fl|s ). if(|
|00003da0| 20 2d 66 20 24 69 20 29 | 74 68 65 6e 0a 20 20 69 | -f $i )|then. i|
|00003db0| 66 28 20 24 3f 71 75 69 | 65 74 20 3d 3d 20 30 20 |f( $?qui|et == 0 |
|00003dc0| 29 65 63 68 6f 20 24 69 | 20 77 69 6c 6c 20 62 65 |)echo $i| will be|
|00003dd0| 20 6f 76 65 72 20 77 72 | 69 74 74 65 6e 20 6f 72 | over wr|itten or|
|00003de0| 20 64 65 6c 65 74 65 64 | 0a 20 20 73 65 74 20 64 | deleted|. set d|
|00003df0| 65 73 74 72 6f 79 20 3d | 20 28 20 24 64 65 73 74 |estroy =| ( $dest|
|00003e00| 72 6f 79 20 24 69 20 29 | 0a 20 65 6e 64 69 66 0a |roy $i )|. endif.|
|00003e10| 65 6e 64 0a 73 65 74 20 | 71 20 3d 20 79 0a 69 66 |end.set |q = y.if|
|00003e20| 28 20 22 24 64 65 73 74 | 72 6f 79 22 20 21 3d 20 |( "$dest|roy" != |
|00003e30| 22 22 20 26 26 20 24 3f | 71 75 69 65 74 20 3d 3d |"" && $?|quiet ==|
|00003e40| 20 20 30 20 29 74 68 65 | 6e 0a 20 65 63 68 6f 20 | 0 )the|n. echo |
|00003e50| 2d 6e 20 22 63 6f 6e 74 | 69 6e 75 65 20 79 2f 6e |-n "cont|inue y/n|
|00003e60| 3f 20 22 0a 20 73 65 74 | 20 71 20 3d 20 24 3c 0a |? ". set| q = $<.|
|00003e70| 65 6e 64 69 66 0a 69 66 | 28 20 24 71 20 21 3d 20 |endif.if|( $q != |
|00003e80| 79 20 29 65 78 69 74 0a | 66 6f 72 65 61 63 68 20 |y )exit.|foreach |
|00003e90| 69 20 28 20 24 64 65 73 | 74 72 6f 79 20 29 0a 20 |i ( $des|troy ). |
|00003ea0| 24 65 72 72 6f 72 20 2d | 6c 65 76 65 6c 20 31 20 |$error -|level 1 |
|00003eb0| 72 65 6d 6f 76 69 6e 67 | 20 24 69 20 2d 6c 65 76 |removing| $i -lev|
|00003ec0| 65 6c 20 33 20 22 60 2f | 62 69 6e 2f 6c 73 20 2d |el 3 "`/|bin/ls -|
|00003ed0| 6c 20 24 69 60 22 20 23 | 23 64 65 62 75 67 0a 20 |l $i`" #|#debug. |
|00003ee0| 72 6d 20 2d 66 20 24 69 | 0a 65 6e 64 0a 69 66 28 |rm -f $i|.end.if(|
|00003ef0| 20 24 70 73 66 69 6c 65 | 20 21 3d 20 24 73 6f 75 | $psfile| != $sou|
|00003f00| 72 63 65 20 29 63 70 20 | 24 73 6f 75 72 63 65 20 |rce )cp |$source |
|00003f10| 24 70 73 66 69 6c 65 0a | 69 66 28 20 24 3f 77 69 |$psfile.|if( $?wi|
|00003f20| 64 65 6e 62 6f 78 20 3d | 3d 20 30 20 7c 7c 20 24 |denbox =|= 0 || $|
|00003f30| 3f 62 62 69 6e 66 6f 20 | 3d 3d 20 31 20 29 67 6f |?bbinfo |== 1 )go|
|00003f40| 74 6f 20 6e 6f 62 62 6f | 78 0a 23 20 64 6f 20 77 |to nobbo|x.# do w|
|00003f50| 65 20 6e 65 65 64 20 74 | 6f 20 6c 6f 6f 6b 20 66 |e need t|o look f|
|00003f60| 75 72 74 68 65 72 20 74 | 68 61 6e 20 32 30 20 6c |urther t|han 20 l|
|00003f70| 69 6e 65 73 3f 0a 73 65 | 74 20 62 62 69 6e 66 6f |ines?.se|t bbinfo|
|00003f80| 20 3d 20 60 68 65 61 64 | 20 2d 32 30 20 24 70 73 | = `head| -20 $ps|
|00003f90| 66 69 6c 65 20 7c 20 67 | 72 65 70 20 27 25 25 42 |file | g|rep '%%B|
|00003fa0| 6f 75 6e 64 69 6e 67 42 | 6f 78 3a 27 20 7c 20 68 |oundingB|ox:' | h|
|00003fb0| 65 61 64 20 2d 31 20 7c | 20 73 65 64 20 2d 65 20 |ead -1 || sed -e |
|00003fc0| 27 73 2f 25 25 42 6f 75 | 6e 64 69 6e 67 42 6f 78 |'s/%%Bou|ndingBox|
|00003fd0| 3a 2f 20 2f 27 60 0a 69 | 66 28 20 24 23 62 62 69 |:/ /'`.i|f( $#bbi|
|00003fe0| 6e 66 6f 20 3d 3d 20 20 | 30 20 29 67 6f 74 6f 20 |nfo == |0 )goto |
|00003ff0| 6e 6f 62 62 6f 78 0a 69 | 66 28 20 60 65 63 68 6f |nobbox.i|f( `echo|
|00004000| 20 24 62 62 69 6e 66 6f | 20 7c 20 67 72 65 70 20 | $bbinfo| | grep |
|00004010| 61 74 65 6e 64 20 7c 20 | 77 63 20 2d 6c 60 20 21 |atend | |wc -l` !|
|00004020| 3d 20 30 20 29 74 68 65 | 6e 0a 20 24 65 72 72 6f |= 0 )the|n. $erro|
|00004030| 72 20 2d 6c 65 76 65 6c | 20 31 20 6c 6f 6f 6b 69 |r -level| 1 looki|
|00004040| 6e 67 20 66 6f 72 20 25 | 25 42 6f 75 6e 64 69 6e |ng for %|%Boundin|
|00004050| 67 42 6f 78 20 61 74 20 | 74 68 65 20 65 6e 64 20 |gBox at |the end |
|00004060| 6f 66 20 74 68 65 20 66 | 69 6c 65 0a 20 73 65 74 |of the f|ile. set|
|00004070| 20 62 62 69 6e 66 6f 20 | 3d 20 60 63 61 74 20 24 | bbinfo |= `cat $|
|00004080| 70 73 66 69 6c 65 20 7c | 20 67 72 65 70 20 27 25 |psfile || grep '%|
|00004090| 25 42 6f 75 6e 64 69 6e | 67 42 6f 78 3a 27 20 7c |%Boundin|gBox:' ||
|000040a0| 20 74 61 69 6c 20 2d 31 | 20 7c 20 73 65 64 20 2d | tail -1| | sed -|
|000040b0| 65 20 27 73 2f 25 25 42 | 6f 75 6e 64 69 6e 67 42 |e 's/%%B|oundingB|
|000040c0| 6f 78 3a 2f 20 2f 27 60 | 20 20 0a 20 73 65 74 20 |ox:/ /'`| . set |
|000040d0| 61 70 70 65 6e 64 0a 65 | 6e 64 69 66 0a 69 66 28 |append.e|ndif.if(|
|000040e0| 20 24 23 62 62 69 6e 66 | 6f 20 21 3d 20 34 20 29 | $#bbinf|o != 4 )|
|000040f0| 74 68 65 6e 0a 20 24 65 | 72 72 6f 72 20 2d 6c 65 |then. $e|rror -le|
|00004100| 76 65 6c 20 31 20 73 65 | 65 6d 73 20 74 6f 20 62 |vel 1 se|ems to b|
|00004110| 65 20 61 20 25 25 42 6f | 75 6e 64 69 6e 67 42 6f |e a %%Bo|undingBo|
|00004120| 78 20 6c 69 6e 65 20 62 | 75 74 20 74 68 65 72 65 |x line b|ut there|
|00004130| 20 69 73 20 61 20 70 72 | 6f 62 6c 65 6d 20 73 6f | is a pr|oblem so|
|00004140| 20 69 74 20 77 69 6c 6c | 20 62 65 20 69 67 6e 6f | it will| be igno|
|00004150| 72 65 64 20 24 62 62 69 | 6e 66 6f 0a 20 73 65 74 |red $bbi|nfo. set|
|00004160| 20 62 62 69 6e 66 6f 20 | 3d 20 28 20 29 0a 20 67 | bbinfo |= ( ). g|
|00004170| 6f 74 6f 20 6e 6f 62 62 | 6f 78 0a 65 6e 64 69 66 |oto nobb|ox.endif|
|00004180| 0a 65 63 68 6f 20 24 62 | 62 69 6e 66 6f 20 20 7c |.echo $b|binfo ||
|00004190| 20 67 72 65 70 20 27 5c | 2e 27 0a 69 66 28 20 60 | grep '\|.'.if( `|
|000041a0| 65 63 68 6f 20 24 62 62 | 69 6e 66 6f 20 7c 20 67 |echo $bb|info | g|
|000041b0| 72 65 70 20 27 5c 2e 27 | 20 7c 20 77 63 20 2d 6c |rep '\.'| | wc -l|
|000041c0| 60 20 21 3d 20 30 20 29 | 74 68 65 6e 0a 20 24 65 |` != 0 )|then. $e|
|000041d0| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 31 20 62 6f |rror -le|vel 1 bo|
|000041e0| 75 6e 64 69 6e 67 20 62 | 6f 78 20 63 6f 6e 74 61 |unding b|ox conta|
|000041f0| 69 6e 73 20 6e 6f 6e 2d | 69 6e 74 65 67 65 72 73 |ins non-|integers|
|00004200| 20 2d 2d 20 74 72 79 69 | 6e 67 20 74 6f 20 66 69 | -- tryi|ng to fi|
|00004210| 78 0a 20 24 65 72 72 6f | 72 20 2d 6e 20 2d 6c 65 |x. $erro|r -n -le|
|00004220| 76 65 6c 20 32 20 24 62 | 62 69 6e 66 6f 0a 20 66 |vel 2 $b|binfo. f|
|00004230| 6f 72 65 61 63 68 20 6a | 6a 20 28 20 31 20 32 20 |oreach j|j ( 1 2 |
|00004240| 33 20 34 20 29 0a 20 20 | 73 65 74 20 69 62 62 20 |3 4 ). |set ibb |
|00004250| 3d 20 60 65 63 68 6f 20 | 22 24 62 62 69 6e 66 6f |= `echo |"$bbinfo|
|00004260| 5b 24 6a 6a 5d 20 2f 20 | 31 22 20 7c 20 62 63 60 |[$jj] / |1" | bc`|
|00004270| 0a 20 20 20 69 66 28 20 | 24 6a 6a 20 3c 3d 20 32 |. if( |$jj <= 2|
|00004280| 20 29 73 65 74 20 62 62 | 69 6e 66 6f 5b 24 6a 6a | )set bb|info[$jj|
|00004290| 5d 20 3d 20 24 69 62 62 | 0a 20 20 20 69 66 28 20 |] = $ibb|. if( |
|000042a0| 24 6a 6a 20 3e 3d 20 33 | 20 26 26 20 24 62 62 69 |$jj >= 3| && $bbi|
|000042b0| 6e 66 6f 5b 24 6a 6a 5d | 20 21 3d 20 24 69 62 62 |nfo[$jj]| != $ibb|
|000042c0| 20 29 40 20 62 62 69 6e | 66 6f 5b 24 6a 6a 5d 20 | )@ bbin|fo[$jj] |
|000042d0| 3d 20 24 69 62 62 20 2b | 20 31 0a 20 65 6e 64 0a |= $ibb +| 1. end.|
|000042e0| 20 73 65 74 20 61 70 70 | 65 6e 64 0a 20 24 65 72 | set app|end. $er|
|000042f0| 72 6f 72 20 2d 6c 65 76 | 65 6c 20 32 20 22 20 74 |ror -lev|el 2 " t|
|00004300| 6f 20 22 20 24 62 62 69 | 6e 66 6f 0a 65 6e 64 69 |o " $bbi|nfo.endi|
|00004310| 66 0a 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |f.$error| -level |
|00004320| 31 20 20 75 73 69 6e 67 | 20 62 6f 75 6e 64 69 6e |1 using| boundin|
|00004330| 67 20 62 6f 78 20 69 6e | 66 6f 72 6d 61 74 69 6f |g box in|formatio|
|00004340| 6e 20 66 72 6f 6d 20 73 | 6f 75 72 63 65 20 66 69 |n from s|ource fi|
|00004350| 6c 65 20 25 25 42 6f 75 | 6e 64 69 6e 67 42 6f 78 |le %%Bou|ndingBox|
|00004360| 3a 20 24 62 62 69 6e 66 | 6f 20 23 23 64 65 62 75 |: $bbinf|o ##debu|
|00004370| 67 0a 69 66 28 60 68 65 | 61 64 20 2d 31 20 24 70 |g.if(`he|ad -1 $p|
|00004380| 73 66 69 6c 65 20 7c 65 | 67 72 65 70 20 27 5e 25 |sfile |e|grep '^%|
|00004390| 5c 5c 21 50 53 2d 41 64 | 6f 62 65 2d 27 20 7c 77 |\\!PS-Ad|obe-' |w|
|000043a0| 63 20 2d 6c 60 20 3d 3d | 20 30 20 29 74 68 65 6e |c -l` ==| 0 )then|
|000043b0| 0a 23 74 68 69 73 20 69 | 73 20 74 68 65 20 6d 69 |.#this i|s the mi|
|000043c0| 6e 69 6d 75 6d 20 68 65 | 61 64 65 72 20 72 65 71 |nimum he|ader req|
|000043d0| 75 69 72 65 64 20 62 79 | 20 6d 73 77 6f 72 64 35 |uired by| msword5|
|000043e0| 20 28 20 79 65 73 20 63 | 61 73 65 20 73 65 6e 73 | ( yes c|ase sens|
|000043f0| 61 74 69 76 65 20 29 0a | 20 24 65 72 72 6f 72 20 |ative ).| $error |
|00004400| 2d 6c 65 76 65 6c 20 32 | 20 22 74 68 65 20 68 65 |-level 2| "the he|
|00004410| 61 64 65 72 20 6f 6e 20 | 74 68 69 73 20 28 20 65 |ader on |this ( e|
|00004420| 70 73 20 29 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |ps ) inp|ut file |
|00004430| 69 73 20 6e 6f 74 20 71 | 75 69 74 65 20 63 6f 72 |is not q|uite cor|
|00004440| 72 65 63 74 20 73 6f 20 | 77 65 20 77 69 6c 6c 20 |rect so |we will |
|00004450| 62 65 20 61 70 70 65 6e | 64 69 6e 67 20 61 20 6e |be appen|ding a n|
|00004460| 65 77 20 6f 6e 65 22 0a | 20 73 65 74 20 61 70 70 |ew one".| set app|
|00004470| 65 6e 64 0a 65 6e 64 69 | 66 0a 69 66 28 20 24 3f |end.endi|f.if( $?|
|00004480| 77 69 64 65 6e 62 6f 78 | 62 62 20 3d 3d 20 30 20 |widenbox|bb == 0 |
|00004490| 29 73 65 74 20 77 69 64 | 65 6e 62 6f 78 62 62 20 |)set wid|enboxbb |
|000044a0| 3d 20 20 24 77 69 64 65 | 6e 62 6f 78 0a 73 65 74 |= $wide|nbox.set|
|000044b0| 20 77 69 64 65 6e 62 6f | 78 20 3d 20 24 77 69 64 | widenbo|x = $wid|
|000044c0| 65 6e 62 6f 78 62 62 0a | 69 66 28 20 24 77 69 64 |enboxbb.|if( $wid|
|000044d0| 65 6e 62 6f 78 20 21 3d | 20 30 29 24 65 72 72 6f |enbox !=| 0)$erro|
|000044e0| 72 20 2d 6c 65 76 65 6c | 20 31 20 20 77 69 64 65 |r -level| 1 wide|
|000044f0| 6e 65 64 20 62 79 20 24 | 77 69 64 65 6e 62 6f 78 |ned by $|widenbox|
|00004500| 20 23 23 64 65 62 75 67 | 0a 6e 6f 62 62 6f 78 3a | ##debug|.nobbox:|
|00004510| 0a 69 66 28 20 24 3f 68 | 61 76 65 6d 61 63 70 73 |.if( $?h|avemacps|
|00004520| 20 3d 3d 20 31 20 26 26 | 20 60 67 72 65 70 20 27 | == 1 &&| `grep '|
|00004530| 25 25 49 6e 63 6c 75 64 | 65 50 72 6f 63 53 65 74 |%%Includ|eProcSet|
|00004540| 3a 20 22 28 41 70 70 6c | 65 44 69 63 74 20 6d 64 |: "(Appl|eDict md|
|00004550| 29 22 27 20 24 70 73 66 | 69 6c 65 20 7c 20 77 63 |)"' $psf|ile | wc|
|00004560| 20 2d 6c 60 20 21 3d 20 | 30 20 29 74 68 65 6e 0a | -l` != |0 )then.|
|00004570| 20 6d 76 20 24 70 73 66 | 69 6c 65 20 24 73 61 76 | mv $psf|ile $sav|
|00004580| 65 0a 20 24 65 72 72 6f | 72 20 2d 6c 65 76 65 6c |e. $erro|r -level|
|00004590| 20 31 20 20 72 75 6e 6e | 69 6e 67 20 6d 61 63 70 | 1 runn|ing macp|
|000045a0| 73 20 6f 6e 20 66 69 6c | 65 20 2d 2d 20 6f 6e 6c |s on fil|e -- onl|
|000045b0| 79 20 66 6f 72 20 67 68 | 6f 73 74 73 63 72 69 70 |y for gh|ostscrip|
|000045c0| 74 20 23 23 64 65 62 75 | 67 0a 20 6d 61 63 70 73 |t ##debu|g. macps|
|000045d0| 20 24 73 61 76 65 20 3e | 20 24 70 73 66 69 6c 65 | $save >| $psfile|
|000045e0| 0a 20 73 65 74 20 6d 61 | 63 70 73 65 64 0a 65 6e |. set ma|cpsed.en|
|000045f0| 64 69 66 0a 69 66 28 20 | 24 3f 64 65 6e 73 69 74 |dif.if( |$?densit|
|00004600| 79 20 3d 3d 20 30 20 29 | 73 65 74 20 64 65 6e 73 |y == 0 )|set dens|
|00004610| 69 74 79 20 3d 20 37 32 | 0a 24 65 72 72 6f 72 20 |ity = 72|.$error |
|00004620| 2d 6c 65 76 65 6c 20 31 | 20 20 72 75 6e 6e 69 6e |-level 1| runnin|
|00004630| 67 20 67 68 6f 73 74 73 | 63 72 69 70 74 2e 2e 2e |g ghosts|cript...|
|00004640| 2e 20 23 23 64 65 62 75 | 67 0a 67 73 20 2d 64 4e |. ##debu|g.gs -dN|
|00004650| 4f 44 49 53 50 4c 41 59 | 20 70 73 74 6f 70 70 6d |ODISPLAY| pstoppm|
|00004660| 2e 70 73 20 3c 3c 20 44 | 47 43 20 7c 20 24 65 72 |.ps << D|GC | $er|
|00004670| 72 6f 72 20 2d 63 61 74 | 20 2d 6c 65 76 65 6c 20 |ror -cat| -level |
|00004680| 33 0a 24 64 65 6e 73 69 | 74 79 20 24 64 65 6e 73 |3.$densi|ty $dens|
|00004690| 69 74 79 20 70 70 6d 73 | 65 74 64 65 6e 73 69 74 |ity ppms|etdensit|
|000046a0| 79 0a 28 24 6e 61 6d 65 | 29 20 24 63 6f 6c 6f 72 |y.($name|) $color|
|000046b0| 73 0a 44 47 43 0a 69 66 | 28 20 2d 66 20 24 70 70 |s.DGC.if|( -f $pp|
|000046c0| 6d 20 26 26 20 21 20 2d | 7a 20 24 70 70 6d 20 29 |m && ! -|z $ppm )|
|000046d0| 67 6f 74 6f 20 67 73 64 | 6f 6e 65 20 23 74 68 65 |goto gsd|one #the|
|000046e0| 6e 0a 20 69 66 28 20 2d | 66 20 24 7b 6e 61 6d 65 |n. if( -|f ${name|
|000046f0| 7d 2e 31 70 70 6d 20 29 | 74 68 65 6e 0a 20 20 73 |}.1ppm )|then. s|
|00004700| 65 74 20 6e 70 61 67 65 | 73 20 3d 20 28 20 24 7b |et npage|s = ( ${|
|00004710| 6e 61 6d 65 7d 2e 2a 70 | 70 6d 20 29 0a 20 20 24 |name}.*p|pm ). $|
|00004720| 65 72 72 6f 72 20 2d 6c | 65 76 65 6c 20 30 20 73 |error -l|evel 0 s|
|00004730| 6f 72 72 79 2c 20 74 68 | 69 73 20 66 69 6c 65 20 |orry, th|is file |
|00004740| 61 70 70 61 72 65 6e 74 | 6c 79 20 63 6f 6e 74 61 |apparent|ly conta|
|00004750| 69 6e 73 20 24 23 6e 70 | 61 67 65 73 20 70 61 67 |ins $#np|ages pag|
|00004760| 65 73 0a 20 20 24 65 72 | 72 6f 72 20 2d 6c 65 76 |es. $er|ror -lev|
|00004770| 65 6c 20 30 20 79 6f 75 | 20 63 61 6e 20 6e 6f 74 |el 0 you| can not|
|00004780| 20 63 72 65 61 74 65 20 | 6d 75 6c 74 69 20 70 61 | create |multi pa|
|00004790| 67 65 20 65 70 73 2d 70 | 69 63 74 20 66 69 6c 65 |ge eps-p|ict file|
|000047a0| 73 0a 20 20 72 6d 20 2d | 66 20 24 6e 70 61 67 65 |s. rm -|f $npage|
|000047b0| 73 0a 20 65 6c 73 65 0a | 20 20 24 65 72 72 6f 72 |s. else.| $error|
|000047c0| 20 2d 6c 65 76 65 6c 20 | 30 20 66 61 74 61 6c 20 | -level |0 fatal |
|000047d0| 65 72 72 6f 72 2c 20 6e | 6f 20 6f 75 74 70 75 74 |error, n|o output|
|000047e0| 20 66 72 6f 6d 20 67 68 | 6f 73 74 73 63 72 69 70 | from gh|ostscrip|
|000047f0| 74 0a 20 20 69 66 28 20 | 24 64 65 62 75 67 6c 65 |t. if( |$debugle|
|00004800| 76 20 3c 20 33 29 24 65 | 72 72 6f 72 20 2d 6c 65 |v < 3)$e|rror -le|
|00004810| 76 65 6c 20 30 20 72 65 | 2d 72 75 6e 20 75 73 69 |vel 0 re|-run usi|
|00004820| 6e 67 20 2d 64 65 62 75 | 67 20 33 20 6f 72 20 68 |ng -debu|g 3 or h|
|00004830| 69 67 68 65 72 20 74 6f | 20 73 65 65 20 67 68 6f |igher to| see gho|
|00004840| 73 74 73 63 72 69 70 74 | 20 65 72 72 6f 72 73 0a |stscript| errors.|
|00004850| 20 65 6e 64 69 66 0a 20 | 65 78 69 74 0a 67 73 64 | endif. |exit.gsd|
|00004860| 6f 6e 65 3a 20 23 65 6e | 64 69 66 0a 24 65 72 72 |one: #en|dif.$err|
|00004870| 6f 72 20 2d 6c 65 76 65 | 6c 20 31 20 20 67 68 6f |or -leve|l 1 gho|
|00004880| 73 74 73 63 72 69 70 74 | 20 64 6f 6e 65 20 23 23 |stscript| done ##|
|00004890| 64 65 62 75 67 0a 69 66 | 20 28 20 24 3f 6d 61 63 |debug.if| ( $?mac|
|000048a0| 70 73 65 64 20 3d 3d 20 | 31 29 6d 76 20 24 73 61 |psed == |1)mv $sa|
|000048b0| 76 65 20 24 70 73 66 69 | 6c 65 0a 73 65 74 20 74 |ve $psfi|le.set t|
|000048c0| 72 61 6e 73 6c 61 74 65 | 20 3d 20 20 22 74 72 20 |ranslate| = "tr |
|000048d0| 27 5c 30 31 32 27 20 27 | 5c 30 31 35 27 22 0a 69 |'\012' '|\015'".i|
|000048e0| 66 28 20 24 3f 6e 6f 74 | 72 61 6e 73 6c 61 74 65 |f( $?not|ranslate|
|000048f0| 20 3d 3d 20 31 29 73 65 | 74 20 74 72 61 6e 73 6c | == 1)se|t transl|
|00004900| 61 74 65 20 3d 20 22 63 | 61 74 20 2d 22 0a 73 77 |ate = "c|at -".sw|
|00004910| 69 74 63 68 20 28 20 24 | 3f 77 69 64 65 6e 62 6f |itch ( $|?widenbo|
|00004920| 78 20 29 0a 20 63 61 73 | 65 20 31 0a 20 20 69 66 |x ). cas|e 1. if|
|00004930| 28 20 24 23 62 62 69 6e | 66 6f 20 21 3d 20 34 20 |( $#bbin|fo != 4 |
|00004940| 29 74 68 65 6e 0a 20 20 | 20 69 66 28 20 24 63 6f |)then. | if( $co|
|00004950| 6c 6f 72 73 20 21 3d 20 | 70 70 6d 31 72 75 6e 20 |lors != |ppm1run |
|00004960| 29 67 6f 74 6f 20 63 6f | 6c 6f 72 65 72 72 6f 72 |)goto co|lorerror|
|00004970| 0a 20 20 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |. $err|or -leve|
|00004980| 6c 20 31 20 20 67 65 74 | 74 69 6e 67 20 62 6f 75 |l 1 get|ting bou|
|00004990| 6e 64 69 6e 67 20 62 6f | 78 20 69 6e 66 6f 20 66 |nding bo|x info f|
|000049a0| 72 6f 6d 20 70 62 6d 74 | 6f 65 70 73 69 20 23 23 |rom pbmt|oepsi ##|
|000049b0| 64 65 62 75 67 0a 20 20 | 20 73 65 74 20 62 62 69 |debug. | set bbi|
|000049c0| 6e 66 6f 20 20 3d 20 28 | 20 60 70 62 6d 74 6f 65 |nfo = (| `pbmtoe|
|000049d0| 70 73 69 20 24 70 70 6d | 20 7c 20 68 65 61 64 20 |psi $ppm| | head |
|000049e0| 2d 32 20 7c 20 74 61 69 | 6c 20 2d 31 60 20 20 29 |-2 | tai|l -1` )|
|000049f0| 0a 20 20 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |. $err|or -leve|
|00004a00| 6c 20 32 20 70 62 6d 74 | 6f 65 70 73 69 20 73 61 |l 2 pbmt|oepsi sa|
|00004a10| 79 73 20 24 62 62 69 6e | 66 6f 20 23 23 64 65 62 |ys $bbin|fo ##deb|
|00004a20| 75 67 0a 20 20 20 40 20 | 62 62 69 6e 66 6f 5b 33 |ug. @ |bbinfo[3|
|00004a30| 5d 20 3d 20 24 62 62 69 | 6e 66 6f 5b 33 5d 20 2d |] = $bbi|nfo[3] -|
|00004a40| 20 31 20 20 20 23 20 49 | 20 74 68 69 6e 6b 20 74 | 1 # I| think t|
|00004a50| 68 65 20 70 62 6d 74 6f | 65 70 73 69 20 62 6f 78 |he pbmto|epsi box|
|00004a60| 20 69 73 20 0a 20 20 20 | 40 20 62 62 69 6e 66 6f | is . |@ bbinfo|
|00004a70| 5b 34 5d 20 3d 20 24 62 | 62 69 6e 66 6f 5b 34 5d |[4] = $b|binfo[4]|
|00004a80| 20 2b 20 31 20 20 20 23 | 20 6e 6f 74 20 71 75 69 | + 1 #| not qui|
|00004a90| 74 65 20 63 6f 72 72 65 | 63 74 20 20 20 0a 20 20 |te corre|ct . |
|00004aa0| 20 24 65 72 72 6f 72 20 | 2d 6c 65 76 65 6c 20 32 | $error |-level 2|
|00004ab0| 20 20 22 27 66 69 78 65 | 64 27 20 74 6f 20 62 65 | "'fixe|d' to be|
|00004ac0| 20 22 20 24 62 62 69 6e | 66 6f 20 23 23 64 65 62 | " $bbin|fo ##deb|
|00004ad0| 75 67 0a 20 20 20 73 68 | 69 66 74 20 62 62 69 6e |ug. sh|ift bbin|
|00004ae0| 66 6f 0a 20 20 20 73 65 | 74 20 61 70 70 65 6e 64 |fo. se|t append|
|00004af0| 0a 20 20 65 6e 64 69 66 | 0a 20 20 77 68 69 6c 65 |. endif|. while|
|00004b00| 28 20 24 77 69 64 65 6e | 62 6f 78 20 3e 20 30 20 |( $widen|box > 0 |
|00004b10| 26 26 20 28 20 24 62 62 | 69 6e 66 6f 5b 31 5d 20 |&& ( $bb|info[1] |
|00004b20| 2d 20 24 77 69 64 65 6e | 62 6f 78 20 3c 20 30 20 |- $widen|box < 0 |
|00004b30| 7c 7c 20 24 62 62 69 6e | 66 6f 5b 32 5d 20 2d 20 ||| $bbin|fo[2] - |
|00004b40| 24 77 69 64 65 6e 62 6f | 78 20 3c 20 30 20 29 20 |$widenbo|x < 0 ) |
|00004b50| 29 0a 20 20 20 24 65 72 | 72 6f 72 20 2d 6c 65 76 |). $er|ror -lev|
|00004b60| 65 6c 20 31 20 20 2d 6e | 20 63 61 6e 74 20 77 69 |el 1 -n| cant wi|
|00004b70| 64 65 6e 20 62 6f 78 20 | 62 79 20 24 77 69 64 65 |den box |by $wide|
|00004b80| 6e 62 6f 78 20 23 23 64 | 65 62 75 67 0a 20 20 20 |nbox ##d|ebug. |
|00004b90| 40 20 77 69 64 65 6e 62 | 6f 78 20 3d 20 24 77 69 |@ widenb|ox = $wi|
|00004ba0| 64 65 6e 62 6f 78 20 2d | 20 31 0a 20 20 20 24 65 |denbox -| 1. $e|
|00004bb0| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 31 20 20 2e |rror -le|vel 1 .|
|00004bc0| 2e 2e 2e 20 75 73 69 6e | 67 20 24 77 69 64 65 6e |... usin|g $widen|
|00004bd0| 62 6f 78 20 23 23 64 65 | 62 75 67 0a 20 20 65 6e |box ##de|bug. en|
|00004be0| 64 0a 20 20 69 66 28 20 | 24 77 69 64 65 6e 62 6f |d. if( |$widenbo|
|00004bf0| 78 20 3e 20 30 20 29 74 | 68 65 6e 0a 20 20 73 65 |x > 0 )t|hen. se|
|00004c00| 74 20 61 70 70 65 6e 64 | 0a 20 20 24 65 72 72 6f |t append|. $erro|
|00004c10| 72 20 2d 6c 65 76 65 6c | 20 31 20 20 77 69 64 65 |r -level| 1 wide|
|00004c20| 6e 69 6e 67 20 62 6f 75 | 6e 64 69 6e 67 20 62 6f |ning bou|nding bo|
|00004c30| 78 20 62 79 20 24 77 69 | 64 65 6e 62 6f 78 20 23 |x by $wi|denbox #|
|00004c40| 23 64 65 62 75 67 0a 20 | 20 40 20 62 62 69 6e 66 |#debug. | @ bbinf|
|00004c50| 6f 5b 31 5d 20 3d 20 24 | 62 62 69 6e 66 6f 5b 31 |o[1] = $|bbinfo[1|
|00004c60| 5d 20 2d 20 24 77 69 64 | 65 6e 62 6f 78 0a 20 20 |] - $wid|enbox. |
|00004c70| 40 20 62 62 69 6e 66 6f | 5b 32 5d 20 3d 20 24 62 |@ bbinfo|[2] = $b|
|00004c80| 62 69 6e 66 6f 5b 32 5d | 20 2d 20 24 77 69 64 65 |binfo[2]| - $wide|
|00004c90| 6e 62 6f 78 0a 20 20 40 | 20 62 62 69 6e 66 6f 5b |nbox. @| bbinfo[|
|00004ca0| 33 5d 20 3d 20 24 62 62 | 69 6e 66 6f 5b 33 5d 20 |3] = $bb|info[3] |
|00004cb0| 2b 20 24 77 69 64 65 6e | 62 6f 78 0a 20 20 40 20 |+ $widen|box. @ |
|00004cc0| 62 62 69 6e 66 6f 5b 34 | 5d 20 3d 20 24 62 62 69 |bbinfo[4|] = $bbi|
|00004cd0| 6e 66 6f 5b 34 5d 20 2b | 20 24 77 69 64 65 6e 62 |nfo[4] +| $widenb|
|00004ce0| 6f 78 0a 20 20 65 6e 64 | 69 66 0a 20 20 69 66 28 |ox. end|if. if(|
|00004cf0| 20 24 3f 6e 6f 73 68 6f | 77 70 61 67 65 20 3d 3d | $?nosho|wpage ==|
|00004d00| 20 31 20 29 73 65 74 20 | 61 70 70 65 6e 64 0a 20 | 1 )set |append. |
|00004d10| 20 69 66 28 20 24 3f 61 | 70 70 65 6e 64 20 3d 3d | if( $?a|ppend ==|
|00004d20| 20 31 20 29 74 68 65 6e | 0a 20 20 20 65 63 68 6f | 1 )then|. echo|
|00004d30| 20 22 25 5c 21 50 53 2d | 41 64 6f 62 65 2d 32 2e | "%\!PS-|Adobe-2.|
|00004d40| 30 20 45 50 53 46 2d 31 | 2e 32 22 20 7c 20 24 74 |0 EPSF-1|.2" | $t|
|00004d50| 72 61 6e 73 6c 61 74 65 | 20 3e 20 24 64 61 74 0a |ranslate| > $dat.|
|00004d60| 20 20 20 65 63 68 6f 20 | 22 25 25 42 6f 75 6e 64 | echo |"%%Bound|
|00004d70| 69 6e 67 42 6f 78 3a 20 | 24 62 62 69 6e 66 6f 22 |ingBox: |$bbinfo"|
|00004d80| 20 7c 20 24 74 72 61 6e | 73 6c 61 74 65 20 3e 3e | | $tran|slate >>|
|00004d90| 20 24 64 61 74 0a 20 20 | 20 24 65 72 72 6f 72 20 | $dat. | $error |
|00004da0| 2d 6c 65 76 65 6c 20 32 | 20 20 77 69 6c 6c 20 61 |-level 2| will a|
|00004db0| 70 70 65 6e 64 20 62 6f | 75 6e 64 69 6e 67 20 62 |ppend bo|unding b|
|00004dc0| 6f 78 20 69 6e 66 6f 20 | 74 6f 20 70 6f 73 74 73 |ox info |to posts|
|00004dd0| 63 69 70 74 20 23 23 64 | 65 62 75 67 0a 20 20 20 |cipt ##d|ebug. |
|00004de0| 69 66 28 20 24 3f 72 65 | 70 6f 72 74 68 65 61 64 |if( $?re|porthead|
|00004df0| 65 72 20 3d 3d 20 30 20 | 29 67 6f 74 6f 20 6e 6f |er == 0 |)goto no|
|00004e00| 72 65 70 20 20 23 74 68 | 65 6e 0a 20 20 20 20 24 |rep #th|en. $|
|00004e10| 65 72 72 6f 72 20 2d 6c | 65 76 65 6c 20 30 20 66 |error -l|evel 0 f|
|00004e20| 69 72 73 74 20 74 77 6f | 20 6c 69 6e 65 73 20 6f |irst two| lines o|
|00004e30| 66 20 74 68 65 20 66 69 | 6c 65 20 73 68 6f 75 6c |f the fi|le shoul|
|00004e40| 64 20 62 65 3a 0a 20 20 | 20 20 24 65 72 72 6f 72 |d be:. | $error|
|00004e50| 20 2d 6c 65 76 65 6c 20 | 30 20 22 25 5c 21 50 53 | -level |0 "%\!PS|
|00004e60| 2d 41 64 6f 62 65 2d 32 | 2e 30 20 45 50 53 46 2d |-Adobe-2|.0 EPSF-|
|00004e70| 31 2e 32 22 0a 20 20 20 | 20 24 65 72 72 6f 72 20 |1.2". | $error |
|00004e80| 2d 6c 65 76 65 6c 20 30 | 20 22 25 25 42 6f 75 6e |-level 0| "%%Boun|
|00004e90| 64 69 6e 67 42 6f 78 3a | 20 24 62 62 69 6e 66 6f |dingBox:| $bbinfo|
|00004ea0| 22 0a 20 20 20 6e 6f 72 | 65 70 3a 20 23 65 6e 64 |". nor|ep: #end|
|00004eb0| 69 66 0a 20 20 65 6c 73 | 65 0a 20 20 20 74 6f 75 |if. els|e. tou|
|00004ec0| 63 68 20 24 64 61 74 0a | 20 20 20 24 65 72 72 6f |ch $dat.| $erro|
|00004ed0| 72 20 2d 6c 65 76 65 6c | 20 32 20 20 70 6f 73 74 |r -level| 2 post|
|00004ee0| 73 63 69 70 74 20 62 6f | 75 6e 64 69 6e 67 20 62 |scipt bo|unding b|
|00004ef0| 6f 78 20 6c 65 66 74 20 | 61 6c 6f 6e 65 20 23 23 |ox left |alone ##|
|00004f00| 64 65 62 75 67 0a 20 20 | 65 6e 64 69 66 0a 20 62 |debug. |endif. b|
|00004f10| 72 65 61 6b 73 77 0a 20 | 64 65 66 61 75 6c 74 0a |reaksw. |default.|
|00004f20| 20 20 69 66 28 20 24 63 | 6f 6c 6f 72 73 20 21 3d | if( $c|olors !=|
|00004f30| 20 70 70 6d 31 72 75 6e | 20 29 67 6f 74 6f 20 63 | ppm1run| )goto c|
|00004f40| 6f 6c 6f 72 65 72 72 6f | 72 0a 20 20 24 65 72 72 |olorerro|r. $err|
|00004f50| 6f 72 20 2d 6c 65 76 65 | 6c 20 31 20 20 77 72 69 |or -leve|l 1 wri|
|00004f60| 74 69 6e 67 20 65 70 73 | 20 68 65 61 64 65 72 20 |ting eps| header |
|00004f70| 75 73 69 6e 67 20 70 62 | 6d 74 6f 65 70 73 69 20 |using pb|mtoepsi |
|00004f80| 64 69 72 65 63 74 6c 79 | 20 23 23 64 65 62 75 67 |directly| ##debug|
|00004f90| 0a 20 20 70 62 6d 74 6f | 65 70 73 69 20 24 70 70 |. pbmto|epsi $pp|
|00004fa0| 6d 20 7c 20 68 65 61 64 | 20 2d 32 20 7c 20 24 74 |m | head| -2 | $t|
|00004fb0| 72 61 6e 73 6c 61 74 65 | 20 3e 20 24 64 61 74 0a |ranslate| > $dat.|
|00004fc0| 20 20 69 66 28 20 24 3f | 20 72 65 70 6f 72 74 68 | if( $?| reporth|
|00004fd0| 65 61 64 65 72 20 3d 3d | 20 31 20 29 70 62 6d 74 |eader ==| 1 )pbmt|
|00004fe0| 6f 65 70 73 69 20 24 70 | 70 6d 20 7c 20 68 65 61 |oepsi $p|pm | hea|
|00004ff0| 64 20 2d 32 20 7c 20 24 | 65 72 72 6f 72 20 2d 6c |d -2 | $|error -l|
|00005000| 65 76 65 6c 20 30 20 2d | 63 61 74 0a 20 62 72 65 |evel 0 -|cat. bre|
|00005010| 61 6b 73 77 0a 65 6e 64 | 73 77 0a 69 66 28 20 24 |aksw.end|sw.if( $|
|00005020| 3f 6e 6f 73 68 6f 77 70 | 61 67 65 20 3d 3d 20 31 |?noshowp|age == 1|
|00005030| 20 29 74 68 65 6e 0a 20 | 65 63 68 6f 20 22 2f 73 | )then. |echo "/s|
|00005040| 68 6f 77 70 61 67 65 20 | 7b 7d 20 64 65 66 22 20 |howpage |{} def" |
|00005050| 7c 20 24 74 72 61 6e 73 | 6c 61 74 65 20 3e 3e 20 || $trans|late >> |
|00005060| 24 64 61 74 0a 20 24 65 | 72 72 6f 72 20 2d 6c 65 |$dat. $e|rror -le|
|00005070| 76 65 6c 20 31 20 20 20 | 22 2f 73 68 6f 77 70 61 |vel 1 |"/showpa|
|00005080| 67 65 20 7b 7d 20 64 65 | 66 22 20 61 64 64 65 64 |ge {} de|f" added|
|00005090| 20 74 6f 20 70 6f 73 74 | 73 63 72 69 70 74 20 20 | to post|script |
|000050a0| 23 23 64 65 62 75 67 0a | 65 6e 64 69 66 0a 69 66 |##debug.|endif.if|
|000050b0| 28 20 24 3f 6e 6f 74 72 | 61 6e 73 66 69 6c 65 20 |( $?notr|ansfile |
|000050c0| 3d 3d 20 31 29 73 65 74 | 20 74 72 61 6e 73 6c 61 |== 1)set| transla|
|000050d0| 74 65 20 3d 20 22 63 61 | 74 20 2d 22 0a 69 66 28 |te = "ca|t -".if(|
|000050e0| 20 22 24 74 72 61 6e 73 | 6c 61 74 65 22 20 21 3d | "$trans|late" !=|
|000050f0| 20 22 63 61 74 20 2d 22 | 29 24 65 72 72 6f 72 20 | "cat -"|)$error |
|00005100| 2d 6c 65 76 65 6c 20 31 | 20 20 74 72 61 6e 73 6c |-level 1| transl|
|00005110| 61 74 69 6e 67 20 6c 69 | 6e 65 20 65 6e 64 69 6e |ating li|ne endin|
|00005120| 67 73 20 6f 6e 20 70 6f | 73 74 73 63 72 69 70 74 |gs on po|stscript|
|00005130| 20 66 69 6c 65 20 23 23 | 64 65 62 75 67 0a 63 61 | file ##|debug.ca|
|00005140| 74 20 24 70 73 66 69 6c | 65 20 20 7c 20 24 74 72 |t $psfil|e | $tr|
|00005150| 61 6e 73 6c 61 74 65 20 | 3e 3e 20 24 64 61 74 0a |anslate |>> $dat.|
|00005160| 69 66 28 20 24 70 73 66 | 69 6c 65 20 21 3d 20 24 |if( $psf|ile != $|
|00005170| 73 6f 75 72 63 65 20 29 | 72 6d 20 2d 66 20 24 70 |source )|rm -f $p|
|00005180| 73 66 69 6c 65 0a 69 66 | 28 20 24 3f 77 69 64 65 |sfile.if|( $?wide|
|00005190| 6e 62 6f 78 20 3d 3d 20 | 31 20 29 74 68 65 6e 0a |nbox == |1 )then.|
|000051a0| 20 40 20 78 77 69 64 65 | 20 3d 20 20 24 62 62 69 | @ xwide| = $bbi|
|000051b0| 6e 66 6f 5b 33 5d 20 2d | 20 24 62 62 69 6e 66 6f |nfo[3] -| $bbinfo|
|000051c0| 5b 31 5d 20 0a 20 40 20 | 79 68 69 20 3d 20 24 62 |[1] . @ |yhi = $b|
|000051d0| 62 69 6e 66 6f 5b 34 5d | 20 2d 20 24 62 62 69 6e |binfo[4]| - $bbin|
|000051e0| 66 6f 5b 32 5d 0a 20 73 | 65 74 20 78 63 75 74 20 |fo[2]. s|et xcut |
|000051f0| 3d 20 24 62 62 69 6e 66 | 6f 5b 31 5d 0a 20 40 20 |= $bbinf|o[1]. @ |
|00005200| 79 63 75 74 20 3d 20 2d | 20 24 79 68 69 20 2b 20 |ycut = -| $yhi + |
|00005210| 24 62 62 69 6e 66 6f 5b | 32 5d 0a 20 24 65 72 72 |$bbinfo[|2]. $err|
|00005220| 6f 72 20 2d 6c 65 76 65 | 6c 20 32 20 20 70 69 63 |or -leve|l 2 pic|
|00005230| 74 20 62 6f 75 6e 64 69 | 6e 67 20 62 6f 78 20 24 |t boundi|ng box $|
|00005240| 62 62 69 6e 66 6f 20 20 | 20 20 20 20 20 20 20 20 |bbinfo | |
|00005250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005260| 20 20 20 23 23 64 65 62 | 75 67 0a 20 73 65 74 20 | ##deb|ug. set |
|00005270| 62 62 65 72 20 3d 20 22 | 66 61 74 61 6c 20 62 6f |bber = "|fatal bo|
|00005280| 75 6e 64 69 6e 67 20 62 | 6f 78 20 65 72 72 6f 72 |unding b|ox error|
|00005290| 22 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |" | |
|000052a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052b0| 20 20 20 23 23 64 65 62 | 75 67 0a 20 69 66 28 20 | ##deb|ug. if( |
|000052c0| 24 78 63 75 74 20 3c 20 | 30 20 29 73 65 74 20 62 |$xcut < |0 )set b|
|000052d0| 62 65 72 20 3d 20 28 20 | 24 62 62 65 72 20 22 3a |ber = ( |$bber ":|
|000052e0| 20 78 20 3d 20 24 78 63 | 75 74 20 6f 75 74 20 6f | x = $xc|ut out o|
|000052f0| 66 20 62 6f 75 6e 64 73 | 22 20 29 20 20 20 20 20 |f bounds|" ) |
|00005300| 20 20 20 23 23 64 65 62 | 75 67 0a 20 69 66 28 20 | ##deb|ug. if( |
|00005310| 24 78 77 69 64 65 20 3c | 20 38 20 29 73 65 74 20 |$xwide <| 8 )set |
|00005320| 62 62 65 72 20 3d 20 28 | 20 24 62 62 65 72 20 22 |bber = (| $bber "|
|00005330| 3a 20 78 77 69 64 74 68 | 20 3d 20 24 78 77 69 64 |: xwidth| = $xwid|
|00005340| 65 20 6c 65 73 73 20 74 | 68 61 6e 20 38 20 69 73 |e less t|han 8 is|
|00005350| 20 74 6f 6f 20 73 6d 61 | 6c 6c 22 20 29 20 20 23 | too sma|ll" ) #|
|00005360| 23 64 65 62 75 67 0a 20 | 69 66 28 20 24 79 68 69 |#debug. |if( $yhi|
|00005370| 20 2b 20 24 79 63 75 74 | 20 3e 20 30 20 29 73 65 | + $ycut| > 0 )se|
|00005380| 74 20 62 62 65 72 20 3d | 20 28 20 24 62 62 65 72 |t bber =| ( $bber|
|00005390| 20 22 3a 20 79 20 6f 75 | 74 20 6f 66 20 62 6f 75 | ": y ou|t of bou|
|000053a0| 6e 64 73 22 20 29 20 20 | 20 20 20 20 20 20 20 23 |nds" ) | #|
|000053b0| 23 64 65 62 75 67 0a 20 | 69 66 28 20 24 79 68 69 |#debug. |if( $yhi|
|000053c0| 20 3c 3d 20 30 20 29 73 | 65 74 20 62 62 65 72 20 | <= 0 )s|et bber |
|000053d0| 3d 20 28 20 24 62 62 65 | 72 20 22 3a 20 68 65 69 |= ( $bbe|r ": hei|
|000053e0| 67 68 74 20 3d 20 24 79 | 68 69 20 69 73 20 74 6f |ght = $y|hi is to|
|000053f0| 6f 20 73 6d 61 6c 6c 22 | 20 29 20 20 20 20 20 23 |o small"| ) #|
|00005400| 23 64 65 62 75 67 0a 20 | 69 66 28 20 24 23 62 62 |#debug. |if( $#bb|
|00005410| 65 72 20 3d 3d 20 31 20 | 29 67 6f 74 6f 20 62 6f |er == 1 |)goto bo|
|00005420| 78 6f 6b 20 20 20 23 74 | 68 65 6e 20 20 20 20 20 |xok #t|hen |
|00005430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|00005450| 23 64 65 62 75 67 0a 20 | 20 24 65 72 72 6f 72 20 |#debug. | $error |
|00005460| 2d 6c 65 76 65 6c 20 30 | 20 20 24 62 62 65 72 20 |-level 0| $bber |
|00005470| 3b 20 65 78 69 74 20 20 | 20 20 20 20 20 20 20 20 |; exit | |
|00005480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|000054a0| 23 64 65 62 75 67 0a 20 | 62 6f 78 6f 6b 3a 20 23 |#debug. |boxok: #|
|000054b0| 65 6e 64 69 66 20 20 20 | 20 20 20 20 20 20 20 20 |endif | |
|000054c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|000054f0| 23 64 65 62 75 67 0a 20 | 24 65 72 72 6f 72 20 2d |#debug. |$error -|
|00005500| 6c 65 76 65 6c 20 31 20 | 20 77 72 69 74 69 6e 67 |level 1 | writing|
|00005510| 20 70 69 63 74 20 66 69 | 6c 65 20 75 73 69 6e 67 | pict fi|le using|
|00005520| 20 70 6e 6d 63 75 74 2c | 70 70 6d 74 6f 70 69 63 | pnmcut,|ppmtopic|
|00005530| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 |t | #|
|00005540| 23 64 65 62 75 67 0a 20 | 24 65 72 72 6f 72 20 2d |#debug. |$error -|
|00005550| 6c 65 76 65 6c 20 32 20 | 20 70 6e 6d 63 75 74 20 |level 2 | pnmcut |
|00005560| 24 78 63 75 74 20 24 79 | 63 75 74 20 24 78 77 69 |$xcut $y|cut $xwi|
|00005570| 64 65 20 24 79 68 69 20 | 24 70 70 6d 20 20 20 20 |de $yhi |$ppm |
|00005580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|00005590| 23 64 65 62 75 67 0a 20 | 28 20 70 6e 6d 63 75 74 |#debug. |( pnmcut|
|000055a0| 20 24 78 63 75 74 20 24 | 79 63 75 74 20 24 78 77 | $xcut $|ycut $xw|
|000055b0| 69 64 65 20 24 79 68 69 | 20 24 70 70 6d 20 7c 20 |ide $yhi| $ppm | |
|000055c0| 70 70 6d 74 6f 70 69 63 | 74 20 2d 20 3e 20 24 70 |ppmtopic|t - > $p|
|000055d0| 69 63 74 20 29 20 7c 26 | 20 5c 0a 09 24 65 72 72 |ict ) |&| \..$err|
|000055e0| 6f 72 20 2d 63 61 74 20 | 2d 6c 65 76 65 6c 20 32 |or -cat |-level 2|
|000055f0| 0a 65 6c 73 65 0a 20 24 | 65 72 72 6f 72 20 2d 6c |.else. $|error -l|
|00005600| 65 76 65 6c 20 31 20 20 | 77 72 69 74 69 6e 67 20 |evel 1 |writing |
|00005610| 70 69 63 74 20 66 69 6c | 65 20 75 73 69 6e 67 20 |pict fil|e using |
|00005620| 70 6e 6d 63 72 6f 70 2c | 70 70 6d 74 6f 70 69 63 |pnmcrop,|ppmtopic|
|00005630| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 23 |t | ##|
|00005640| 64 65 62 75 67 0a 20 28 | 20 70 6e 6d 63 72 6f 70 |debug. (| pnmcrop|
|00005650| 20 24 70 70 6d 20 7c 20 | 70 70 6d 74 6f 70 69 63 | $ppm | |ppmtopic|
|00005660| 74 20 2d 20 3e 20 24 70 | 69 63 74 20 29 20 7c 26 |t - > $p|ict ) |&|
|00005670| 20 20 24 65 72 72 6f 72 | 20 2d 63 61 74 20 2d 6c | $error| -cat -l|
|00005680| 65 76 65 6c 20 32 0a 65 | 6e 64 69 66 0a 69 66 28 |evel 2.e|ndif.if(|
|00005690| 20 21 20 2d 66 20 24 70 | 69 63 74 20 7c 7c 20 2d | ! -f $p|ict || -|
|000056a0| 7a 20 24 70 69 63 74 20 | 29 74 68 65 6e 0a 24 65 |z $pict |)then.$e|
|000056b0| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 30 20 66 61 |rror -le|vel 0 fa|
|000056c0| 74 61 6c 20 65 72 72 6f | 72 20 70 69 63 74 20 6e |tal erro|r pict n|
|000056d0| 6f 74 20 63 72 65 61 74 | 65 64 0a 6c 73 20 2d 6c |ot creat|ed.ls -l|
|000056e0| 20 24 70 69 63 74 20 24 | 70 70 6d 0a 69 66 28 20 | $pict $|ppm.if( |
|000056f0| 24 64 65 62 75 67 6c 65 | 76 20 3c 20 32 29 24 65 |$debugle|v < 2)$e|
|00005700| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 30 20 72 65 |rror -le|vel 0 re|
|00005710| 2d 72 75 6e 20 77 69 74 | 68 20 5c 22 2d 64 65 62 |-run wit|h \"-deb|
|00005720| 75 67 20 32 5c 22 0a 65 | 78 69 74 0a 65 6e 64 69 |ug 2\".e|xit.endi|
|00005730| 66 0a 69 66 28 20 24 64 | 65 62 75 67 6c 65 76 20 |f.if( $d|ebuglev |
|00005740| 3e 3d 20 33 29 24 65 72 | 72 6f 72 20 2d 6c 65 76 |>= 3)$er|ror -lev|
|00005750| 65 6c 20 33 20 20 72 65 | 6d 6f 76 69 6e 67 20 22 |el 3 re|moving "|
|00005760| 60 2f 62 69 6e 2f 6c 73 | 20 2d 6c 20 24 70 70 6d |`/bin/ls| -l $ppm|
|00005770| 60 22 20 23 23 64 65 62 | 75 67 0a 72 6d 20 2d 66 |`" ##deb|ug.rm -f|
|00005780| 20 24 70 70 6d 0a 73 65 | 74 20 69 66 74 79 70 65 | $ppm.se|t iftype|
|00005790| 20 69 66 63 72 65 61 74 | 6f 72 0a 69 66 28 20 24 | ifcreat|or.if( $|
|000057a0| 3f 45 50 53 54 59 50 45 | 20 21 3d 20 30 20 29 74 |?EPSTYPE| != 0 )t|
|000057b0| 68 65 6e 0a 20 73 65 74 | 20 69 66 74 79 70 65 20 |hen. set| iftype |
|000057c0| 3d 20 28 20 2d 74 79 70 | 65 20 24 45 50 53 54 59 |= ( -typ|e $EPSTY|
|000057d0| 50 45 20 29 0a 65 6e 64 | 69 66 0a 69 66 28 20 24 |PE ).end|if.if( $|
|000057e0| 3f 45 50 53 43 52 45 41 | 54 4f 52 20 21 3d 20 30 |?EPSCREA|TOR != 0|
|000057f0| 20 29 74 68 65 6e 0a 20 | 73 65 74 20 69 66 63 72 | )then. |set ifcr|
|00005800| 65 61 74 6f 72 20 3d 20 | 28 20 2d 63 72 65 61 74 |eator = |( -creat|
|00005810| 6f 72 20 24 45 50 53 43 | 52 45 41 54 4f 52 20 29 |or $EPSC|REATOR )|
|00005820| 0a 65 6e 64 69 66 0a 24 | 65 72 72 6f 72 20 2d 6c |.endif.$|error -l|
|00005830| 65 76 65 6c 20 31 20 20 | 77 72 69 74 69 6e 67 20 |evel 1 |writing |
|00005840| 6d 61 63 62 69 6e 61 72 | 79 20 66 69 6c 65 20 23 |macbinar|y file #|
|00005850| 23 64 65 62 75 67 0a 70 | 73 2d 70 69 63 74 32 6d |#debug.p|s-pict2m|
|00005860| 61 63 62 20 24 65 70 73 | 20 24 69 66 74 79 70 65 |acb $eps| $iftype|
|00005870| 20 24 69 66 63 72 65 61 | 74 6f 72 20 7c 26 20 24 | $ifcrea|tor |& $|
|00005880| 65 72 72 6f 72 20 2d 63 | 61 74 20 2d 6c 65 76 65 |error -c|at -leve|
|00005890| 6c 20 32 0a 69 66 28 24 | 64 65 62 75 67 6c 65 76 |l 2.if($|debuglev|
|000058a0| 20 3e 3d 20 33 29 74 68 | 65 6e 20 23 23 64 65 62 | >= 3)th|en ##deb|
|000058b0| 75 67 0a 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |ug. $err|or -leve|
|000058c0| 6c 20 33 20 20 72 65 6d | 6f 76 69 6e 67 20 22 60 |l 3 rem|oving "`|
|000058d0| 2f 62 69 6e 2f 6c 73 20 | 2d 6c 20 24 70 69 63 74 |/bin/ls |-l $pict|
|000058e0| 60 22 20 23 23 64 65 62 | 75 67 0a 20 24 65 72 72 |`" ##deb|ug. $err|
|000058f0| 6f 72 20 2d 6c 65 76 65 | 6c 20 33 20 20 72 65 6d |or -leve|l 3 rem|
|00005900| 6f 76 69 6e 67 20 22 60 | 2f 62 69 6e 2f 6c 73 20 |oving "`|/bin/ls |
|00005910| 2d 6c 20 24 64 61 74 60 | 22 20 23 23 64 65 62 75 |-l $dat`|" ##debu|
|00005920| 67 0a 65 6e 64 69 66 20 | 23 23 64 65 62 75 67 0a |g.endif |##debug.|
|00005930| 72 6d 20 2d 66 20 24 70 | 69 63 74 20 24 64 61 74 |rm -f $p|ict $dat|
|00005940| 0a 73 77 69 74 63 68 20 | 28 20 24 64 65 73 74 64 |.switch |( $destd|
|00005950| 69 72 20 29 0a 20 63 61 | 73 65 20 2e 0a 20 20 24 |ir ). ca|se .. $|
|00005960| 65 72 72 6f 72 20 2d 6c | 65 76 65 6c 20 31 20 20 |error -l|evel 1 |
|00005970| 6d 61 63 62 69 6e 61 72 | 79 20 66 69 6c 65 20 24 |macbinar|y file $|
|00005980| 62 69 6e 20 73 61 76 65 | 64 20 69 6e 20 63 75 72 |bin save|d in cur|
|00005990| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 20 23 |rent dir|ectory #|
|000059a0| 23 64 65 62 75 67 0a 20 | 62 72 65 61 6b 73 77 0a |#debug. |breaksw.|
|000059b0| 20 63 61 73 65 20 73 74 | 64 6f 75 74 0a 20 20 63 | case st|dout. c|
|000059c0| 61 74 20 24 62 69 6e 0a | 20 20 69 66 28 24 64 65 |at $bin.| if($de|
|000059d0| 62 75 67 6c 65 76 20 3e | 3d 20 33 29 24 65 72 72 |buglev >|= 3)$err|
|000059e0| 6f 72 20 2d 6c 65 76 65 | 6c 20 33 20 20 72 65 6d |or -leve|l 3 rem|
|000059f0| 6f 76 69 6e 67 20 22 60 | 2f 62 69 6e 2f 6c 73 20 |oving "`|/bin/ls |
|00005a00| 2d 6c 20 24 62 69 6e 60 | 22 20 23 23 64 65 62 75 |-l $bin`|" ##debu|
|00005a10| 67 0a 20 20 72 6d 20 2d | 66 20 24 62 69 6e 0a 20 |g. rm -|f $bin. |
|00005a20| 20 24 65 72 72 6f 72 20 | 2d 6c 65 76 65 6c 20 31 | $error |-level 1|
|00005a30| 20 20 6d 61 63 62 69 6e | 61 72 79 20 77 72 69 74 | macbin|ary writ|
|00005a40| 74 65 6e 20 74 6f 20 73 | 74 64 6f 75 74 20 20 20 |ten to s|tdout |
|00005a50| 20 20 20 20 20 20 20 23 | 23 64 65 62 75 67 0a 20 | #|#debug. |
|00005a60| 62 72 65 61 6b 73 77 0a | 20 63 61 73 65 20 6f 2e |breaksw.| case o.|
|00005a70| 63 6f 6d 6d 61 6e 64 0a | 20 20 24 65 72 72 6f 72 |command.| $error|
|00005a80| 20 2d 6c 65 76 65 6c 20 | 32 20 24 63 6f 6d 6d 61 | -level |2 $comma|
|00005a90| 6e 64 0a 20 20 24 63 6f | 6d 6d 61 6e 64 20 24 62 |nd. $co|mmand $b|
|00005aa0| 69 6e 0a 20 20 72 6d 20 | 2d 66 20 24 62 69 6e 0a |in. rm |-f $bin.|
|00005ab0| 20 62 72 65 61 6b 73 77 | 0a 20 63 61 73 65 20 6f | breaksw|. case o|
|00005ac0| 2e 66 74 70 0a 20 20 65 | 63 68 6f 20 24 66 74 70 |.ftp. e|cho $ftp|
|00005ad0| 0a 20 20 66 74 70 20 24 | 66 74 70 20 3c 3c 20 65 |. ftp $|ftp << e|
|00005ae0| 6e 64 66 74 70 20 7c 26 | 20 24 65 72 72 6f 72 20 |ndftp |&| $error |
|00005af0| 2d 63 61 74 20 2d 6c 65 | 76 65 6c 20 31 0a 20 20 |-cat -le|vel 1. |
|00005b00| 62 69 6e 0a 20 20 71 75 | 6f 74 65 20 6d 61 63 62 |bin. qu|ote macb|
|00005b10| 20 65 6e 61 62 6c 65 64 | 0a 20 20 70 75 74 20 24 | enabled|. put $|
|00005b20| 62 69 6e 0a 20 20 6c 73 | 20 24 6e 61 6d 65 2e 65 |bin. ls| $name.e|
|00005b30| 70 73 0a 65 6e 64 66 74 | 70 0a 20 20 72 6d 20 2d |ps.endft|p. rm -|
|00005b40| 66 20 24 62 69 6e 0a 20 | 62 72 65 61 6b 73 77 0a |f $bin. |breaksw.|
|00005b50| 20 64 65 66 61 75 6c 74 | 0a 20 20 69 66 28 20 2d | default|. if( -|
|00005b60| 64 20 24 64 65 73 74 64 | 69 72 20 26 26 20 2d 77 |d $destd|ir && -w|
|00005b70| 20 24 64 65 73 74 64 69 | 72 20 29 74 68 65 6e 0a | $destdi|r )then.|
|00005b80| 20 20 20 6d 76 20 24 62 | 69 6e 20 24 64 65 73 74 | mv $b|in $dest|
|00005b90| 64 69 72 0a 20 20 20 24 | 65 72 72 6f 72 20 2d 6c |dir. $|error -l|
|00005ba0| 65 76 65 6c 20 31 20 20 | 6f 75 74 70 75 74 20 6d |evel 1 |output m|
|00005bb0| 61 63 62 69 6e 61 72 79 | 20 66 69 6c 65 20 69 73 |acbinary| file is|
|00005bc0| 20 24 64 65 73 74 64 69 | 72 2f 24 62 69 6e 20 20 | $destdi|r/$bin |
|00005bd0| 20 20 23 23 64 65 62 75 | 67 0a 20 20 65 6c 73 65 | ##debu|g. else|
|00005be0| 0a 20 20 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |. $err|or -leve|
|00005bf0| 6c 20 31 20 69 6e 76 61 | 6c 69 64 20 64 65 73 74 |l 1 inva|lid dest|
|00005c00| 69 6e 61 74 69 6f 6e 20 | 64 69 72 65 63 74 6f 72 |ination |director|
|00005c10| 79 20 24 64 65 73 74 64 | 69 72 20 6d 61 63 62 69 |y $destd|ir macbi|
|00005c20| 6e 61 72 79 20 66 69 6c | 65 20 24 62 69 6e 20 6c |nary fil|e $bin l|
|00005c30| 65 66 74 20 69 6e 20 63 | 75 72 72 65 6e 74 20 64 |eft in c|urrent d|
|00005c40| 69 72 65 63 74 6f 72 79 | 20 23 23 64 65 62 75 67 |irectory| ##debug|
|00005c50| 0a 20 20 65 6e 64 69 66 | 0a 20 62 72 65 61 6b 73 |. endif|. breaks|
|00005c60| 77 0a 65 6e 64 73 77 0a | 65 78 69 74 0a 63 6f 6c |w.endsw.|exit.col|
|00005c70| 6f 72 65 72 72 6f 72 3a | 0a 24 65 72 72 6f 72 20 |orerror:|.$error |
|00005c80| 2d 6c 65 76 65 6c 20 31 | 20 77 61 72 6e 69 6e 67 |-level 1| warning|
|00005c90| 20 61 74 74 65 6d 70 74 | 20 74 6f 20 63 72 65 61 | attempt| to crea|
|00005ca0| 74 65 20 63 6f 6c 6f 72 | 20 70 72 65 76 69 65 77 |te color| preview|
|00005cb0| 20 77 68 65 6e 20 73 6f | 75 72 63 65 0a 24 65 72 | when so|urce.$er|
|00005cc0| 72 6f 72 20 2d 6c 65 76 | 65 6c 20 31 20 66 69 6c |ror -lev|el 1 fil|
|00005cd0| 65 20 68 61 73 20 6e 6f | 20 62 6f 75 6e 64 69 6e |e has no| boundin|
|00005ce0| 67 20 62 6f 78 2e 20 20 | 2d 20 72 75 6e 6e 69 6e |g box. |- runnin|
|00005cf0| 67 20 69 6e 20 62 2f 77 | 20 6d 6f 64 65 0a 24 65 |g in b/w| mode.$e|
|00005d00| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 31 20 74 6f |rror -le|vel 1 to|
|00005d10| 20 64 65 74 65 72 6d 69 | 6e 65 20 61 20 62 6f 75 | determi|ne a bou|
|00005d20| 6e 64 69 6e 67 20 62 6f | 78 0a 24 65 72 72 6f 72 |nding bo|x.$error|
|00005d30| 20 2d 6c 65 76 65 6c 20 | 31 20 5c 28 20 79 6f 75 | -level |1 \( you|
|00005d40| 20 73 68 6f 75 6c 64 20 | 61 64 64 20 74 68 65 20 | should |add the |
|00005d50| 62 62 20 62 79 20 68 61 | 6e 64 20 74 6f 20 63 72 |bb by ha|nd to cr|
|00005d60| 65 61 74 65 20 61 20 63 | 6f 6c 6f 72 20 69 6d 61 |eate a c|olor ima|
|00005d70| 67 65 20 5c 29 0a 73 65 | 74 20 63 6f 6c 6f 72 73 |ge \).se|t colors|
|00005d80| 20 3d 20 70 70 6d 31 72 | 75 6e 0a 73 65 74 20 72 | = ppm1r|un.set r|
|00005d90| 65 70 6f 72 74 68 65 61 | 64 65 72 0a 67 6f 74 6f |eporthea|der.goto|
|00005da0| 20 6e 6f 62 62 6f 78 0a | 53 48 41 52 5f 45 4f 46 | nobbox.|SHAR_EOF|
|00005db0| 0a 63 68 6d 6f 64 20 2b | 78 20 27 70 73 32 65 70 |.chmod +|x 'ps2ep|
|00005dc0| 73 2d 6d 61 63 27 0a 66 | 69 20 23 20 65 6e 64 20 |s-mac'.f|i # end |
|00005dd0| 6f 66 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 63 |of overw|riting c|
|00005de0| 68 65 63 6b 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |heck.if |test -f |
|00005df0| 27 70 73 2d 70 69 63 74 | 32 6d 61 63 62 2e 63 27 |'ps-pict|2macb.c'|
|00005e00| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|00005e10| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|00005e20| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00005e30| 69 6c 65 20 22 27 70 73 | 2d 70 69 63 74 32 6d 61 |ile "'ps|-pict2ma|
|00005e40| 63 62 2e 63 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |cb.c'".e|lse.cat |
|00005e50| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00005e60| 70 73 2d 70 69 63 74 32 | 6d 61 63 62 2e 63 27 0a |ps-pict2|macb.c'.|
|00005e70| 2f 2a 20 20 70 73 2d 70 | 69 63 74 32 6d 61 63 62 |/* ps-p|ict2macb|
|00005e80| 69 6e 2e 63 20 20 20 20 | 20 20 20 20 20 20 67 65 |in.c | ge|
|00005e90| 6f 72 67 65 20 6a 65 66 | 66 65 72 73 6f 6e 20 67 |orge jef|ferson g|
|00005ea0| 65 6f 72 67 65 40 6d 65 | 63 68 2e 73 65 61 73 2e |eorge@me|ch.seas.|
|00005eb0| 75 70 65 6e 6e 2e 65 64 | 75 20 20 2a 2f 0a 2f 2a |upenn.ed|u */./*|
|00005ec0| 20 20 69 6e 69 74 69 61 | 6c 20 72 65 6c 65 61 73 | initia|l releas|
|00005ed0| 65 20 34 2f 34 2f 39 32 | 20 20 20 20 20 20 20 20 |e 4/4/92| |
|00005ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f00| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 | | */./* |
|00005f10| 75 73 61 67 65 20 70 73 | 2d 70 69 63 74 32 6d 61 |usage ps|-pict2ma|
|00005f20| 63 62 69 6e 20 66 69 6c | 65 20 5b 2d 74 79 70 65 |cbin fil|e [-type|
|00005f30| 20 54 59 50 45 20 5d 20 | 5b 20 2d 63 72 65 61 74 | TYPE ] |[ -creat|
|00005f40| 6f 72 20 43 52 45 41 54 | 4f 52 20 5d 20 20 20 20 |or CREAT|OR ] |
|00005f50| 20 20 20 20 20 20 20 2a | 2f 0a 2f 2a 20 20 63 6f | *|/./* co|
|00005f60| 6d 62 69 6e 65 73 20 22 | 66 69 6c 65 2e 70 73 22 |mbines "|file.ps"|
|00005f70| 20 61 6e 64 20 22 66 69 | 6c 65 2e 70 69 63 74 22 | and "fi|le.pict"|
|00005f80| 20 74 6f 20 66 6f 72 6d | 20 22 66 69 6c 65 2e 62 | to form| "file.b|
|00005f90| 69 6e 22 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |in" | |
|00005fa0| 20 20 20 20 20 2a 2f 0a | 2f 2a 20 20 66 69 6c 65 | */.|/* file|
|00005fb0| 2e 62 69 6e 20 69 73 20 | 61 20 6d 61 63 62 69 6e |.bin is |a macbin|
|00005fc0| 61 72 79 20 66 6f 72 6d | 61 74 20 66 69 6c 65 2c |ary form|at file,|
|00005fd0| 20 77 69 74 68 20 6d 61 | 63 69 6e 74 6f 73 68 20 | with ma|cintosh |
|00005fe0| 6e 61 6d 65 20 22 66 69 | 6c 65 22 20 20 20 20 20 |name "fi|le" |
|00005ff0| 20 20 20 2a 2f 0a 2f 2a | 20 20 61 6e 64 20 63 72 | */./*| and cr|
|00006000| 65 61 74 69 6f 6e 2f 6d | 6f 64 69 66 69 63 61 74 |eation/m|odificat|
|00006010| 69 6f 6e 20 64 61 74 65 | 73 20 73 65 74 20 74 6f |ion date|s set to|
|00006020| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 74 69 6d | the cur|rent tim|
|00006030| 65 20 6f 66 20 20 20 20 | 20 20 20 20 20 20 20 20 |e of | |
|00006040| 20 2a 2f 0a 2f 2a 20 20 | 64 61 79 20 28 20 61 6e | */./* |day ( an|
|00006050| 79 62 6f 64 79 20 63 61 | 72 65 3f 20 29 20 20 20 |ybody ca|re? ) |
|00006060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00006090| 2f 0a 2f 2a 20 20 69 66 | 20 74 79 70 65 20 61 6e |/./* if| type an|
|000060a0| 64 20 63 72 65 61 74 6f | 72 20 61 72 65 20 6e 6f |d creato|r are no|
|000060b0| 74 20 73 70 65 63 69 66 | 69 65 64 2c 20 74 68 65 |t specif|ied, the|
|000060c0| 79 20 61 72 65 20 73 65 | 74 20 74 6f 20 45 50 53 |y are se|t to EPS|
|000060d0| 46 20 61 6e 64 20 4d 53 | 57 44 20 20 20 2a 2f 0a |F and MS|WD */.|
|000060e0| 2f 2a 20 20 62 65 63 61 | 75 73 65 20 5f 49 5f 20 |/* beca|use _I_ |
|000060f0| 75 73 65 20 77 6f 72 64 | 35 20 20 20 20 20 20 20 |use word|5 |
|00006100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006120| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 2f 2a | | */./*|
|00006130| 20 20 49 20 73 65 65 20 | 6e 6f 20 72 65 61 73 6f | I see |no reaso|
|00006140| 6e 20 74 6f 20 70 72 6f | 76 69 64 65 20 6f 70 74 |n to pro|vide opt|
|00006150| 69 6f 6e 73 20 74 6f 20 | 63 68 61 6e 67 65 20 74 |ions to |change t|
|00006160| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 73 2c 20 20 |he file |names, |
|00006170| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 | | */./* |
|00006180| 62 75 74 20 69 74 20 63 | 6f 75 6c 64 20 65 61 73 |but it c|ould eas|
|00006190| 69 6c 79 20 62 65 20 64 | 6f 6e 65 20 20 20 20 20 |ily be d|one |
|000061a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061c0| 20 20 20 20 20 20 20 2a | 2f 0a 2f 2a 20 20 22 66 | *|/./* "f|
|000061d0| 69 6c 65 2e 70 73 22 20 | 69 73 20 74 61 6b 65 6e |ile.ps" |is taken|
|000061e0| 20 74 6f 20 62 65 20 74 | 68 65 20 64 61 74 61 20 | to be t|he data |
|000061f0| 66 6f 72 6b 2c 20 6e 6f | 20 61 73 73 75 6d 70 74 |fork, no| assumpt|
|00006200| 69 6f 6e 73 20 61 72 65 | 20 6d 61 64 65 20 68 65 |ions are| made he|
|00006210| 72 65 20 20 20 2a 2f 0a | 2f 2a 20 20 61 62 6f 75 |re */.|/* abou|
|00006220| 74 20 69 74 73 20 66 6f | 72 6d 61 74 2c 20 68 6f |t its fo|rmat, ho|
|00006230| 77 65 76 65 72 20 69 74 | 20 69 73 20 70 72 65 73 |wever it| is pres|
|00006240| 75 6d 61 62 6c 79 20 70 | 6f 73 74 73 63 72 69 70 |umably p|ostscrip|
|00006250| 74 20 63 6f 64 65 20 2d | 2d 20 49 74 20 73 65 65 |t code -|- It see|
|00006260| 6d 73 20 2a 2f 0a 2f 2a | 20 20 74 6f 20 62 65 20 |ms */./*| to be |
|00006270| 6e 65 63 65 73 73 61 72 | 79 20 74 6f 20 63 6f 6e |necessar|y to con|
|00006280| 76 65 72 74 20 6c 69 6e | 65 20 65 6e 64 69 6e 67 |vert lin|e ending|
|00006290| 73 20 74 6f 20 6d 61 63 | 69 6e 74 6f 73 68 20 65 |s to mac|intosh e|
|000062a0| 6e 64 69 6e 67 73 20 28 | 20 5e 4d 20 29 20 20 20 |ndings (| ^M ) |
|000062b0| 20 2a 2f 0a 2f 2a 20 20 | 49 20 74 68 69 6e 6b 20 | */./* |I think |
|000062c0| 69 74 20 6d 6f 72 65 20 | 61 70 70 72 6f 70 72 69 |it more |appropri|
|000062d0| 61 74 65 20 74 6f 20 64 | 6f 20 74 68 61 74 20 63 |ate to d|o that c|
|000062e0| 6f 6e 76 65 72 73 69 6f | 6e 20 65 78 74 65 72 6e |onversio|n extern|
|000062f0| 61 6c 6c 79 20 28 20 65 | 67 20 74 72 20 29 20 2a |ally ( e|g tr ) *|
|00006300| 2f 0a 2f 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |/./* | |
|00006310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|00006350| 2f 2a 20 20 22 66 69 6c | 65 2e 70 69 63 74 22 20 |/* "fil|e.pict" |
|00006360| 69 73 20 61 20 70 69 63 | 74 20 64 61 74 61 20 66 |is a pic|t data f|
|00006370| 69 6c 65 2c 20 77 68 69 | 63 68 20 69 73 20 6d 61 |ile, whi|ch is ma|
|00006380| 73 73 61 67 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |ssaged i|nto the |
|00006390| 72 65 73 6f 75 72 63 65 | 20 20 20 2a 2f 0a 2f 2a |resource| */./*|
|000063a0| 20 20 66 6f 72 6b 20 20 | 49 74 73 20 66 6f 72 6d | fork |Its form|
|000063b0| 61 74 20 5f 69 73 5f 20 | 69 6d 70 6f 72 74 61 6e |at _is_ |importan|
|000063c0| 74 20 68 65 72 65 2e 20 | 20 20 20 20 20 20 20 20 |t here. | |
|000063d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063e0| 20 20 20 20 20 20 20 20 | 20 2a 2f 0a 2f 2a 20 20 | | */./* |
|000063f0| 70 70 6d 74 6f 70 69 63 | 74 20 6f 75 74 70 75 74 |ppmtopic|t output|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.