home *** CD-ROM | disk | FTP | other *** search
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).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| 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%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 32 37 2d 4d 61 79 2d 39 | 32 20 31 36 3a 35 32 3a |27-May-9|2 16:52:|
|00000010| 34 38 2d 47 4d 54 2c 34 | 33 34 33 34 3b 30 30 30 |48-GMT,4|3434;000|
|00000020| 30 30 30 30 30 30 30 31 | 31 0a 52 65 63 65 69 76 |00000001|1.Receiv|
|00000030| 65 64 3a 20 66 72 6f 6d | 20 6e 6f 63 32 2e 64 63 |ed: from| noc2.dc|
|00000040| 63 73 2e 75 70 65 6e 6e | 2e 65 64 75 20 62 79 20 |cs.upenn|.edu by |
|00000050| 43 41 4d 49 53 2e 53 74 | 61 6e 66 6f 72 64 2e 45 |CAMIS.St|anford.E|
|00000060| 44 55 20 28 34 2e 31 2f | 69 6e 63 2d 31 2e 30 29 |DU (4.1/|inc-1.0)|
|00000070| 0a 09 69 64 20 41 41 31 | 34 33 39 35 3b 20 57 65 |..id AA1|4395; We|
|00000080| 64 2c 20 32 37 20 4d 61 | 79 20 39 32 20 30 39 3a |d, 27 Ma|y 92 09:|
|00000090| 35 32 3a 34 38 20 50 44 | 54 0a 52 65 63 65 69 76 |52:48 PD|T.Receiv|
|000000a0| 65 64 3a 20 66 72 6f 6d | 20 4d 45 43 48 2e 53 45 |ed: from| MECH.SE|
|000000b0| 41 53 2e 55 50 45 4e 4e | 2e 45 44 55 20 62 79 20 |AS.UPENN|.EDU by |
|000000c0| 6e 6f 63 32 2e 64 63 63 | 73 2e 75 70 65 6e 6e 2e |noc2.dcc|s.upenn.|
|000000d0| 65 64 75 0a 09 69 64 20 | 41 41 32 33 34 30 38 3b |edu..id |AA23408;|
|000000e0| 20 57 65 64 2c 20 32 37 | 20 4d 61 79 20 39 32 20 | Wed, 27| May 92 |
|000000f0| 31 32 3a 35 32 3a 32 38 | 20 2d 30 34 30 30 0a 52 |12:52:28| -0400.R|
|00000100| 65 74 75 72 6e 2d 50 61 | 74 68 3a 20 3c 67 65 6f |eturn-Pa|th: <geo|
|00000110| 72 67 65 40 6d 65 63 68 | 2e 73 65 61 73 2e 75 70 |rge@mech|.seas.up|
|00000120| 65 6e 6e 2e 65 64 75 3e | 0a 52 65 63 65 69 76 65 |enn.edu>|.Receive|
|00000130| 64 3a 20 62 79 20 6d 65 | 63 68 2e 73 65 61 73 2e |d: by me|ch.seas.|
|00000140| 75 70 65 6e 6e 2e 65 64 | 75 0a 09 69 64 20 41 41 |upenn.ed|u..id AA|
|00000150| 31 30 38 36 38 3b 20 57 | 65 64 2c 20 32 37 20 4d |10868; W|ed, 27 M|
|00000160| 61 79 20 39 32 20 31 32 | 3a 35 32 3a 32 34 20 45 |ay 92 12|:52:24 E|
|00000170| 44 54 0a 44 61 74 65 3a | 20 57 65 64 2c 20 32 37 |DT.Date:| Wed, 27|
|00000180| 20 4d 61 79 20 39 32 20 | 31 32 3a 35 32 3a 32 34 | May 92 |12:52:24|
|00000190| 20 45 44 54 0a 46 72 6f | 6d 3a 20 67 65 6f 72 67 | EDT.Fro|m: georg|
|000001a0| 65 40 6d 65 63 68 2e 73 | 65 61 73 2e 75 70 65 6e |e@mech.s|eas.upen|
|000001b0| 6e 2e 65 64 75 20 28 47 | 65 6f 72 67 65 20 4a 65 |n.edu (G|eorge Je|
|000001c0| 66 66 65 72 73 6f 6e 29 | 0a 50 6f 73 74 65 64 2d |fferson)|.Posted-|
|000001d0| 44 61 74 65 3a 20 57 65 | 64 2c 20 32 37 20 4d 61 |Date: We|d, 27 Ma|
|000001e0| 79 20 39 32 20 31 32 3a | 35 32 3a 32 34 20 45 44 |y 92 12:|52:24 ED|
|000001f0| 54 0a 4d 65 73 73 61 67 | 65 2d 49 64 3a 20 3c 39 |T.Messag|e-Id: <9|
|00000200| 32 30 35 32 37 31 36 35 | 32 2e 41 41 31 30 38 36 |20527165|2.AA1086|
|00000210| 38 40 6d 65 63 68 2e 73 | 65 61 73 2e 75 70 65 6e |8@mech.s|eas.upen|
|00000220| 6e 2e 65 64 75 3e 0a 54 | 6f 3a 20 49 6e 66 6f 2d |n.edu>.T|o: Info-|
|00000230| 4d 61 63 2d 52 65 71 75 | 65 73 74 40 53 55 4d 45 |Mac-Requ|est@SUME|
|00000240| 58 2d 41 49 4d 2e 53 74 | 61 6e 66 6f 72 64 2e 45 |X-AIM.St|anford.E|
|00000250| 64 75 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |du.Subje|ct: Re: |
|00000260| 70 70 6d 20 66 69 6c 65 | 73 3f 0a 0a 49 20 77 61 |ppm file|s?..I wa|
|00000270| 73 20 74 68 69 6e 6b 69 | 6e 67 20 31 70 70 6d 2c |s thinki|ng 1ppm,|
|00000280| 32 70 70 6d 20 72 65 70 | 72 65 73 65 6e 74 65 64 |2ppm rep|resented|
|00000290| 20 6d 75 6c 74 69 70 6c | 65 20 61 74 74 65 6d 70 | multipl|e attemp|
|000002a0| 74 73 20 74 6f 20 6d 61 | 6b 65 0a 69 74 20 77 6f |ts to ma|ke.it wo|
|000002b0| 72 6b 20 6f 6e 20 79 6f | 75 72 20 70 61 72 74 2e |rk on yo|ur part.|
|000002c0| 20 20 4e 6f 77 20 69 74 | 20 6d 61 6b 65 73 20 73 | Now it| makes s|
|000002d0| 65 6e 73 65 2e 2e 0a 0a | 67 73 20 32 2e 33 20 77 |ense....|gs 2.3 w|
|000002e0| 69 6c 6c 20 64 69 73 70 | 6c 61 79 20 79 6f 75 72 |ill disp|lay your|
|000002f0| 20 66 69 6c 65 20 62 75 | 74 20 69 74 20 63 68 6f | file bu|t it cho|
|00000300| 6b 65 73 20 77 68 65 6e | 20 69 20 0a 61 73 6b 20 |kes when| i .ask |
|00000310| 66 6f 72 20 61 20 70 70 | 6d 2c 20 73 6f 20 74 68 |for a pp|m, so th|
|00000320| 61 74 20 69 73 20 61 20 | 6e 65 77 20 66 65 61 74 |at is a |new feat|
|00000330| 75 72 65 2e 0a 0a 54 6f | 20 61 6e 73 77 65 72 20 |ure...To| answer |
|00000340| 79 6f 75 72 20 71 75 65 | 73 74 69 6f 6e 2c 20 69 |your que|stion, i|
|00000350| 74 20 64 6f 65 73 6e 27 | 74 20 72 65 61 6c 6c 79 |t doesn'|t really|
|00000360| 20 6d 61 6b 65 0a 73 65 | 6e 73 65 20 74 6f 20 74 | make.se|nse to t|
|00000370| 75 72 6e 20 61 20 6d 75 | 6c 74 69 70 6c 65 20 70 |urn a mu|ltiple p|
|00000380| 61 67 65 20 64 6f 63 75 | 6d 65 6e 74 20 69 6e 74 |age docu|ment int|
|00000390| 6f 20 65 70 73 20 28 20 | 74 68 61 74 73 20 74 68 |o eps ( |thats th|
|000003a0| 65 20 65 61 73 79 20 61 | 6e 73 77 65 72 20 29 0a |e easy a|nswer ).|
|000003b0| 57 68 61 74 20 77 6f 75 | 6c 64 20 79 6f 75 20 77 |What wou|ld you w|
|000003c0| 61 6e 74 2c 20 70 72 6f | 62 61 62 6c 79 20 61 20 |ant, pro|bably a |
|000003d0| 73 65 70 65 72 61 74 65 | 20 65 70 73 2f 70 69 63 |seperate| eps/pic|
|000003e0| 74 20 66 69 6c 65 20 66 | 6f 72 20 65 61 63 68 20 |t file f|or each |
|000003f0| 70 61 67 65 3f 0a 54 6f | 20 64 6f 20 74 68 61 74 |page?.To| do that|
|00000400| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6e 65 65 64 20 | you wou|ld need |
|00000410| 74 6f 20 70 61 72 73 65 | 20 74 68 65 20 70 6f 73 |to parse| the pos|
|00000420| 74 73 63 72 69 70 74 20 | 61 6e 64 20 67 72 61 62 |tscript |and grab|
|00000430| 20 6a 75 73 74 0a 74 68 | 65 20 72 69 67 68 74 20 | just.th|e right |
|00000440| 70 61 72 74 20 66 6f 72 | 20 61 20 70 61 72 74 69 |part for| a parti|
|00000450| 63 75 6c 61 72 20 70 61 | 67 65 2e 20 49 6e 20 67 |cular pa|ge. In g|
|00000460| 65 6e 65 72 61 6c 20 79 | 6f 75 20 63 61 6e 6e 6f |eneral y|ou canno|
|00000470| 74 20 73 70 6c 69 74 20 | 61 0a 70 6f 73 74 73 63 |t split |a.postsc|
|00000480| 72 69 70 74 20 64 6f 63 | 75 6d 65 6e 74 20 69 6e |ript doc|ument in|
|00000490| 74 6f 20 69 6e 64 69 76 | 64 75 61 6c 20 70 61 67 |to indiv|dual pag|
|000004a0| 65 73 2e 20 41 74 20 74 | 68 65 20 76 65 72 79 20 |es. At t|he very |
|000004b0| 6c 65 61 73 74 20 79 6f | 75 20 77 6f 75 6c 64 0a |least yo|u would.|
|000004c0| 6e 65 65 64 20 74 6f 20 | 72 65 63 6f 67 6e 69 73 |need to |recognis|
|000004d0| 65 2c 20 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |e, for e|xample, |
|000004e0| 74 68 69 73 20 69 73 20 | 70 73 72 6f 66 66 2c 20 |this is |psroff, |
|000004f0| 74 68 69 73 20 69 73 20 | 74 68 65 20 68 65 61 64 |this is |the head|
|00000500| 65 72 2c 20 65 74 63 2e | 0a 0a 6b 6e 6f 77 69 6e |er, etc.|..knowin|
|00000510| 67 20 74 68 61 74 2c 20 | 6e 6f 6e 65 20 6f 66 20 |g that, |none of |
|00000520| 74 68 65 20 74 65 73 74 | 65 72 73 20 28 20 61 70 |the test|ers ( ap|
|00000530| 70 65 72 65 6e 74 6c 79 | 20 29 20 65 76 65 6e 20 |perently| ) even |
|00000540| 74 72 69 65 64 20 74 6f | 20 70 72 6f 63 65 73 73 |tried to| process|
|00000550| 20 0a 61 20 6d 75 6c 74 | 69 20 70 61 67 65 20 64 | .a mult|i page d|
|00000560| 6f 63 75 6d 65 6e 74 2e | 20 20 54 68 69 73 20 6c |ocument.| This l|
|00000570| 69 6d 69 74 61 74 69 6f | 6e 20 73 68 6f 75 6c 64 |imitatio|n should|
|00000580| 20 61 70 70 65 61 72 20 | 70 72 6f 6d 69 6e 61 6e | appear |prominan|
|00000590| 74 6c 79 20 69 6e 20 0a | 74 68 65 20 64 6f 63 75 |tly in .|the docu|
|000005a0| 6d 65 6e 74 61 74 69 6f | 6e 2e 20 20 41 6c 73 6f |mentatio|n. Also|
|000005b0| 20 69 20 77 69 6c 6c 20 | 66 69 78 20 74 68 65 20 | i will |fix the |
|000005c0| 73 63 72 69 70 74 20 74 | 6f 20 72 65 63 6f 67 6e |script t|o recogn|
|000005d0| 69 73 65 20 74 68 65 20 | 2e 6e 70 70 6d 0a 66 69 |ise the |.nppm.fi|
|000005e0| 6c 65 73 20 61 6e 64 20 | 61 62 6f 72 74 20 77 69 |les and |abort wi|
|000005f0| 74 68 20 61 20 73 65 6e | 73 61 62 6c 65 20 65 72 |th a sen|sable er|
|00000600| 72 6f 72 20 6d 65 73 73 | 61 67 65 2e 0a 0a 77 65 |ror mess|age...we|
|00000610| 6c 6c 2c 20 65 61 73 69 | 6c 79 20 66 69 78 65 64 |ll, easi|ly fixed|
|00000620| 2e 2e 20 68 65 72 65 20 | 69 73 20 76 65 72 73 69 |.. here |is versi|
|00000630| 6f 6e 20 31 2e 31 0a 28 | 20 70 6c 65 61 73 65 20 |on 1.1.(| please |
|00000640| 74 65 73 74 20 69 74 2c | 20 61 73 20 69 20 64 6f |test it,| as i do|
|00000650| 6e 74 20 68 61 76 65 20 | 67 73 32 2e 34 20 79 65 |nt have |gs2.4 ye|
|00000660| 74 2e 2e 20 29 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |t.. ).--|--------|
|00000670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 70 73 32 |--------|-----ps2|
|00000680| 65 70 73 2d 6d 61 63 31 | 2e 31 2e 73 68 61 72 2d |eps-mac1|.1.shar-|
|00000690| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 23 21 20 2f 62 69 6e |--------|.#! /bin|
|000006a0| 2f 73 68 0a 23 20 54 68 | 69 73 20 69 73 20 61 20 |/sh.# Th|is is a |
|000006b0| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2c 20 6d |shell ar|chive, m|
|000006c0| 65 61 6e 69 6e 67 3a 0a | 23 20 31 2e 20 52 65 6d |eaning:.|# 1. Rem|
|000006d0| 6f 76 65 20 65 76 65 72 | 79 74 68 69 6e 67 20 61 |ove ever|ything a|
|000006e0| 62 6f 76 65 20 74 68 65 | 20 23 21 20 2f 62 69 6e |bove the| #! /bin|
|000006f0| 2f 73 68 20 6c 69 6e 65 | 2e 0a 23 20 32 2e 20 53 |/sh line|..# 2. S|
|00000700| 61 76 65 20 74 68 65 20 | 72 65 73 75 6c 74 69 6e |ave the |resultin|
|00000710| 67 20 74 65 78 74 20 69 | 6e 20 61 20 66 69 6c 65 |g text i|n a file|
|00000720| 2e 0a 23 20 33 2e 20 45 | 78 65 63 75 74 65 20 74 |..# 3. E|xecute t|
|00000730| 68 65 20 66 69 6c 65 20 | 77 69 74 68 20 2f 62 69 |he file |with /bi|
|00000740| 6e 2f 73 68 20 28 6e 6f | 74 20 63 73 68 29 20 74 |n/sh (no|t csh) t|
|00000750| 6f 20 63 72 65 61 74 65 | 20 74 68 65 20 66 69 6c |o create| the fil|
|00000760| 65 73 3a 0a 23 09 52 45 | 41 44 4d 45 0a 23 09 70 |es:.#.RE|ADME.#.p|
|00000770| 73 32 65 70 73 2d 6d 61 | 63 0a 23 09 70 73 2d 70 |s2eps-ma|c.#.ps-p|
|00000780| 69 63 74 32 6d 61 63 62 | 2e 63 0a 23 09 6d 61 6b |ict2macb|.c.#.mak|
|00000790| 65 66 69 6c 65 0a 23 09 | 74 65 73 74 2e 70 73 0a |efile.#.|test.ps.|
|000007a0| 23 09 65 72 5f 65 63 68 | 6f 2e 63 0a 23 09 73 74 |#.er_ech|o.c.#.st|
|000007b0| 5f 65 63 68 6f 0a 23 09 | 70 73 32 65 70 73 2d 6d |_echo.#.|ps2eps-m|
|000007c0| 61 63 2e 6d 0a 23 09 70 | 62 6d 74 6f 65 70 73 69 |ac.m.#.p|bmtoepsi|
|000007d0| 2e 63 0a 23 09 74 65 73 | 74 2e 65 70 73 2e 62 69 |.c.#.tes|t.eps.bi|
|000007e0| 6e 2e 75 75 0a 23 20 54 | 68 69 73 20 61 72 63 68 |n.uu.# T|his arch|
|000007f0| 69 76 65 20 63 72 65 61 | 74 65 64 3a 20 57 65 64 |ive crea|ted: Wed|
|00000800| 20 4d 61 79 20 32 37 20 | 31 32 3a 34 32 3a 35 38 | May 27 |12:42:58|
|00000810| 20 31 39 39 32 0a 65 78 | 70 6f 72 74 20 50 41 54 | 1992.ex|port PAT|
|00000820| 48 3b 20 50 41 54 48 3d | 2f 62 69 6e 3a 24 50 41 |H; PATH=|/bin:$PA|
|00000830| 54 48 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 52 |TH.if te|st -f 'R|
|00000840| 45 41 44 4d 45 27 0a 74 | 68 65 6e 0a 09 65 63 68 |EADME'.t|hen..ech|
|00000850| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00000860| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00000870| 74 69 6e 67 20 66 69 6c | 65 20 22 27 52 45 41 44 |ting fil|e "'READ|
|00000880| 4d 45 27 22 0a 65 6c 73 | 65 0a 63 61 74 20 3c 3c |ME'".els|e.cat <<|
|00000890| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 52 45 | \SHAR_E|OF > 'RE|
|000008a0| 41 44 4d 45 27 0a 0a 70 | 73 32 65 70 73 2d 6d 61 |ADME'..p|s2eps-ma|
|000008b0| 63 20 74 61 6b 65 73 20 | 61 6e 20 61 72 62 69 74 |c takes |an arbit|
|000008c0| 72 61 72 79 20 70 6f 73 | 74 73 63 72 69 70 74 20 |rary pos|tscript |
|000008d0| 66 69 6c 65 0a 28 20 65 | 76 65 6e 20 73 6f 72 74 |file.( e|ven sort|
|000008e0| 20 6f 66 20 77 6f 72 6b | 73 20 77 69 74 68 20 6d | of work|s with m|
|000008f0| 61 63 69 6e 74 6f 73 68 | 20 6c 61 73 65 72 77 72 |acintosh| laserwr|
|00000900| 69 74 65 72 20 64 72 69 | 76 65 72 20 64 75 6d 70 |iter dri|ver dump|
|00000910| 73 2e 2e 20 29 0a 61 6e | 64 20 63 72 65 61 74 65 |s.. ).an|d create|
|00000920| 73 20 61 6e 20 27 65 6e | 63 61 70 73 75 6c 61 74 |s an 'en|capsulat|
|00000930| 65 64 20 70 6f 73 74 73 | 63 72 69 70 74 20 77 69 |ed posts|cript wi|
|00000940| 74 68 20 65 6d 62 65 64 | 64 65 64 20 70 69 63 74 |th embed|ded pict|
|00000950| 27 20 66 69 6c 65 20 69 | 6e 0a 6d 61 63 62 69 6e |' file i|n.macbin|
|00000960| 61 72 79 20 66 6f 72 6d | 61 74 2e 0a 54 68 69 73 |ary form|at..This|
|00000970| 20 66 69 6c 65 20 63 61 | 6e 20 62 65 20 69 6e 63 | file ca|n be inc|
|00000980| 6c 75 64 65 64 20 69 6e | 20 63 65 72 74 61 69 6e |luded in| certain|
|00000990| 20 70 72 6f 67 72 61 6d | 73 20 28 20 65 67 20 57 | program|s ( eg W|
|000009a0| 6f 72 64 35 20 29 20 74 | 68 61 74 20 73 75 70 70 |ord5 ) t|hat supp|
|000009b0| 6f 72 74 0a 74 68 65 20 | 66 6f 72 6d 61 74 2c 20 |ort.the |format, |
|000009c0| 61 6e 64 20 79 6f 75 20 | 77 69 6c 6c 20 67 65 74 |and you |will get|
|000009d0| 20 61 20 37 32 64 70 69 | 20 73 63 72 65 65 6e 20 | a 72dpi| screen |
|000009e0| 70 72 65 76 69 65 77 20 | 69 6d 61 67 65 2c 20 62 |preview |image, b|
|000009f0| 75 74 20 70 6f 73 74 73 | 63 72 69 70 74 0a 71 75 |ut posts|cript.qu|
|00000a00| 61 6c 69 74 79 20 6f 75 | 74 70 75 74 20 6f 6e 20 |ality ou|tput on |
|00000a10| 79 6f 75 72 20 70 6f 73 | 74 73 63 72 69 70 74 20 |your pos|tscript |
|00000a20| 70 72 69 6e 74 65 72 2e | 0a 4e 6f 74 65 20 74 68 |printer.|.Note th|
|00000a30| 61 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 77 |at there| is no w|
|00000a40| 61 79 20 74 6f 20 72 65 | 70 72 65 73 65 6e 74 20 |ay to re|present |
|00000a50| 6d 75 6c 74 69 20 70 61 | 67 65 20 64 6f 63 75 6d |multi pa|ge docum|
|00000a60| 65 6e 74 73 20 75 73 69 | 6e 67 20 0a 74 68 65 20 |ents usi|ng .the |
|00000a70| 65 6d 62 65 64 65 64 20 | 70 69 63 74 20 66 6f 72 |embeded |pict for|
|00000a80| 6d 61 74 2e 0a 0a 73 6f | 20 66 61 72 20 69 74 20 |mat...so| far it |
|00000a90| 68 61 73 20 62 65 65 6e | 20 75 73 65 64 20 73 75 |has been| used su|
|00000aa0| 63 65 73 73 66 75 6c 6c | 79 20 77 69 74 68 0a 4d |cessfull|y with.M|
|00000ab0| 53 57 6f 72 64 20 35 20 | 61 6e 64 20 69 74 73 20 |SWord 5 |and its |
|00000ac0| 27 64 72 61 77 27 20 6d | 6f 64 75 6c 65 20 28 20 |'draw' m|odule ( |
|00000ad0| 64 6f 65 73 20 5f 6e 6f | 74 5f 20 77 6f 72 6b 20 |does _no|t_ work |
|00000ae0| 77 69 74 68 20 4d 53 57 | 34 20 6f 72 20 6c 6f 77 |with MSW|4 or low|
|00000af0| 65 72 20 29 0a 4f 7a 54 | 65 58 0a 4b 61 6c 69 64 |er ).OzT|eX.Kalid|
|00000b00| 61 67 72 61 70 68 0a 61 | 20 73 68 6f 72 74 20 6c |agraph.a| short l|
|00000b10| 69 73 74 2c 20 73 69 67 | 68 20 2d 2d 20 61 6e 79 |ist, sig|h -- any|
|00000b20| 74 68 69 6e 67 20 65 6c | 73 65 3f 0a 0a 74 6f 20 |thing el|se?..to |
|00000b30| 6d 61 6b 65 20 75 73 65 | 20 6f 66 20 74 68 69 73 |make use| of this|
|00000b40| 20 70 72 6f 67 72 61 6d | 20 79 6f 75 20 6e 65 65 | program| you nee|
|00000b50| 64 20 67 68 6f 73 74 73 | 63 72 69 70 74 20 61 6e |d ghosts|cript an|
|00000b60| 64 20 70 62 6d 70 6c 75 | 73 0a 0a 2e 2e 61 6e 64 |d pbmplu|s....and|
|00000b70| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 6b 6e 6f | you nee|d to kno|
|00000b80| 77 20 68 6f 77 20 74 6f | 20 74 72 61 6e 73 66 65 |w how to| transfe|
|00000b90| 72 20 61 20 6d 61 63 62 | 69 6e 61 72 79 20 66 69 |r a macb|inary fi|
|00000ba0| 6c 65 20 74 6f 20 79 6f | 75 72 20 6d 61 63 69 6e |le to yo|ur macin|
|00000bb0| 74 6f 73 68 0a 20 69 6e | 20 61 20 6e 75 74 73 68 |tosh. in| a nutsh|
|00000bc0| 65 6c 6c 20 2d 2d 20 73 | 65 74 20 79 6f 75 72 20 |ell -- s|et your |
|00000bd0| 75 6e 69 78 20 74 72 61 | 6e 73 66 65 72 20 70 72 |unix tra|nsfer pr|
|00000be0| 6f 67 72 61 6d 20 74 6f | 20 27 62 69 6e 61 72 79 |ogram to| 'binary|
|00000bf0| 27 20 61 6e 64 20 79 6f | 75 72 0a 20 6d 61 63 69 |' and yo|ur. maci|
|00000c00| 6e 74 6f 73 68 20 74 72 | 61 6e 73 66 65 72 20 70 |ntosh tr|ansfer p|
|00000c10| 72 6f 67 72 61 6d 20 74 | 6f 20 27 6d 61 63 62 69 |rogram t|o 'macbi|
|00000c20| 6e 61 72 79 27 0a 0a 71 | 75 69 63 6b 20 61 6e 64 |nary'..q|uick and|
|00000c30| 20 64 69 72 74 79 20 75 | 73 61 67 65 20 69 73 20 | dirty u|sage is |
|00000c40| 73 69 6d 70 6c 79 0a 70 | 73 32 65 70 73 2d 6d 61 |simply.p|s2eps-ma|
|00000c50| 63 20 66 69 6c 65 2e 70 | 73 0a 2d 77 68 69 63 68 |c file.p|s.-which|
|00000c60| 20 70 72 6f 64 75 63 65 | 73 20 66 69 6c 65 2e 65 | produce|s file.e|
|00000c70| 70 73 2e 62 69 6e 0a 2d | 77 68 69 63 68 20 77 68 |ps.bin.-|which wh|
|00000c80| 65 6e 20 74 72 61 6e 73 | 66 65 72 72 65 64 20 74 |en trans|ferred t|
|00000c90| 6f 20 79 6f 75 72 20 6d | 61 63 20 77 69 6c 6c 20 |o your m|ac will |
|00000ca0| 62 65 20 6e 61 6d 65 64 | 20 22 66 69 6c 65 2e 65 |be named| "file.e|
|00000cb0| 70 73 22 0a 62 79 20 64 | 65 66 61 75 6c 74 20 74 |ps".by d|efault t|
|00000cc0| 68 69 73 20 77 69 6c 6c | 20 62 65 20 61 20 57 6f |his will| be a Wo|
|00000cd0| 72 64 35 20 66 69 6c 65 | 2c 20 64 6f 75 62 6c 65 |rd5 file|, double|
|00000ce0| 20 63 6c 69 63 6b 69 6e | 67 20 6f 6e 20 74 68 69 | clickin|g on thi|
|00000cf0| 73 20 66 69 6c 65 20 77 | 69 6c 6c 20 0a 6f 70 65 |s file w|ill .ope|
|00000d00| 6e 20 69 74 20 69 6e 20 | 77 6f 72 64 35 2c 20 77 |n it in |word5, w|
|00000d10| 69 74 68 20 61 20 6e 69 | 63 65 20 73 63 72 65 65 |ith a ni|ce scree|
|00000d20| 6e 20 69 6d 61 67 65 2e | 0a 0a 59 6f 75 20 63 61 |n image.|..You ca|
|00000d30| 6e 20 65 61 73 69 6c 79 | 20 63 68 61 6e 67 65 20 |n easily| change |
|00000d40| 74 68 65 20 74 79 70 65 | 2f 63 72 65 61 74 6f 72 |the type|/creator|
|00000d50| 20 62 79 20 73 65 74 74 | 69 6e 67 20 73 68 65 6c | by sett|ing shel|
|00000d60| 6c 20 76 61 72 69 61 62 | 6c 65 73 0a 73 6f 20 74 |l variab|les.so t|
|00000d70| 68 61 74 20 74 68 65 20 | 65 70 73 20 66 69 6c 65 |hat the |eps file|
|00000d80| 20 77 69 6c 6c 20 6f 70 | 65 6e 20 69 6e 20 79 6f | will op|en in yo|
|00000d90| 75 72 20 66 61 76 6f 72 | 69 74 65 20 65 70 73 20 |ur favor|ite eps |
|00000da0| 63 6f 6d 70 61 74 69 62 | 6c 65 20 70 72 6f 67 72 |compatib|le progr|
|00000db0| 61 6d 2e 0a 0a 6e 6f 74 | 65 73 2d 2d 2d 2d 2d 2d |am...not|es------|
|00000dc0| 2d 2d 2d 2d 2d 0a 75 73 | 61 67 65 20 0a 20 20 20 |-----.us|age . |
|00000dd0| 70 73 32 65 70 73 2d 6d | 61 63 20 5b 20 6f 70 74 |ps2eps-m|ac [ opt|
|00000de0| 69 6f 6e 73 20 5d 20 66 | 69 6c 65 2e 70 73 0a 6f |ions ] f|ile.ps.o|
|00000df0| 70 74 69 6f 6e 73 20 63 | 61 6e 20 62 65 20 61 6e |ptions c|an be an|
|00000e00| 79 20 6f 66 2e 2e 0a 20 | 2d 71 20 2d 3e 20 71 75 |y of... |-q -> qu|
|00000e10| 69 65 74 20 6d 6f 64 65 | 2c 20 6f 76 65 72 77 72 |iet mode|, overwr|
|00000e20| 69 74 65 73 20 73 63 72 | 61 74 63 68 20 66 69 6c |ites scr|atch fil|
|00000e30| 65 73 20 77 69 74 68 6f | 75 74 20 61 73 6b 69 6e |es witho|ut askin|
|00000e40| 67 0a 20 2d 62 61 74 63 | 68 20 2d 3e 20 73 61 6d |g. -batc|h -> sam|
|00000e50| 65 20 61 73 20 2d 71 0a | 20 2d 64 20 2d 3e 20 77 |e as -q.| -d -> w|
|00000e60| 68 65 72 65 20 74 6f 20 | 70 75 74 20 74 68 65 20 |here to |put the |
|00000e70| 6f 75 74 70 75 74 20 66 | 69 6c 65 2c 20 63 61 6e |output f|ile, can|
|00000e80| 20 62 65 20 22 73 74 64 | 6f 75 74 22 20 74 6f 20 | be "std|out" to |
|00000e90| 70 69 70 65 20 6f 75 74 | 70 75 74 0a 20 20 20 20 |pipe out|put. |
|00000ea0| 20 20 20 74 6f 20 73 74 | 64 6f 75 74 20 28 20 61 | to st|dout ( a|
|00000eb0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 73 65 74 |utomatic|ally set|
|00000ec0| 73 20 22 2d 71 22 20 61 | 6e 64 20 73 65 6e 64 73 |s "-q" a|nd sends|
|00000ed0| 20 65 72 72 6f 72 73 20 | 74 6f 20 61 20 6c 6f 67 | errors |to a log|
|00000ee0| 20 66 69 6c 65 20 29 0a | 20 2d 70 69 70 65 2c 20 | file ).| -pipe, |
|00000ef0| 65 71 69 76 61 6c 65 6e | 74 20 74 6f 20 22 2d 64 |eqivalen|t to "-d|
|00000f00| 20 73 74 64 6f 75 74 22 | 0a 20 2d 6c 6f 67 20 6c | stdout"|. -log l|
|00000f10| 6f 67 66 69 6c 65 20 2d | 3e 20 73 65 6e 64 20 6f |ogfile -|> send o|
|00000f20| 75 74 70 75 74 20 6d 65 | 73 73 61 67 65 73 20 74 |utput me|ssages t|
|00000f30| 6f 20 6c 6f 67 66 69 6c | 65 0a 20 2d 64 65 62 75 |o logfil|e. -debu|
|00000f40| 67 20 6e 20 2d 3e 20 63 | 68 61 6e 67 65 20 64 65 |g n -> c|hange de|
|00000f50| 62 75 67 20 6c 65 76 65 | 6c 20 74 6f 20 6e 0a 20 |bug leve|l to n. |
|00000f60| 2d 77 69 64 65 6e 20 6e | 20 6f 72 20 2d 77 69 64 |-widen n| or -wid|
|00000f70| 65 6e 20 75 6e 73 65 74 | 20 2d 3e 20 6f 76 65 72 |en unset| -> over|
|00000f80| 72 69 64 65 20 64 65 66 | 61 75 6c 74 20 77 69 64 |ride def|ault wid|
|00000f90| 65 6e 62 6f 78 20 76 61 | 6c 75 65 0a 0a 65 6e 76 |enbox va|lue..env|
|00000fa0| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00000fb0| 65 73 0a 73 65 74 65 6e | 76 20 45 50 53 54 59 50 |es.seten|v EPSTYP|
|00000fc0| 45 20 45 50 53 46 0a 73 | 65 74 65 6e 76 20 45 50 |E EPSF.s|etenv EP|
|00000fd0| 53 43 52 45 41 54 4f 52 | 20 4d 53 57 44 0a 74 6f |SCREATOR| MSWD.to|
|00000fe0| 20 73 65 74 20 74 68 65 | 20 74 79 70 65 20 61 6e | set the| type an|
|00000ff0| 64 20 63 72 65 61 74 6f | 72 20 6f 66 20 74 68 65 |d creato|r of the|
|00001000| 20 6d 61 63 69 6e 74 6f | 73 68 20 66 69 6c 65 0a | macinto|sh file.|
|00001010| 74 68 65 20 64 65 66 61 | 75 6c 74 73 20 61 72 65 |the defa|ults are|
|00001020| 20 45 50 53 46 2c 4d 53 | 57 44 20 77 68 69 63 68 | EPSF,MS|WD which|
|00001030| 20 6c 65 74 20 6d 65 20 | 64 6f 75 62 6c 65 20 63 | let me |double c|
|00001040| 6c 69 63 6b 0a 74 6f 20 | 6f 70 65 6e 20 74 68 65 |lick.to |open the|
|00001050| 20 66 69 6c 65 20 69 6e | 20 4d 53 57 6f 72 64 20 | file in| MSWord |
|00001060| 35 2c 20 74 68 65 20 64 | 65 66 61 75 6c 74 73 20 |5, the d|efaults |
|00001070| 61 72 65 20 64 65 66 69 | 6e 65 64 20 69 6e 20 70 |are defi|ned in p|
|00001080| 73 2d 70 69 63 74 32 6d | 61 63 62 69 6e 2e 63 0a |s-pict2m|acbin.c.|
|00001090| 0a 62 65 20 73 75 72 65 | 20 74 68 61 74 20 74 68 |.be sure| that th|
|000010a0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 72 65 20 |e follow|ing are |
|000010b0| 6f 6e 20 79 6f 75 72 20 | 70 61 74 68 2c 20 6f 72 |on your |path, or|
|000010c0| 20 61 72 65 20 69 6e 20 | 74 68 65 0a 20 24 70 73 | are in |the. $ps|
|000010d0| 32 65 70 73 64 69 72 20 | 64 69 72 65 63 74 6f 72 |2epsdir |director|
|000010e0| 79 20 6c 69 73 74 0a 0a | 70 73 2d 70 69 63 74 32 |y list..|ps-pict2|
|000010f0| 6d 61 63 62 69 6e 0a 65 | 72 5f 65 63 68 6f 20 20 |macbin.e|r_echo |
|00001100| 3c 77 65 6c 6c 2c 20 79 | 6f 75 20 63 6f 75 6c 64 |<well, y|ou could|
|00001110| 20 6c 69 76 65 20 77 69 | 74 68 6f 75 74 20 74 68 | live wi|thout th|
|00001120| 69 73 2e 2e 3e 0a 20 28 | 20 69 6e 20 74 68 65 20 |is..>. (| in the |
|00001130| 70 73 32 65 70 73 2d 6d | 61 63 20 73 68 65 6c 6c |ps2eps-m|ac shell|
|00001140| 20 61 72 63 68 69 76 65 | 20 29 0a 0a 70 6e 6d 63 | archive| )..pnmc|
|00001150| 72 6f 70 20 5f 6f 72 5f | 20 70 6e 6d 63 75 74 20 |rop _or_| pnmcut |
|00001160| 20 3c 20 70 6e 6d 63 75 | 74 20 77 6f 72 6b 73 20 | < pnmcu|t works |
|00001170| 62 65 74 74 65 72 20 69 | 20 74 68 69 6e 6b 2c 20 |better i| think, |
|00001180| 67 65 74 20 62 6f 74 68 | 20 69 66 20 79 6f 75 20 |get both| if you |
|00001190| 63 61 6e 20 3e 0a 70 62 | 6d 74 6f 65 70 73 69 20 |can >.pb|mtoepsi |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011b0| 20 20 20 20 20 0a 70 70 | 6d 74 6f 70 69 63 74 20 | .pp|mtopict |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011d0| 20 20 20 20 20 0a 20 28 | 20 65 78 70 6f 72 74 2e | . (| export.|
|000011e0| 6c 63 73 2e 6d 69 74 2e | 65 64 75 20 3b 20 63 6f |lcs.mit.|edu ; co|
|000011f0| 6e 74 72 69 62 2f 70 62 | 6d 2a 20 29 0a 0a 67 73 |ntrib/pb|m* )..gs|
|00001200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 28 | | . (|
|00001220| 20 70 72 65 70 2e 61 69 | 2e 6d 69 74 2e 65 64 75 | prep.ai|.mit.edu|
|00001230| 20 3b 20 70 75 62 2f 67 | 6e 75 2f 67 68 6f 73 74 | ; pub/g|nu/ghost|
|00001240| 2a 20 29 20 0a 0a 6d 61 | 63 70 73 0a 20 28 20 73 |* ) ..ma|cps. ( s|
|00001250| 75 6d 65 78 2d 61 69 6d | 2e 73 74 61 6e 66 6f 72 |umex-aim|.stanfor|
|00001260| 64 2e 65 64 75 20 3b 20 | 69 6e 66 6f 2d 6d 61 63 |d.edu ; |info-mac|
|00001270| 2f 75 6e 69 78 20 29 0a | 20 6d 61 63 70 73 20 69 |/unix ).| macps i|
|00001280| 73 20 6e 65 65 64 65 64 | 20 69 66 20 74 68 65 20 |s needed| if the |
|00001290| 6f 72 69 67 69 6e 61 6c | 20 70 73 20 66 69 6c 65 |original| ps file|
|000012a0| 20 69 73 20 61 20 6d 61 | 63 69 6e 74 6f 73 68 0a | is a ma|cintosh.|
|000012b0| 20 6c 61 73 65 72 77 72 | 69 74 65 72 20 64 72 69 | laserwr|iter dri|
|000012c0| 76 65 72 20 64 75 6d 70 | 0a 0a 61 63 6b 6e 6f 77 |ver dump|..acknow|
|000012d0| 6c 65 64 67 65 6d 65 6e | 74 73 20 20 2d 2d 20 69 |ledgemen|ts -- i|
|000012e0| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |n additi|on to th|
|000012f0| 65 20 61 62 6f 76 65 20 | 70 72 6f 67 72 61 6d 73 |e above |programs|
|00001300| 2c 20 49 20 6c 65 61 72 | 6e 65 64 20 61 20 6c 6f |, I lear|ned a lo|
|00001310| 74 0a 28 20 61 6e 64 20 | 6d 61 79 62 65 20 62 6f |t.( and |maybe bo|
|00001320| 72 72 6f 77 65 64 20 73 | 6f 6d 65 20 63 6f 64 65 |rrowed s|ome code|
|00001330| 2e 2e 20 29 20 66 72 6f | 6d 20 0a 0a 6d 63 76 65 |.. ) fro|m ..mcve|
|00001340| 72 74 0a 6d 61 63 62 69 | 6e 0a 70 73 32 65 70 73 |rt.macbi|n.ps2eps|
|00001350| 66 20 20 44 6f 75 67 20 | 43 72 61 62 69 6c 6c 20 |f Doug |Crabill |
|00001360| 6d 61 79 20 6e 6f 74 69 | 63 65 20 74 68 61 74 20 |may noti|ce that |
|00001370| 74 68 69 73 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |this she|ll scrip|
|00001380| 74 20 62 65 61 72 73 20 | 73 6f 6d 65 0a 20 20 20 |t bears |some. |
|00001390| 20 20 20 20 20 20 72 65 | 73 65 6d 62 6c 65 6e 63 | re|semblenc|
|000013a0| 65 20 74 6f 20 68 69 73 | 20 73 63 72 69 70 74 20 |e to his| script |
|000013b0| 28 20 77 68 69 63 68 20 | 63 72 65 61 74 65 73 20 |( which |creates |
|000013c0| 61 20 70 63 20 63 6f 6d | 70 61 74 61 62 6c 65 20 |a pc com|patable |
|000013d0| 66 69 6c 65 20 29 0a 0a | 74 68 65 20 6d 61 6e 20 |file )..|the man |
|000013e0| 70 61 67 65 20 77 61 73 | 20 63 6f 6e 74 72 69 62 |page was| contrib|
|000013f0| 75 74 65 64 20 62 79 20 | 6a 63 40 6d 73 63 2e 65 |uted by |jc@msc.e|
|00001400| 64 75 0a 0a 6b 6e 6f 77 | 6e 20 62 75 67 73 0a 0a |du..know|n bugs..|
|00001410| 74 72 61 6e 73 6c 61 74 | 69 6e 67 20 6c 69 6e 65 |translat|ing line|
|00001420| 20 65 6e 64 69 6e 67 73 | 20 77 69 74 68 20 74 72 | endings| with tr|
|00001430| 20 69 73 20 62 6f 75 6e | 64 20 74 6f 20 6d 65 73 | is boun|d to mes|
|00001440| 73 20 75 70 20 61 6e 79 | 20 62 69 6e 61 72 79 20 |s up any| binary |
|00001450| 73 74 75 66 66 0a 20 69 | 6e 20 74 68 65 20 73 6f |stuff. i|n the so|
|00001460| 75 72 63 65 20 70 6f 73 | 74 73 63 72 69 70 74 20 |urce pos|tscript |
|00001470| 20 2d 2d 20 74 72 79 20 | 70 6c 61 79 69 6e 67 20 | -- try |playing |
|00001480| 77 69 74 68 20 74 68 65 | 20 74 72 61 6e 73 6c 61 |with the| transla|
|00001490| 74 65 20 6f 70 74 69 6f | 6e 73 0a 20 69 66 20 73 |te optio|ns. if s|
|000014a0| 6f 6d 65 6f 6e 65 20 6b | 6e 6f 77 73 20 61 20 66 |omeone k|nows a f|
|000014b0| 6f 6f 6c 70 72 6f 6f 66 | 20 77 61 79 20 74 6f 20 |oolproof| way to |
|000014c0| 64 6f 20 6c 69 6e 65 20 | 65 6e 64 69 6e 67 20 74 |do line |ending t|
|000014d0| 72 61 6e 73 6c 61 74 69 | 6f 6e 2c 0a 20 70 6c 65 |ranslati|on,. ple|
|000014e0| 61 73 65 20 67 69 76 65 | 20 6d 65 20 61 20 63 61 |ase give| me a ca|
|000014f0| 6c 6c 2e 2e 2e 0a 0a 65 | 78 70 6c 69 6e 61 74 69 |ll.....e|xplinati|
|00001500| 6f 6e 20 6f 66 20 6f 70 | 74 69 6f 6e 73 20 74 68 |on of op|tions th|
|00001510| 61 74 20 63 61 6e 20 62 | 65 20 73 65 74 20 69 6e |at can b|e set in|
|00001520| 20 74 68 65 20 70 73 32 | 65 70 73 2d 6d 61 63 20 | the ps2|eps-mac |
|00001530| 73 63 72 69 70 74 20 0a | 7b 20 66 6f 72 20 63 73 |script .|{ for cs|
|00001540| 68 20 6e 6f 76 69 63 65 | 73 2e 2e 2e 0a 20 20 61 |h novice|s.... a|
|00001550| 20 73 68 65 6c 6c 20 76 | 61 72 69 61 62 6c 65 20 | shell v|ariable |
|00001560| 63 61 6e 20 62 65 20 27 | 73 65 74 27 0a 20 20 73 |can be '|set'. s|
|00001570| 65 74 20 78 0a 20 20 6f | 72 20 73 65 74 20 74 6f |et x. o|r set to|
|00001580| 20 61 20 76 61 6c 75 65 | 0a 20 20 73 65 74 20 78 | a value|. set x|
|00001590| 20 3d 20 31 0a 20 20 6f | 72 20 73 65 74 20 74 6f | = 1. o|r set to|
|000015a0| 20 61 20 6c 69 73 74 0a | 20 20 73 65 74 20 78 20 | a list.| set x |
|000015b0| 3d 20 28 20 31 20 41 20 | 34 2e 35 20 29 0a 20 20 |= ( 1 A |4.5 ). |
|000015c0| 74 68 65 20 6c 69 6e 65 | 2c 0a 20 20 23 73 65 74 |the line|,. #set|
|000015d0| 20 78 0a 20 20 69 73 20 | 63 6f 6d 6d 65 6e 74 65 | x. is |commente|
|000015e0| 64 20 6f 75 74 2c 20 74 | 68 75 73 20 28 20 75 6e |d out, t|hus ( un|
|000015f0| 6c 65 73 73 20 70 72 65 | 76 69 6f 75 73 6c 79 20 |less pre|viously |
|00001600| 73 65 74 20 29 20 78 20 | 69 73 20 27 75 6e 73 65 |set ) x |is 'unse|
|00001610| 74 27 0a 0a 20 20 69 6e | 20 74 68 69 73 20 70 72 |t'.. in| this pr|
|00001620| 6f 67 72 61 6d 2c 20 61 | 6c 6c 20 6f 66 20 74 68 |ogram, a|ll of th|
|00001630| 65 20 76 61 72 69 61 62 | 6c 65 73 20 69 6e 20 74 |e variab|les in t|
|00001640| 68 65 20 6f 70 74 69 6f | 6e 73 20 73 65 63 74 69 |he optio|ns secti|
|00001650| 6f 6e 0a 20 20 6d 61 79 | 20 62 65 20 27 73 65 74 |on. may| be 'set|
|00001660| 27 20 6f 72 20 27 75 6e | 73 65 74 27 2e 20 20 53 |' or 'un|set'. S|
|00001670| 6f 6d 65 20 6f 66 20 74 | 68 65 6d 20 2d 20 77 68 |ome of t|hem - wh|
|00001680| 65 72 65 20 69 6e 64 69 | 63 61 74 65 64 20 2d 0a |ere indi|cated -.|
|00001690| 20 20 6d 75 73 74 20 62 | 65 20 73 65 74 20 74 6f | must b|e set to|
|000016a0| 20 76 61 6c 75 65 73 2c | 20 69 66 20 74 68 65 79 | values,| if they|
|000016b0| 20 61 72 65 20 73 65 74 | 2e 20 20 20 20 20 20 7d | are set|. }|
|000016c0| 0a 0a 23 73 65 74 20 70 | 73 32 65 70 73 64 69 72 |..#set p|s2epsdir|
|000016d0| 20 3d 20 20 28 20 2f 75 | 73 72 2f 6e 65 77 2f 62 | = ( /u|sr/new/b|
|000016e0| 69 6e 20 29 0a 0a 61 64 | 64 20 64 69 72 65 63 74 |in )..ad|d direct|
|000016f0| 6f 72 69 65 73 20 74 6f | 20 79 6f 75 72 20 73 65 |ories to| your se|
|00001700| 61 72 63 68 20 70 61 74 | 68 2e 0a 79 6f 75 20 6d |arch pat|h..you m|
|00001710| 69 67 68 74 20 6e 65 65 | 64 20 68 65 72 65 20 74 |ight nee|d here t|
|00001720| 68 65 20 64 69 72 65 63 | 74 6f 72 79 73 20 63 6f |he direc|torys co|
|00001730| 6e 74 61 69 6e 69 6e 67 | 20 0a 67 73 2c 20 70 62 |ntaining| .gs, pb|
|00001740| 6d 20 73 74 75 66 66 2c | 20 74 68 65 20 70 73 2d |m stuff,| the ps-|
|00001750| 70 69 63 74 32 6d 61 63 | 62 69 6e 20 65 78 65 63 |pict2mac|bin exec|
|00001760| 75 74 61 62 6c 65 0a 0a | 6c 69 6e 65 20 65 6e 64 |utable..|line end|
|00001770| 69 6e 67 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |ing tran|slation |
|00001780| 6f 70 74 69 6f 6e 73 20 | 2d 2d 20 61 20 63 6f 6e |options |-- a con|
|00001790| 63 65 72 6e 20 6f 6e 6c | 79 20 69 66 20 79 6f 75 |cern onl|y if you|
|000017a0| 72 20 70 73 20 63 6f 6e | 74 61 69 6e 73 0a 76 65 |r ps con|tains.ve|
|000017b0| 72 79 20 6c 6f 6e 67 20 | 6c 69 6e 65 73 20 6f 72 |ry long |lines or|
|000017c0| 20 62 69 6e 61 72 79 20 | 64 61 74 61 20 28 20 69 | binary |data ( i|
|000017d0| 6e 63 6c 75 64 65 64 20 | 66 6f 6e 74 73 20 61 6e |ncluded |fonts an|
|000017e0| 64 20 73 75 63 68 20 29 | 0a 0a 23 73 65 74 20 6e |d such )|..#set n|
|000017f0| 6f 74 72 61 6e 73 6c 61 | 74 65 0a 0a 6c 65 61 76 |otransla|te..leav|
|00001800| 65 20 75 6e 69 78 20 6c | 69 6e 65 20 65 6e 64 69 |e unix l|ine endi|
|00001810| 6e 67 73 20 65 76 65 72 | 79 77 68 65 72 65 0a 6e |ngs ever|ywhere.n|
|00001820| 6f 74 72 61 6e 73 6c 61 | 74 65 20 5f 64 6f 65 73 |otransla|te _does|
|00001830| 5f 6e 6f 74 5f 77 6f 72 | 6b 5f 20 77 69 74 68 20 |_not_wor|k_ with |
|00001840| 6d 73 77 6f 72 64 2e 20 | 2d 2d 20 64 6f 65 73 20 |msword. |-- does |
|00001850| 69 74 20 77 6f 72 6b 20 | 77 69 74 68 20 61 6e 79 |it work |with any|
|00001860| 74 68 69 6e 67 3f 3f 3f | 0a 0a 23 73 65 74 20 6e |thing???|..#set n|
|00001870| 6f 74 72 61 6e 73 66 69 | 6c 65 0a 0a 73 65 74 20 |otransfi|le..set |
|00001880| 6e 6f 74 72 61 6e 73 6c | 61 74 65 66 69 6c 65 20 |notransl|atefile |
|00001890| 74 6f 20 70 75 74 20 6d | 61 63 20 6c 69 6e 65 20 |to put m|ac line |
|000018a0| 65 6e 64 69 6e 67 73 20 | 6f 6e 20 6f 6e 6c 79 20 |endings |on only |
|000018b0| 74 68 65 20 66 69 72 73 | 74 0a 74 77 6f 20 6c 69 |the firs|t.two li|
|000018c0| 6e 65 73 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |nes of t|he file |
|000018d0| 2d 2d 20 74 68 69 73 20 | 69 73 20 61 20 6c 69 74 |-- this |is a lit|
|000018e0| 74 6c 65 20 77 69 65 72 | 64 20 62 75 74 20 69 74 |tle wier|d but it|
|000018f0| 20 73 65 65 6d 73 0a 74 | 6f 20 77 6f 72 6b 2e 20 | seems.t|o work. |
|00001900| 20 49 20 61 6d 20 72 65 | 61 6c 6c 79 20 63 75 72 | I am re|ally cur|
|00001910| 69 6f 75 73 20 69 66 20 | 74 68 69 73 20 69 73 20 |ious if |this is |
|00001920| 6f 6b 20 77 69 74 68 20 | 70 73 20 69 6e 74 65 72 |ok with |ps inter|
|00001930| 70 72 65 74 65 72 73 0a | 6c 69 6b 65 20 66 72 65 |preters.|like fre|
|00001940| 65 64 6f 6d 20 6f 66 20 | 74 68 65 20 70 72 65 73 |edom of |the pres|
|00001950| 73 2e 20 20 54 68 69 73 | 20 27 61 69 6e 74 20 67 |s. This| 'aint g|
|00001960| 6f 6e 6e 61 20 77 6f 72 | 6b 20 77 68 65 6e 20 74 |onna wor|k when t|
|00001970| 68 65 20 0a 65 78 69 73 | 74 69 6e 67 20 62 6f 75 |he .exis|ting bou|
|00001980| 6e 64 69 6e 67 20 62 6f | 78 20 69 73 20 75 73 65 |nding bo|x is use|
|00001990| 64 20 28 20 73 65 65 20 | 62 62 69 6e 66 6f 20 62 |d ( see |bbinfo b|
|000019a0| 65 6c 6f 77 20 29 0a 0a | 23 73 65 74 20 68 61 76 |elow )..|#set hav|
|000019b0| 65 6d 61 63 70 73 0a 0a | 75 6e 63 6f 6d 6d 65 6e |emacps..|uncommen|
|000019c0| 74 20 6f 6e 6c 79 20 69 | 66 20 79 6f 75 20 68 61 |t only i|f you ha|
|000019d0| 76 65 20 6d 61 63 70 73 | 20 61 6e 64 20 79 6f 75 |ve macps| and you|
|000019e0| 20 6d 69 67 68 74 20 62 | 65 20 70 72 6f 63 65 73 | might b|e proces|
|000019f0| 73 69 6e 67 0a 61 20 6d | 61 63 20 6c 61 73 65 72 |sing.a m|ac laser|
|00001a00| 77 72 69 74 65 72 20 64 | 72 69 76 65 72 20 67 65 |writer d|river ge|
|00001a10| 6e 65 72 61 74 65 64 20 | 66 69 6c 65 20 28 20 62 |nerated |file ( b|
|00001a20| 65 77 61 72 65 2c 20 79 | 6f 75 20 61 72 65 20 6f |eware, y|ou are o|
|00001a30| 6e 20 74 68 69 6e 20 69 | 63 65 2e 2e 20 29 0a 74 |n thin i|ce.. ).t|
|00001a40| 79 70 69 63 61 6c 6c 79 | 20 79 6f 75 72 20 27 65 |ypically| your 'e|
|00001a50| 70 73 27 20 66 69 6c 65 | 20 77 69 6c 6c 20 6f 6e |ps' file| will on|
|00001a60| 6c 79 20 70 72 69 6e 74 | 20 66 72 6f 6d 20 61 20 |ly print| from a |
|00001a70| 6d 61 63 20 72 75 6e 6e | 69 6e 67 20 61 20 63 65 |mac runn|ing a ce|
|00001a80| 72 74 61 69 6e 0a 6c 61 | 73 65 72 77 72 69 74 65 |rtain.la|serwrite|
|00001a90| 72 20 64 72 69 76 65 72 | 2e 0a 0a 23 73 65 74 20 |r driver|...#set |
|00001aa0| 6e 6f 73 68 6f 77 70 61 | 67 65 0a 75 6e 63 6f 6d |noshowpa|ge.uncom|
|00001ab0| 6d 65 6e 74 20 74 6f 20 | 61 64 64 20 6c 69 6e 65 |ment to |add line|
|00001ac0| 20 74 6f 20 75 6e 64 65 | 66 69 6e 65 20 73 68 6f | to unde|fine sho|
|00001ad0| 77 70 61 67 65 20 69 6e | 20 74 68 65 20 70 6f 73 |wpage in| the pos|
|00001ae0| 74 73 63 72 69 70 74 20 | 5b 2f 73 68 6f 77 70 61 |tscript |[/showpa|
|00001af0| 67 65 20 7b 7d 20 64 65 | 66 5d 0a 6f 6e 6c 79 20 |ge {} de|f].only |
|00001b00| 6e 65 63 65 73 73 61 72 | 79 20 69 66 2e 2e 0a 31 |necessar|y if...1|
|00001b10| 29 79 6f 75 72 20 70 73 | 20 63 6f 6e 74 61 69 6e |)your ps| contain|
|00001b20| 73 20 73 68 6f 77 70 61 | 67 65 0a 32 29 20 79 6f |s showpa|ge.2) yo|
|00001b30| 75 72 20 6d 61 63 20 61 | 70 70 6c 69 63 61 74 69 |ur mac a|pplicati|
|00001b40| 6f 6e 20 64 6f 65 73 6e | 27 74 20 6c 69 6b 65 20 |on doesn|'t like |
|00001b50| 69 74 20 28 20 65 67 20 | 57 6f 72 64 20 29 0a 2e |it ( eg |Word )..|
|00001b60| 2e 62 75 74 20 69 74 20 | 73 68 6f 75 6c 64 20 6e |.but it |should n|
|00001b70| 65 76 65 72 20 68 75 72 | 74 2e 2e 20 28 20 79 65 |ever hur|t.. ( ye|
|00001b80| 61 20 72 69 67 68 74 20 | 29 0a 0a 23 73 65 74 20 |a right |)..#set |
|00001b90| 64 65 6e 73 69 74 79 20 | 3d 20 37 32 20 20 20 20 |density |= 72 |
|00001ba0| 20 20 20 20 0a 0a 64 6f | 20 6e 6f 74 20 75 73 65 | ..do| not use|
|00001bb0| 20 74 68 69 73 20 2d 2d | 20 63 68 61 6e 67 69 6e | this --| changin|
|00001bc0| 67 20 74 68 65 20 64 65 | 6e 73 69 74 79 20 63 68 |g the de|nsity ch|
|00001bd0| 61 6e 67 65 73 20 74 68 | 65 20 5f 73 69 7a 65 5f |anges th|e _size_|
|00001be0| 20 6e 6f 74 20 74 68 65 | 0a 72 65 73 6f 6c 75 74 | not the|.resolut|
|00001bf0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 70 69 63 74 20 |ion of t|he pict |
|00001c00| 69 6d 61 67 65 20 2c 20 | 73 69 67 68 2e 20 20 49 |image , |sigh. I|
|00001c10| 66 20 73 6f 6d 6f 6e 65 | 20 27 66 69 78 65 73 27 |f somone| 'fixes'|
|00001c20| 20 70 70 6d 74 6f 70 69 | 63 74 20 74 6f 0a 68 61 | ppmtopi|ct to.ha|
|00001c30| 76 65 20 61 20 72 65 73 | 6f 6c 75 74 69 6f 6e 20 |ve a res|olution |
|00001c40| 6f 70 74 69 6f 6e 20 6d | 65 20 61 6e 64 20 6d 79 |option m|e and my|
|00001c50| 20 64 65 73 6b 77 72 69 | 74 65 72 20 77 69 6c 6c | deskwri|ter will|
|00001c60| 20 62 65 20 67 72 65 61 | 74 66 75 6c 2e 0a 28 20 | be grea|tful..( |
|00001c70| 76 61 6c 75 65 20 72 65 | 71 75 69 72 65 64 2c 20 |value re|quired, |
|00001c80| 69 66 20 73 65 74 20 29 | 0a 0a 73 65 74 20 77 69 |if set )|..set wi|
|00001c90| 64 65 6e 62 6f 78 20 3d | 20 31 0a 0a 74 68 65 20 |denbox =| 1..the |
|00001ca0| 62 6f 75 6e 64 69 6e 67 | 20 62 6f 78 20 73 6f 6d |bounding| box som|
|00001cb0| 65 74 69 6d 65 73 20 63 | 68 6f 70 73 20 6f 66 66 |etimes c|hops off|
|00001cc0| 20 65 64 67 65 73 20 6f | 66 20 70 69 63 74 75 72 | edges o|f pictur|
|00001cd0| 65 2c 20 74 68 69 73 20 | 75 73 65 73 20 61 20 68 |e, this |uses a h|
|00001ce0| 61 63 6b 20 74 6f 20 0a | 77 69 64 65 6e 20 74 68 |ack to .|widen th|
|00001cf0| 65 20 62 62 20 62 79 20 | 24 77 69 64 65 6e 62 6f |e bb by |$widenbo|
|00001d00| 78 20 70 6f 69 6e 74 73 | 20 0a 61 6e 20 65 72 72 |x points| .an err|
|00001d10| 6f 72 20 77 69 6c 6c 20 | 72 65 73 75 6c 74 20 69 |or will |result i|
|00001d20| 66 20 74 68 65 20 27 6e | 65 77 27 20 62 6f 75 6e |f the 'n|ew' boun|
|00001d30| 64 69 6e 67 20 62 6f 78 | 20 67 6f 65 73 20 62 65 |ding box| goes be|
|00001d40| 79 6f 6e 64 20 74 68 65 | 0a 65 64 67 65 20 6f 66 |yond the|.edge of|
|00001d50| 20 67 68 6f 73 74 73 63 | 72 69 70 74 73 20 27 70 | ghostsc|ripts 'p|
|00001d60| 61 67 65 27 20 2d 2d 20 | 69 66 20 79 6f 75 72 20 |age' -- |if your |
|00001d70| 70 73 20 64 72 61 77 73 | 20 61 74 20 74 68 65 20 |ps draws| at the |
|00001d80| 6f 72 69 67 69 6e 20 74 | 68 65 6e 0a 79 6f 75 20 |origin t|hen.you |
|00001d90| 63 61 6e 74 20 77 69 64 | 65 6e 20 74 68 65 20 62 |cant wid|en the b|
|00001da0| 6f 78 20 28 20 74 72 79 | 20 75 73 69 6e 67 20 61 |ox ( try| using a|
|00001db0| 20 74 72 61 6e 73 6c 61 | 74 65 20 69 6e 20 74 68 | transla|te in th|
|00001dc0| 65 20 73 6f 75 72 63 65 | 20 70 73 20 29 0a 6e 6f |e source| ps ).no|
|00001dd0| 74 65 20 2d 2d 20 73 65 | 74 20 77 69 64 65 6e 62 |te -- se|t widenb|
|00001de0| 6f 78 20 3d 20 30 20 69 | 73 20 6e 6f 74 20 65 78 |ox = 0 i|s not ex|
|00001df0| 61 63 74 6c 79 20 74 68 | 65 20 73 61 6d 65 20 61 |actly th|e same a|
|00001e00| 73 20 6c 65 61 76 69 6e | 67 20 77 69 64 65 6e 62 |s leavin|g widenb|
|00001e10| 6f 78 20 75 6e 73 65 74 | 0a 2d 2d 20 70 6e 6d 63 |ox unset|.-- pnmc|
|00001e20| 75 74 20 69 73 20 75 73 | 65 64 20 72 61 74 68 65 |ut is us|ed rathe|
|00001e30| 72 20 74 68 61 6e 20 70 | 6e 6d 63 72 6f 70 20 28 |r than p|nmcrop (|
|00001e40| 20 69 6e 20 70 72 69 63 | 69 70 6c 65 20 74 68 65 | in pric|iple the|
|00001e50| 20 73 61 6d 65 20 72 65 | 73 75 6c 74 20 62 79 20 | same re|sult by |
|00001e60| 61 20 0a 64 69 66 66 65 | 72 65 6e 74 20 6d 65 74 |a .diffe|rent met|
|00001e70| 68 6f 64 20 29 0a 77 69 | 64 65 6e 62 6f 78 20 63 |hod ).wi|denbox c|
|00001e80| 61 6e 20 6e 6f 77 20 62 | 65 20 64 65 66 69 6e 65 |an now b|e define|
|00001e90| 64 20 6f 6e 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |d on the| command|
|00001ea0| 20 6c 69 6e 65 20 61 73 | 20 77 65 6c 6c 20 28 20 | line as| well ( |
|00001eb0| 73 65 65 20 75 73 61 67 | 65 20 29 0a 77 68 61 74 |see usag|e ).what|
|00001ec0| 65 76 65 72 20 79 6f 75 | 20 64 6f 20 77 69 74 68 |ever you| do with|
|00001ed0| 20 69 74 20 68 65 72 65 | 20 69 73 20 74 68 65 20 | it here| is the |
|00001ee0| 64 65 66 61 75 6c 74 2e | 0a 28 20 76 61 6c 75 65 |default.|.( value|
|00001ef0| 20 72 65 71 75 69 72 65 | 64 2c 20 69 66 20 73 65 | require|d, if se|
|00001f00| 74 20 20 2a 69 6e 74 65 | 67 65 72 20 6f 6e 6c 79 |t *inte|ger only|
|00001f10| 2a 20 29 0a 0a 23 73 65 | 74 20 62 62 69 6e 66 6f |* )..#se|t bbinfo|
|00001f20| 0a 0a 77 69 74 68 20 62 | 62 69 6e 66 6f 20 6e 6f |..with b|binfo no|
|00001f30| 74 20 73 65 74 2c 20 75 | 73 65 20 74 68 65 20 62 |t set, u|se the b|
|00001f40| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 69 6e 20 74 |ounding |box in t|
|00001f50| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 70 73 20 66 |he origi|nal ps f|
|00001f60| 69 6c 65 0a 28 20 69 66 | 20 6f 6e 65 20 65 78 69 |ile.( if| one exi|
|00001f70| 73 74 73 20 29 20 2d 2d | 20 72 65 71 75 69 72 65 |sts ) --| require|
|00001f80| 73 20 77 69 64 65 6e 62 | 6f 78 20 74 6f 20 62 65 |s widenb|ox to be|
|00001f90| 20 73 65 74 20 61 73 20 | 77 65 6c 6c 2e 0a 62 62 | set as |well..bb|
|00001fa0| 69 6e 66 6f 20 75 6e 73 | 65 74 2c 20 61 6e 64 20 |info uns|et, and |
|00001fb0| 77 69 64 65 6e 62 6f 78 | 20 3d 20 30 0a 6c 65 61 |widenbox| = 0.lea|
|00001fc0| 76 65 73 20 74 68 65 20 | 70 6f 73 74 73 63 72 69 |ves the |postscri|
|00001fd0| 70 74 20 27 64 61 74 61 | 20 66 6f 72 6b 27 20 63 |pt 'data| fork' c|
|00001fe0| 6f 6d 70 6c 65 74 65 6c | 79 0a 6f 72 69 67 69 6e |ompletel|y.origin|
|00001ff0| 61 6c 20 69 66 20 74 68 | 65 20 6f 72 69 67 69 6e |al if th|e origin|
|00002000| 61 6c 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 73 |al file |contains|
|00002010| 20 61 20 62 6f 75 6e 64 | 69 6e 67 20 62 6f 78 2e | a bound|ing box.|
|00002020| 20 20 4f 66 20 63 6f 75 | 72 73 65 2c 20 69 66 0a | Of cou|rse, if.|
|00002030| 74 68 65 20 65 78 69 73 | 74 69 6e 67 20 62 6f 75 |the exis|ting bou|
|00002040| 6e 64 69 6e 67 20 62 6f | 78 20 69 73 20 77 72 6f |nding bo|x is wro|
|00002050| 6e 67 20 79 6f 75 20 77 | 69 6c 6c 20 67 65 74 20 |ng you w|ill get |
|00002060| 67 61 72 62 61 67 65 2e | 0a 0a 73 65 74 20 77 69 |garbage.|..set wi|
|00002070| 64 65 6e 62 6f 78 62 62 | 20 3d 20 30 0a 0a 69 66 |denboxbb| = 0..if|
|00002080| 20 73 65 74 2c 20 77 69 | 64 65 6e 62 6f 78 62 62 | set, wi|denboxbb|
|00002090| 20 6f 76 65 72 72 69 64 | 65 73 20 77 69 64 65 6e | overrid|es widen|
|000020a0| 62 6f 78 20 69 6e 20 63 | 61 73 65 73 20 77 68 65 |box in c|ases whe|
|000020b0| 72 65 20 65 78 69 73 74 | 69 6e 67 20 0a 62 6f 75 |re exist|ing .bou|
|000020c0| 6e 64 69 6e 67 20 62 6f | 78 20 69 73 20 75 73 65 |nding bo|x is use|
|000020d0| 64 20 28 20 74 79 70 69 | 63 61 6c 6c 79 20 74 68 |d ( typi|cally th|
|000020e0| 69 73 20 73 68 6f 75 6c | 64 20 62 65 20 7a 65 72 |is shoul|d be zer|
|000020f0| 6f 20 49 20 67 75 65 73 | 73 2e 20 29 0a 77 69 64 |o I gues|s. ).wid|
|00002100| 65 6e 62 6f 78 20 73 74 | 69 6c 6c 20 6d 75 73 74 |enbox st|ill must|
|00002110| 20 62 65 20 73 65 74 20 | 74 6f 20 73 6f 6d 65 74 | be set |to somet|
|00002120| 68 69 6e 67 20 66 6f 72 | 20 74 68 69 73 20 74 6f |hing for| this to|
|00002130| 20 68 61 70 70 65 6e 2e | 0a 69 65 2e 20 74 68 65 | happen.|.ie. the|
|00002140| 20 64 65 66 61 75 6c 74 | 20 6f 70 65 72 61 74 69 | default| operati|
|00002150| 6f 6e 20 69 73 0a 6e 6f | 20 62 6f 75 6e 64 69 6e |on is.no| boundin|
|00002160| 67 20 62 6f 78 20 69 6e | 20 6f 72 69 67 69 6e 61 |g box in| origina|
|00002170| 6c 20 66 69 6c 65 20 2d | 3e 20 63 61 6c 63 75 6c |l file -|> calcul|
|00002180| 61 74 65 20 61 20 62 6f | 78 20 61 6e 64 20 77 69 |ate a bo|x and wi|
|00002190| 64 65 6e 20 62 79 20 31 | 20 70 6f 69 6e 74 0a 62 |den by 1| point.b|
|000021a0| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 69 6e 20 6f |ounding |box in o|
|000021b0| 72 69 67 69 6e 61 6c 20 | 66 69 6c 65 20 2d 3e 20 |riginal |file -> |
|000021c0| 75 73 65 20 69 74 2c 20 | 6e 6f 20 6d 6f 64 69 66 |use it, |no modif|
|000021d0| 69 63 61 74 69 6f 6e 20 | 61 74 20 61 6c 6c 20 74 |ication |at all t|
|000021e0| 6f 20 70 6f 73 74 73 63 | 72 69 70 74 0a 28 20 76 |o postsc|ript.( v|
|000021f0| 61 6c 75 65 20 72 65 71 | 75 69 72 65 64 2c 20 69 |alue req|uired, i|
|00002200| 66 20 73 65 74 20 29 0a | 0a 70 6c 65 61 73 65 20 |f set ).|.please |
|00002210| 69 6e 66 6f 72 6d 20 6d | 65 2c 20 69 66 20 79 6f |inform m|e, if yo|
|00002220| 75 20 68 61 76 65 20 70 | 72 6f 62 6c 65 6d 73 20 |u have p|roblems |
|00002230| 77 69 74 68 20 77 69 64 | 65 6e 62 6f 78 2c 20 61 |with wid|enbox, a|
|00002240| 73 20 74 68 65 20 70 6e | 6d 63 72 6f 70 0a 6d 65 |s the pn|mcrop.me|
|00002250| 74 68 6f 64 20 6f 66 20 | 63 72 6f 70 70 69 6e 67 |thod of |cropping|
|00002260| 20 74 68 65 20 70 69 63 | 74 20 77 69 6c 6c 20 62 | the pic|t will b|
|00002270| 65 20 6c 65 66 74 20 6f | 75 74 20 6f 66 20 66 75 |e left o|ut of fu|
|00002280| 74 75 72 65 20 76 65 72 | 73 69 6f 6e 73 0a 69 66 |ture ver|sions.if|
|00002290| 20 69 74 20 69 73 20 6e | 6f 74 20 6e 65 65 64 65 | it is n|ot neede|
|000022a0| 64 2e 0a 0a 73 65 74 20 | 65 72 72 6f 72 20 3d 20 |d...set |error = |
|000022b0| 65 72 5f 65 63 68 6f 0a | 0a 65 72 72 6f 72 20 72 |er_echo.|.error r|
|000022c0| 65 70 6f 72 74 69 6e 67 | 20 70 72 6f 67 72 61 6d |eporting| program|
|000022d0| 2c 20 69 6e 20 63 61 73 | 65 20 74 68 65 20 64 65 |, in cas|e the de|
|000022e0| 66 61 75 6c 74 20 65 72 | 5f 65 63 68 6f 20 64 6f |fault er|_echo do|
|000022f0| 65 73 20 6e 6f 74 20 63 | 6f 6d 70 69 6c 65 2c 0a |es not c|ompile,.|
|00002300| 74 68 65 72 65 20 69 73 | 20 61 20 63 73 68 20 73 |there is| a csh s|
|00002310| 63 72 69 70 74 20 73 74 | 5f 65 63 68 6f 2e 20 73 |cript st|_echo. s|
|00002320| 74 5f 65 63 68 6f 20 64 | 6f 65 73 20 6e 6f 74 20 |t_echo d|oes not |
|00002330| 77 6f 72 6b 20 77 69 74 | 68 20 2d 6c 6f 67 20 6f |work wit|h -log o|
|00002340| 72 20 2d 70 69 70 65 0a | 28 20 76 61 6c 75 65 20 |r -pipe.|( value |
|00002350| 72 65 71 75 69 72 65 64 | 20 29 0a 0a 23 73 65 74 |required| )..#set|
|00002360| 20 6c 6f 67 20 70 73 32 | 65 70 73 2e 6c 6f 67 0a | log ps2|eps.log.|
|00002370| 0a 64 69 72 65 63 74 20 | 6f 75 74 70 75 74 20 74 |.direct |output t|
|00002380| 6f 20 61 20 6c 6f 67 20 | 66 69 6c 65 20 72 61 74 |o a log |file rat|
|00002390| 68 65 72 20 74 68 61 6e | 20 73 74 61 6e 64 61 72 |her than| standar|
|000023a0| 64 20 65 72 72 6f 72 2e | 20 20 54 68 69 73 20 72 |d error.| This r|
|000023b0| 65 61 6c 6c 79 20 6a 75 | 73 74 0a 67 65 74 73 20 |eally ju|st.gets |
|000023c0| 70 61 73 73 65 64 20 74 | 6f 20 24 65 72 72 6f 72 |passed t|o $error|
|000023d0| 0a 63 61 6e 20 62 65 20 | 73 65 74 20 77 69 74 68 |.can be |set with|
|000023e0| 20 22 2d 6c 6f 67 20 66 | 69 6c 65 22 20 6f 6e 20 | "-log f|ile" on |
|000023f0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00002400| 0a 28 76 61 6c 75 65 20 | 72 65 71 75 69 72 65 64 |.(value |required|
|00002410| 20 69 66 20 73 65 74 20 | 29 0a 0a 73 65 74 20 64 | if set |)..set d|
|00002420| 65 62 75 67 6c 65 76 20 | 3d 20 31 0a 0a 64 65 66 |ebuglev |= 1..def|
|00002430| 61 75 6c 74 20 64 65 62 | 75 67 20 6c 65 76 65 6c |ault deb|ug level|
|00002440| 2c 20 70 61 73 73 65 64 | 20 74 6f 20 24 65 72 72 |, passed| to $err|
|00002450| 6f 72 0a 20 30 20 2d 3e | 20 6f 6e 6c 79 20 66 61 |or. 0 ->| only fa|
|00002460| 74 61 6c 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |tal erro|r messag|
|00002470| 65 73 0a 20 31 20 2d 3e | 20 6c 65 74 73 20 79 6f |es. 1 ->| lets yo|
|00002480| 75 20 6b 6e 6f 77 20 77 | 68 61 74 20 69 73 20 67 |u know w|hat is g|
|00002490| 6f 69 6e 67 20 6f 6e 0a | 20 33 20 2d 3e 20 70 6f |oing on.| 3 -> po|
|000024a0| 73 73 61 62 6c 79 20 69 | 6e 74 65 72 65 73 74 69 |ssably i|nteresti|
|000024b0| 6e 67 20 73 74 75 66 66 | 0a 20 34 20 28 20 6f 72 |ng stuff|. 4 ( or|
|000024c0| 20 68 69 67 68 65 72 20 | 29 20 2d 3e 20 76 65 72 | higher |) -> ver|
|000024d0| 79 20 76 65 72 62 6f 73 | 65 0a 63 61 6e 20 62 65 |y verbos|e.can be|
|000024e0| 20 6f 76 65 72 72 69 64 | 64 65 6e 20 77 69 74 68 | overrid|den with|
|000024f0| 20 22 2d 64 65 62 75 67 | 20 6e 22 20 6f 6e 20 74 | "-debug| n" on t|
|00002500| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 0a |he comma|nd line.|
|00002510| 28 76 61 6c 75 65 20 72 | 65 71 75 69 72 65 64 20 |(value r|equired |
|00002520| 69 66 20 73 65 74 20 29 | 0a 0a 23 73 65 74 20 71 |if set )|..#set q|
|00002530| 75 69 65 74 0a 0a 6d 61 | 6b 65 20 22 2d 71 22 20 |uiet..ma|ke "-q" |
|00002540| 6f 6e 20 62 79 20 64 65 | 66 61 75 6c 74 20 28 20 |on by de|fault ( |
|00002550| 6f 76 65 72 77 72 69 74 | 65 73 20 66 69 6c 65 73 |overwrit|es files|
|00002560| 20 77 69 74 68 6f 75 74 | 20 61 73 6b 69 6e 67 20 | without| asking |
|00002570| 29 0a 74 68 69 73 20 63 | 61 6e 6e 6f 74 20 62 65 |).this c|annot be|
|00002580| 20 6f 76 65 72 72 69 64 | 65 6e 20 6f 6e 20 74 68 | overrid|en on th|
|00002590| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 0a 0a |e comman|d line..|
|000025a0| 6d 6f 72 65 20 75 73 61 | 67 65 20 6e 6f 74 65 73 |more usa|ge notes|
|000025b0| 20 61 72 65 20 69 6e 20 | 74 68 65 20 73 68 65 6c | are in |the shel|
|000025c0| 6c 20 73 63 72 69 70 74 | 20 27 70 73 32 65 70 73 |l script| 'ps2eps|
|000025d0| 2d 6d 61 63 27 0a 0a 74 | 68 69 73 20 73 68 65 6c |-mac'..t|his shel|
|000025e0| 6c 20 61 72 63 68 69 76 | 65 20 63 6f 6e 74 61 69 |l archiv|e contai|
|000025f0| 6e 73 0a 6d 61 6b 65 66 | 69 6c 65 20 20 20 20 20 |ns.makef|ile |
|00002600| 20 20 20 20 20 20 20 2d | 2d 20 65 6e 74 65 72 20 | -|- enter |
|00002610| 27 6d 61 6b 65 27 20 74 | 6f 20 63 6f 6d 70 69 6c |'make' t|o compil|
|00002620| 65 2e 2e 0a 70 73 32 65 | 70 73 2d 6d 61 63 20 20 |e...ps2e|ps-mac |
|00002630| 20 20 20 20 20 20 20 20 | 2d 2d 20 65 78 65 63 75 | |-- execu|
|00002640| 74 61 62 6c 65 20 73 68 | 65 6c 6c 20 73 63 72 69 |table sh|ell scri|
|00002650| 70 74 0a 70 73 2d 70 69 | 63 74 32 6d 61 63 62 69 |pt.ps-pi|ct2macbi|
|00002660| 6e 2e 63 20 20 20 20 2d | 2d 20 73 6f 75 72 63 65 |n.c -|- source|
|00002670| 20 66 6f 72 20 6d 61 63 | 62 69 6e 61 72 79 20 63 | for mac|binary c|
|00002680| 72 65 61 74 69 6e 67 20 | 75 74 69 6c 69 74 79 0a |reating |utility.|
|00002690| 74 65 73 74 2e 70 73 20 | 20 20 20 20 20 20 20 20 |test.ps | |
|000026a0| 20 20 20 20 2d 2d 20 73 | 69 6d 70 6c 65 20 74 65 | -- s|imple te|
|000026b0| 73 74 20 66 69 6c 65 0a | 74 65 73 74 2d 65 78 2e |st file.|test-ex.|
|000026c0| 65 70 73 2e 62 69 6e 2e | 75 75 20 20 2d 2d 20 65 |eps.bin.|uu -- e|
|000026d0| 78 61 6d 70 6c 65 20 6d | 61 63 62 69 6e 61 72 79 |xample m|acbinary|
|000026e0| 2c 20 63 72 65 61 74 65 | 64 20 66 72 6f 6d 20 74 |, create|d from t|
|000026f0| 65 73 74 2e 70 73 0a 52 | 45 41 44 4d 45 20 20 20 |est.ps.R|EADME |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 74 68 | | -- th|
|00002710| 69 73 20 66 69 6c 65 0a | 65 72 5f 65 63 68 6f 2e |is file.|er_echo.|
|00002720| 63 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 20 65 |c | -- e|
|00002730| 72 72 6f 72 20 68 61 6e | 64 6c 69 6e 67 20 63 20 |rror han|dling c |
|00002740| 70 72 6f 67 72 61 6d 0a | 70 62 6d 74 6f 65 70 73 |program.|pbmtoeps|
|00002750| 69 2e 63 20 20 20 20 20 | 20 20 20 20 2d 2d 20 61 |i.c | -- a|
|00002760| 64 64 69 74 69 6f 6e 61 | 6c 20 70 62 6d 70 6c 75 |dditiona|l pbmplu|
|00002770| 73 20 73 6f 75 72 63 65 | 0a 70 73 32 65 70 73 2d |s source|.ps2eps-|
|00002780| 6d 61 63 2e 31 20 20 20 | 20 20 20 20 20 2d 2d 20 |mac.1 | -- |
|00002790| 75 6e 69 78 20 6d 61 6e | 20 70 61 67 65 20 0a 0a |unix man| page ..|
|000027a0| 76 65 72 73 69 6f 6e 20 | 68 69 73 74 6f 72 79 0a |version |history.|
|000027b0| 69 6e 69 74 69 61 6c 20 | 72 65 6c 65 61 73 65 20 |initial |release |
|000027c0| 34 2f 34 2f 39 32 0a 67 | 65 6f 72 67 65 20 6a 65 |4/4/92.g|eorge je|
|000027d0| 66 66 65 72 73 6f 6e 20 | 20 67 65 6f 72 67 65 40 |fferson | george@|
|000027e0| 6d 65 63 68 2e 73 65 61 | 73 2e 75 70 65 6e 6e 2e |mech.sea|s.upenn.|
|000027f0| 65 64 75 0a 76 2e 30 2e | 31 20 34 2f 35 2f 39 32 |edu.v.0.|1 4/5/92|
|00002800| 0a 61 64 64 65 64 20 6f | 70 74 69 6f 6e 73 20 74 |.added o|ptions t|
|00002810| 6f 20 6d 6f 64 69 66 79 | 20 6c 69 6e 65 20 65 6e |o modify| line en|
|00002820| 64 69 6e 67 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e |ding tra|nslation|
|00002830| 20 69 6e 20 70 73 32 65 | 70 73 2d 6d 61 63 20 73 | in ps2e|ps-mac s|
|00002840| 63 72 69 70 74 0a 28 20 | 73 61 6d 65 20 61 63 74 |cript.( |same act|
|00002850| 69 6f 6e 20 62 79 20 64 | 65 66 61 75 6c 74 20 29 |ion by d|efault )|
|00002860| 0a 76 2e 30 2e 32 20 34 | 2f 35 2f 39 32 0a 61 64 |.v.0.2 4|/5/92.ad|
|00002870| 64 65 64 20 63 6f 64 65 | 20 74 6f 20 77 69 64 65 |ded code| to wide|
|00002880| 6e 20 74 68 65 20 62 6f | 75 6e 64 69 6e 67 20 62 |n the bo|unding b|
|00002890| 6f 78 20 2d 2d 20 62 79 | 20 31 20 70 74 20 61 73 |ox -- by| 1 pt as|
|000028a0| 20 64 65 66 61 75 6c 74 | 0a 62 65 74 74 65 72 20 | default|.better |
|000028b0| 74 65 73 74 2e 70 73 0a | 76 2e 30 2e 33 20 34 2f |test.ps.|v.0.3 4/|
|000028c0| 36 2f 39 32 20 0a 63 6f | 72 72 65 63 74 69 6f 6e |6/92 .co|rrection|
|000028d0| 73 20 74 6f 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 |s to doc|umentati|
|000028e0| 6f 6e 0a 63 68 61 6e 67 | 65 20 64 65 66 61 75 6c |on.chang|e defaul|
|000028f0| 74 20 66 69 6c 65 20 74 | 79 70 65 20 74 6f 20 45 |t file t|ype to E|
|00002900| 50 53 46 0a 66 69 78 65 | 64 20 69 6e 66 6f 20 68 |PSF.fixe|d info h|
|00002910| 65 61 64 65 72 20 62 75 | 67 0a 70 61 64 20 72 65 |eader bu|g.pad re|
|00002920| 73 6f 75 72 63 65 20 66 | 6f 72 6b 20 74 6f 20 31 |source f|ork to 1|
|00002930| 32 38 20 62 79 74 65 20 | 62 6f 75 6e 64 20 28 20 |28 byte |bound ( |
|00002940| 73 75 6e 74 61 72 20 63 | 68 6f 6b 65 64 2e 2e 2e |suntar c|hoked...|
|00002950| 20 29 0a 76 2e 30 2e 34 | 0a 6e 6f 77 20 6c 6f 6f | ).v.0.4|.now loo|
|00002960| 6b 73 20 66 6f 72 20 61 | 20 62 6f 75 6e 64 69 6e |ks for a| boundin|
|00002970| 67 20 62 6f 78 20 6c 69 | 6e 65 20 69 6e 20 74 68 |g box li|ne in th|
|00002980| 65 20 73 6f 75 72 63 65 | 20 66 69 6c 65 20 61 6e |e source| file an|
|00002990| 64 20 75 73 65 73 20 69 | 74 0a 72 61 74 68 65 72 |d uses i|t.rather|
|000029a0| 20 74 68 61 6e 20 75 73 | 69 6e 67 20 70 70 6d 74 | than us|ing ppmt|
|000029b0| 6f 65 70 73 69 20 74 6f | 20 63 61 6c 63 75 6c 61 |oepsi to| calcula|
|000029c0| 74 65 2e 2e 0a 74 68 69 | 73 20 66 65 61 74 75 72 |te...thi|s featur|
|000029d0| 65 20 69 73 20 27 6f 6e | 27 20 62 79 20 64 65 66 |e is 'on|' by def|
|000029e0| 61 75 6c 74 20 20 28 20 | 73 65 65 20 62 62 69 6e |ault ( |see bbin|
|000029f0| 66 6f 20 6f 70 74 69 6f | 6e 20 29 0a 65 78 70 6c |fo optio|n ).expl|
|00002a00| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 6d 6f 73 74 20 |ination |of most |
|00002a10| 6f 70 74 69 6f 6e 73 20 | 6d 6f 76 65 64 20 74 6f |options |moved to|
|00002a20| 20 74 68 69 73 20 66 69 | 6c 65 20 66 72 6f 6d 20 | this fi|le from |
|00002a30| 74 68 65 20 73 68 65 6c | 6c 20 73 63 72 69 70 74 |the shel|l script|
|00002a40| 0a 76 2e 30 2e 35 0a 49 | 20 5f 74 68 69 6e 6b 5f |.v.0.5.I| _think_|
|00002a50| 20 74 68 65 20 62 6f 75 | 6e 64 69 6e 67 20 62 6f | the bou|nding bo|
|00002a60| 78 20 69 73 20 6e 6f 77 | 20 63 61 6c 63 75 6c 61 |x is now| calcula|
|00002a70| 74 65 64 20 63 6f 72 72 | 65 63 74 6c 79 20 69 6e |ted corr|ectly in|
|00002a80| 20 61 6c 6c 20 63 61 73 | 65 73 2e 0a 76 2e 30 2e | all cas|es..v.0.|
|00002a90| 36 0a 61 64 64 65 64 20 | 65 72 5f 65 63 68 6f 2e |6.added |er_echo.|
|00002aa0| 63 2c 20 77 68 69 63 68 | 20 6c 65 74 73 20 6d 65 |c, which| lets me|
|00002ab0| 20 64 6f 20 6e 69 63 65 | 20 65 72 72 6f 72 20 72 | do nice| error r|
|00002ac0| 65 70 6f 72 74 69 6e 67 | 0a 28 20 69 66 20 65 72 |eporting|.( if er|
|00002ad0| 5f 65 63 68 6f 20 66 61 | 69 6c 73 20 74 6f 20 77 |_echo fa|ils to w|
|00002ae0| 6f 72 6b 2c 20 69 74 20 | 69 73 20 61 20 62 69 74 |ork, it |is a bit|
|00002af0| 20 73 75 70 65 72 66 6c | 75 6f 75 73 2c 20 75 6e | superfl|uous, un|
|00002b00| 73 65 74 20 24 65 72 72 | 6f 72 20 29 0a 76 2e 30 |set $err|or ).v.0|
|00002b10| 2e 37 0a 62 79 70 61 73 | 73 20 66 74 69 6d 65 2c |.7.bypas|s ftime,|
|00002b20| 20 66 6f 72 20 73 79 73 | 76 20 6d 61 63 68 69 6e | for sys|v machin|
|00002b30| 65 73 0a 76 2e 30 2e 38 | 0a 6d 6f 72 65 20 73 79 |es.v.0.8|.more sy|
|00002b40| 73 76 20 63 6f 6d 70 61 | 74 61 62 69 6c 74 79 20 |sv compa|tabilty |
|00002b50| 6d 6f 64 69 66 69 63 61 | 74 69 6f 6e 0a 73 68 6f |modifica|tion.sho|
|00002b60| 72 74 65 6e 65 64 20 70 | 73 2d 70 69 63 74 32 6d |rtened p|s-pict2m|
|00002b70| 61 63 62 69 6e 2e 63 20 | 74 6f 20 70 73 2d 70 69 |acbin.c |to ps-pi|
|00002b80| 63 74 32 6d 61 63 62 2e | 63 0a 76 2e 30 2e 39 0a |ct2macb.|c.v.0.9.|
|00002b90| 61 64 64 65 64 20 70 62 | 6d 74 6f 65 70 73 69 20 |added pb|mtoepsi |
|00002ba0| 73 6f 75 72 63 65 20 74 | 6f 20 64 69 73 74 72 69 |source t|o distri|
|00002bb0| 62 75 74 69 6f 6e 0a 76 | 2e 30 2e 39 31 0a 66 69 |bution.v|.0.91.fi|
|00002bc0| 78 65 64 20 74 69 6d 65 | 28 29 20 62 75 67 20 77 |xed time|() bug w|
|00002bd0| 68 69 63 68 20 63 61 75 | 73 65 64 20 63 72 61 73 |hich cau|sed cras|
|00002be0| 68 20 6f 6e 20 73 75 6e | 33 27 73 0a 76 2e 31 2e |h on sun|3's.v.1.|
|00002bf0| 30 0a 69 6e 63 6c 75 64 | 65 64 20 73 74 5f 65 63 |0.includ|ed st_ec|
|00002c00| 68 6f 2c 20 61 6c 74 68 | 6f 75 67 68 20 69 20 64 |ho, alth|ough i d|
|00002c10| 6f 6e 74 20 6b 6e 6f 77 | 20 6f 66 20 61 6e 79 20 |ont know| of any |
|00002c20| 70 72 6f 62 6c 65 6d 73 | 20 77 69 74 68 20 65 72 |problems| with er|
|00002c30| 5f 65 63 68 6f 0a 61 64 | 64 65 64 20 6d 61 6e 20 |_echo.ad|ded man |
|00002c40| 70 61 67 65 2c 20 6e 6f | 77 20 69 20 74 68 69 6e |page, no|w i thin|
|00002c50| 6b 20 77 65 20 61 72 65 | 20 72 65 61 64 79 20 74 |k we are| ready t|
|00002c60| 6f 20 73 65 6e 64 20 74 | 6f 20 73 6f 6d 65 20 66 |o send t|o some f|
|00002c70| 74 70 20 73 69 74 65 73 | 2e 0a 76 2e 31 2e 31 20 |tp sites|..v.1.1 |
|00002c80| 0a 72 65 63 6f 67 6e 69 | 73 65 73 20 67 73 32 2e |.recogni|ses gs2.|
|00002c90| 34 20 6d 75 6c 74 69 2d | 70 61 67 65 20 6f 75 74 |4 multi-|page out|
|00002ca0| 70 75 74 2c 20 61 62 6f | 72 74 73 20 77 69 74 68 |put, abo|rts with|
|00002cb0| 20 61 6e 20 61 70 72 6f | 70 72 69 61 74 65 20 6d | an apro|priate m|
|00002cc0| 65 73 73 61 67 65 2e 0a | 53 48 41 52 5f 45 4f 46 |essage..|SHAR_EOF|
|00002cd0| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00002ce0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 69 |rwriting| check.i|
|00002cf0| 66 20 74 65 73 74 20 2d | 66 20 27 70 73 32 65 70 |f test -|f 'ps2ep|
|00002d00| 73 2d 6d 61 63 27 0a 74 | 68 65 6e 0a 09 65 63 68 |s-mac'.t|hen..ech|
|00002d10| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00002d20| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00002d30| 74 69 6e 67 20 66 69 6c | 65 20 22 27 70 73 32 65 |ting fil|e "'ps2e|
|00002d40| 70 73 2d 6d 61 63 27 22 | 0a 65 6c 73 65 0a 63 61 |ps-mac'"|.else.ca|
|00002d50| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00002d60| 20 27 70 73 32 65 70 73 | 2d 6d 61 63 27 0a 23 21 | 'ps2eps|-mac'.#!|
|00002d70| 2f 62 69 6e 2f 63 73 68 | 20 2d 66 0a 23 63 72 65 |/bin/csh| -f.#cre|
|00002d80| 61 74 65 73 20 61 20 6d | 61 63 69 6e 74 6f 73 68 |ates a m|acintosh|
|00002d90| 20 22 70 6f 73 74 73 63 | 72 69 70 74 20 77 69 74 | "postsc|ript wit|
|00002da0| 68 20 70 69 63 74 20 70 | 72 65 76 69 65 77 22 20 |h pict p|review" |
|00002db0| 66 69 6c 65 0a 23 69 6e | 20 6d 61 63 62 69 6e 61 |file.#in| macbina|
|00002dc0| 72 79 20 66 6f 72 6d 61 | 74 2e 20 28 20 74 72 61 |ry forma|t. ( tra|
|00002dd0| 6e 73 66 65 72 20 74 6f | 20 61 20 6d 61 63 20 69 |nsfer to| a mac i|
|00002de0| 6e 20 62 69 6e 61 72 79 | 2f 6d 61 63 62 69 6e 61 |n binary|/macbina|
|00002df0| 72 79 20 65 6e 61 62 6c | 65 64 20 6d 6f 64 65 20 |ry enabl|ed mode |
|00002e00| 29 0a 23 0a 23 23 23 6f | 70 74 69 6f 6e 73 2c 20 |).#.###o|ptions, |
|00002e10| 63 68 61 6e 67 65 20 64 | 65 66 61 75 6c 74 73 20 |change d|efaults |
|00002e20| 62 79 20 75 6e 63 6f 6d | 6d 65 6e 74 69 6e 67 20 |by uncom|menting |
|00002e30| 22 23 22 20 6c 69 6e 65 | 73 20 20 5f 53 45 45 5f |"#" line|s _SEE_|
|00002e40| 52 45 41 44 4d 45 5f 0a | 23 23 23 5f 61 6e 79 5f |README_.|###_any_|
|00002e50| 20 6f 66 20 74 68 65 73 | 65 20 6f 70 74 69 6f 6e | of thes|e option|
|00002e60| 73 20 6d 61 79 20 62 65 | 20 27 75 6e 73 65 74 27 |s may be| 'unset'|
|00002e70| 20 6f 72 20 63 6f 6d 6d | 65 6e 74 65 64 20 6f 75 | or comm|ented ou|
|00002e80| 74 0a 23 73 65 74 20 70 | 73 32 65 70 73 64 69 72 |t.#set p|s2epsdir|
|00002e90| 20 3d 20 20 28 20 2f 75 | 73 72 2f 6e 65 77 2f 62 | = ( /u|sr/new/b|
|00002ea0| 69 6e 20 29 20 20 20 20 | 20 23 20 61 64 64 20 74 |in ) | # add t|
|00002eb0| 6f 20 73 65 61 72 63 68 | 20 70 61 74 68 0a 23 73 |o search| path.#s|
|00002ec0| 65 74 20 6e 6f 74 72 61 | 6e 73 6c 61 74 65 20 20 |et notra|nslate |
|00002ed0| 20 20 20 20 20 20 20 20 | 20 23 64 6f 20 6e 6f 74 | | #do not|
|00002ee0| 20 74 72 61 6e 73 6c 61 | 74 65 20 61 6e 79 20 6c | transla|te any l|
|00002ef0| 69 6e 65 20 65 6e 64 69 | 6e 67 73 0a 23 73 65 74 |ine endi|ngs.#set|
|00002f00| 20 6e 6f 74 72 61 6e 73 | 66 69 6c 65 20 20 20 20 | notrans|file |
|00002f10| 20 20 20 20 20 20 20 23 | 70 75 74 20 6d 61 63 20 | #|put mac |
|00002f20| 6c 69 6e 65 20 65 6e 64 | 69 6e 67 20 6f 6e 20 6f |line end|ing on o|
|00002f30| 6e 6c 79 20 66 69 72 73 | 74 20 74 77 6f 20 6c 69 |nly firs|t two li|
|00002f40| 6e 65 73 0a 23 73 65 74 | 20 68 61 76 65 6d 61 63 |nes.#set| havemac|
|00002f50| 70 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 |ps | #|
|00002f60| 70 61 73 73 20 74 68 72 | 6f 75 67 68 20 6d 61 63 |pass thr|ough mac|
|00002f70| 70 73 20 69 66 20 6e 65 | 63 65 73 73 61 72 79 0a |ps if ne|cessary.|
|00002f80| 23 73 65 74 20 6e 6f 73 | 68 6f 77 70 61 67 65 20 |#set nos|howpage |
|00002f90| 20 20 20 20 20 20 20 20 | 20 20 20 23 75 6e 64 65 | | #unde|
|00002fa0| 66 69 6e 65 20 73 68 6f | 77 70 61 67 65 20 69 6e |fine sho|wpage in|
|00002fb0| 20 65 70 73 20 66 69 6c | 65 0a 23 73 65 74 20 64 | eps fil|e.#set d|
|00002fc0| 65 6e 73 69 74 79 20 3d | 20 37 32 20 20 20 20 20 |ensity =| 72 |
|00002fd0| 20 20 20 20 20 23 64 6f | 6e 74 20 63 68 61 6e 67 | #do|nt chang|
|00002fe0| 65 20 74 68 69 73 2c 20 | 69 74 20 64 6f 65 73 6e |e this, |it doesn|
|00002ff0| 27 74 20 77 6f 72 6b 20 | 3a 2d 28 0a 73 65 74 20 |'t work |:-(.set |
|00003000| 77 69 64 65 6e 62 6f 78 | 20 3d 20 31 20 20 20 20 |widenbox| = 1 |
|00003010| 20 20 20 20 20 20 20 23 | 61 64 64 20 6e 20 70 6f | #|add n po|
|00003020| 69 6e 74 73 20 65 78 74 | 72 61 20 77 68 69 74 65 |ints ext|ra white|
|00003030| 20 73 70 61 63 65 20 61 | 72 6f 75 6e 64 20 69 6d | space a|round im|
|00003040| 61 67 65 0a 23 73 65 74 | 20 62 62 69 6e 66 6f 20 |age.#set| bbinfo |
|00003050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 23 | | #|
|00003060| 64 6f 20 6e 6f 74 20 6c | 6f 6f 6b 20 66 6f 72 20 |do not l|ook for |
|00003070| 65 78 69 73 74 69 6e 67 | 20 62 6f 75 6e 64 69 6e |existing| boundin|
|00003080| 67 20 62 6f 78 0a 73 65 | 74 20 77 69 64 65 6e 62 |g box.se|t widenb|
|00003090| 6f 78 62 62 20 3d 20 30 | 20 20 20 20 20 20 20 20 |oxbb = 0| |
|000030a0| 20 23 77 69 64 65 6e 62 | 6f 78 20 75 73 65 64 20 | #widenb|ox used |
|000030b0| 77 68 65 6e 20 75 73 69 | 6e 67 20 65 78 69 73 74 |when usi|ng exist|
|000030c0| 69 6e 67 20 62 6f 75 6e | 64 69 6e 67 20 62 6f 78 |ing boun|ding box|
|000030d0| 0a 73 65 74 20 65 72 72 | 6f 72 20 3d 20 65 72 5f |.set err|or = er_|
|000030e0| 65 63 68 6f 20 20 20 20 | 20 20 20 20 23 74 75 72 |echo | #tur|
|000030f0| 6e 20 6f 6e 20 65 72 72 | 6f 72 20 72 65 70 6f 72 |n on err|or repor|
|00003100| 74 69 6e 67 0a 23 73 65 | 74 20 6c 6f 67 20 3d 20 |ting.#se|t log = |
|00003110| 70 73 32 65 70 73 2e 6c | 6f 67 20 20 20 20 20 20 |ps2eps.l|og |
|00003120| 23 77 72 69 74 65 20 74 | 6f 20 6c 6f 67 20 72 61 |#write t|o log ra|
|00003130| 74 68 65 72 20 74 68 61 | 6e 20 73 74 64 65 72 72 |ther tha|n stderr|
|00003140| 0a 73 65 74 20 64 65 62 | 75 67 6c 65 76 20 3d 20 |.set deb|uglev = |
|00003150| 31 20 20 20 20 20 20 20 | 20 20 20 20 23 64 65 66 |1 | #def|
|00003160| 61 75 6c 74 20 64 65 62 | 75 67 20 6c 65 76 65 6c |ault deb|ug level|
|00003170| 20 28 20 30 20 3d 20 6e | 6f 6e 65 2c 20 35 20 3d | ( 0 = n|one, 5 =|
|00003180| 20 61 6c 6c 20 29 0a 23 | 73 65 74 20 71 75 69 65 | all ).#|set quie|
|00003190| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|000031a0| 20 20 20 23 6d 61 6b 65 | 20 2d 71 20 6f 6e 20 62 | #make| -q on b|
|000031b0| 79 20 64 65 66 61 75 6c | 74 0a 23 23 23 65 6e 64 |y defaul|t.###end|
|000031c0| 20 6f 66 20 6f 70 74 69 | 6f 6e 73 2c 20 65 6e 64 | of opti|ons, end|
|000031d0| 20 6f 66 20 65 76 65 6e | 20 6d 69 6c 64 6c 79 20 | of even| mildly |
|000031e0| 69 6e 74 65 72 65 73 74 | 69 6e 67 20 6e 6f 74 65 |interest|ing note|
|000031f0| 73 0a 69 66 28 24 3f 64 | 65 62 75 67 6c 65 76 20 |s.if($?d|ebuglev |
|00003200| 3d 3d 20 30 29 73 65 74 | 20 64 65 62 75 67 6c 65 |== 0)set| debugle|
|00003210| 76 20 3d 20 30 0a 73 65 | 74 20 64 65 73 74 64 69 |v = 0.se|t destdi|
|00003220| 72 20 3d 20 27 2e 27 0a | 77 68 69 6c 65 28 20 24 |r = '.'.|while( $|
|00003230| 23 61 72 67 76 20 3e 20 | 20 30 20 20 29 0a 20 73 |#argv > | 0 ). s|
|00003240| 77 69 74 63 68 20 28 20 | 24 31 20 29 0a 20 63 61 |witch ( |$1 ). ca|
|00003250| 73 65 20 2d 77 69 64 65 | 6e 0a 20 20 73 65 74 20 |se -wide|n. set |
|00003260| 77 69 64 65 6e 62 6f 78 | 20 3d 20 24 32 0a 20 20 |widenbox| = $2. |
|00003270| 69 66 28 20 24 77 69 64 | 65 6e 62 6f 78 20 3d 3d |if( $wid|enbox ==|
|00003280| 20 75 6e 73 65 74 20 29 | 75 6e 73 65 74 20 77 69 | unset )|unset wi|
|00003290| 64 65 6e 62 6f 78 0a 20 | 20 73 68 69 66 74 0a 20 |denbox. | shift. |
|000032a0| 62 72 65 61 6b 73 77 0a | 20 63 61 73 65 20 2d 71 |breaksw.| case -q|
|000032b0| 0a 20 63 61 73 65 20 2d | 62 61 74 63 68 0a 20 20 |. case -|batch. |
|000032c0| 73 65 74 20 71 75 69 65 | 74 0a 20 62 72 65 61 6b |set quie|t. break|
|000032d0| 73 77 0a 20 63 61 73 65 | 20 2d 64 0a 20 20 73 65 |sw. case| -d. se|
|000032e0| 74 20 64 65 73 74 64 69 | 72 20 3d 20 24 32 0a 20 |t destdi|r = $2. |
|000032f0| 20 73 68 69 66 74 0a 20 | 62 72 65 61 6b 73 77 0a | shift. |breaksw.|
|00003300| 20 63 61 73 65 20 2d 70 | 69 70 65 0a 20 20 73 65 | case -p|ipe. se|
|00003310| 74 20 64 65 73 74 64 69 | 72 20 3d 20 73 74 64 6f |t destdi|r = stdo|
|00003320| 75 74 0a 20 63 61 73 65 | 20 2d 64 65 62 75 67 0a |ut. case| -debug.|
|00003330| 20 20 73 65 74 20 64 65 | 62 75 67 6c 65 76 20 3d | set de|buglev =|
|00003340| 20 24 32 0a 20 20 73 68 | 69 66 74 0a 20 62 72 65 | $2. sh|ift. bre|
|00003350| 61 6b 73 77 0a 20 63 61 | 73 65 20 2d 6c 6f 67 0a |aksw. ca|se -log.|
|00003360| 20 20 73 65 74 20 6c 6f | 67 66 69 6c 65 20 3d 20 | set lo|gfile = |
|00003370| 24 32 0a 20 20 73 68 69 | 66 74 0a 20 62 72 65 61 |$2. shi|ft. brea|
|00003380| 6b 73 77 0a 20 64 65 66 | 61 75 6c 74 0a 20 20 73 |ksw. def|ault. s|
|00003390| 65 74 20 73 6f 75 72 63 | 65 20 3d 20 24 31 20 23 |et sourc|e = $1 #|
|000033a0| 66 75 6c 6c 20 70 61 74 | 68 20 6e 61 6d 65 20 6f |full pat|h name o|
|000033b0| 66 20 6f 72 69 67 69 6e | 61 6c 20 70 73 20 66 69 |f origin|al ps fi|
|000033c0| 6c 65 0a 20 62 72 65 61 | 6b 73 77 0a 20 65 6e 64 |le. brea|ksw. end|
|000033d0| 73 77 0a 20 73 68 69 66 | 74 0a 65 6e 64 0a 69 66 |sw. shif|t.end.if|
|000033e0| 28 20 24 64 65 73 74 64 | 69 72 20 3d 3d 20 73 74 |( $destd|ir == st|
|000033f0| 64 6f 75 74 20 29 74 68 | 65 6e 0a 20 73 65 74 20 |dout )th|en. set |
|00003400| 71 75 69 65 74 0a 20 69 | 66 28 20 24 3f 6c 6f 67 |quiet. i|f( $?log|
|00003410| 66 69 6c 65 20 3d 3d 20 | 30 20 29 73 65 74 20 6c |file == |0 )set l|
|00003420| 6f 67 66 69 6c 65 20 3d | 20 70 73 32 65 70 73 2d |ogfile =| ps2eps-|
|00003430| 6d 61 63 2e 6c 6f 67 20 | 20 0a 65 6e 64 69 66 0a |mac.log | .endif.|
|00003440| 69 66 28 20 24 3f 65 72 | 72 6f 72 20 3d 3d 20 31 |if( $?er|ror == 1|
|00003450| 20 26 26 20 24 3f 6c 6f | 67 66 69 6c 65 20 3d 3d | && $?lo|gfile ==|
|00003460| 20 31 20 29 74 68 65 6e | 0a 72 6d 20 2d 66 20 24 | 1 )then|.rm -f $|
|00003470| 6c 6f 67 66 69 6c 65 0a | 73 65 74 20 65 72 72 6f |logfile.|set erro|
|00003480| 72 20 3d 20 28 20 24 65 | 72 72 6f 72 20 2d 6c 6f |r = ( $e|rror -lo|
|00003490| 67 20 24 6c 6f 67 66 69 | 6c 65 20 29 0a 65 6e 64 |g $logfi|le ).end|
|000034a0| 69 66 0a 69 66 28 20 24 | 3f 65 72 72 6f 72 20 3d |if.if( $|?error =|
|000034b0| 3d 20 30 20 29 73 65 74 | 20 65 72 72 6f 72 20 3d |= 0 )set| error =|
|000034c0| 20 65 72 5f 65 63 68 6f | 20 20 20 20 20 20 20 20 | er_echo| |
|000034d0| 20 20 20 20 20 20 20 20 | 20 23 23 64 65 62 75 67 | | ##debug|
|000034e0| 0a 69 66 28 20 2d 78 20 | 24 65 72 72 6f 72 5b 31 |.if( -x |$error[1|
|000034f0| 5d 20 29 67 6f 74 6f 20 | 65 72 72 6f 72 6f 6b 20 |] )goto |errorok |
|00003500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003510| 20 20 20 20 20 20 20 23 | 23 64 65 62 75 67 0a 65 | #|#debug.e|
|00003520| 63 68 6f 20 65 72 72 6f | 72 2c 20 24 65 72 72 6f |cho erro|r, $erro|
|00003530| 72 5b 31 5d 20 69 73 20 | 6e 6f 74 20 6f 6e 20 79 |r[1] is |not on y|
|00003540| 6f 75 72 20 70 61 74 68 | 0a 69 66 28 20 2d 78 20 |our path|.if( -x |
|00003550| 73 74 5f 65 63 68 6f 20 | 29 74 68 65 6e 0a 73 65 |st_echo |)then.se|
|00003560| 74 20 65 72 72 6f 72 20 | 3d 20 73 74 5f 65 63 68 |t error |= st_ech|
|00003570| 6f 20 0a 65 6c 73 65 0a | 65 63 68 6f 20 66 61 74 |o .else.|echo fat|
|00003580| 61 6c 20 65 72 72 6f 72 | 2c 20 73 74 5f 65 63 68 |al error|, st_ech|
|00003590| 6f 20 69 73 20 6e 6f 74 | 20 6f 6e 20 79 6f 75 72 |o is not| on your|
|000035a0| 20 70 61 74 68 20 65 69 | 74 68 65 72 0a 65 78 69 | path ei|ther.exi|
|000035b0| 74 0a 65 6e 64 69 66 20 | 20 20 20 20 20 20 20 20 |t.endif | |
|000035c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035e0| 20 20 20 20 20 20 20 20 | 23 23 64 65 62 75 67 0a | |##debug.|
|000035f0| 65 72 72 6f 72 6f 6b 3a | 0a 73 65 74 20 65 72 72 |errorok:|.set err|
|00003600| 6f 72 20 3d 20 28 20 24 | 65 72 72 6f 72 20 2d 6f |or = ( $|error -o|
|00003610| 66 66 20 24 64 65 62 75 | 67 6c 65 76 20 29 0a 69 |ff $debu|glev ).i|
|00003620| 66 28 20 24 64 65 62 75 | 67 6c 65 76 20 3e 3d 20 |f( $debu|glev >= |
|00003630| 34 20 29 74 68 65 6e 20 | 20 20 20 20 20 20 20 20 |4 )then | |
|00003640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003650| 20 20 23 23 64 65 62 75 | 67 0a 20 24 65 72 72 6f | ##debu|g. $erro|
|00003660| 72 20 2d 6c 65 76 65 6c | 20 34 20 73 68 65 6c 6c |r -level| 4 shell|
|00003670| 20 76 61 72 69 61 62 6c | 65 73 2e 2e 2e 20 20 20 | variabl|es... |
|00003680| 20 20 20 20 20 20 23 23 | 64 65 62 75 67 0a 20 73 | ##|debug. s|
|00003690| 65 74 20 7c 20 24 65 72 | 72 6f 72 20 2d 63 61 74 |et | $er|ror -cat|
|000036a0| 20 2d 6c 65 76 65 6c 20 | 34 20 20 20 20 20 20 20 | -level |4 |
|000036b0| 20 20 20 20 20 20 20 20 | 20 20 20 23 23 64 65 62 | | ##deb|
|000036c0| 75 67 0a 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |ug. $err|or -leve|
|000036d0| 6c 20 34 20 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |l 4 env|ironment|
|000036e0| 20 76 61 72 69 61 62 6c | 65 73 2e 2e 2e 20 20 20 | variabl|es... |
|000036f0| 23 23 64 65 62 75 67 0a | 20 70 72 69 6e 74 65 6e |##debug.| printen|
|00003700| 76 20 7c 20 24 65 72 72 | 6f 72 20 2d 63 61 74 20 |v | $err|or -cat |
|00003710| 2d 6c 65 76 65 6c 20 34 | 20 20 20 20 20 20 20 20 |-level 4| |
|00003720| 20 20 20 20 20 23 23 64 | 65 62 75 67 0a 20 24 65 | ##d|ebug. $e|
|00003730| 72 72 6f 72 20 2d 6c 65 | 76 65 6c 20 34 20 20 64 |rror -le|vel 4 d|
|00003740| 69 72 65 63 74 6f 72 79 | 20 6c 69 73 74 69 6e 67 |irectory| listing|
|00003750| 2e 2e 2e 20 20 20 20 20 | 20 20 23 23 64 65 62 75 |... | ##debu|
|00003760| 67 0a 20 2f 62 69 6e 2f | 6c 73 20 2d 6c 20 7c 20 |g. /bin/|ls -l | |
|00003770| 24 65 72 72 6f 72 20 2d | 63 61 74 20 2d 6c 65 76 |$error -|cat -lev|
|00003780| 65 6c 20 34 20 20 20 20 | 20 20 20 20 20 20 20 23 |el 4 | #|
|00003790| 23 64 65 62 75 67 0a 65 | 6e 64 69 66 20 20 20 20 |#debug.e|ndif |
|000037a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 23 64 | | ##d|
|000037d0| 65 62 75 67 0a 69 66 28 | 20 24 3f 70 73 32 65 70 |ebug.if(| $?ps2ep|
|000037e0| 73 64 69 72 20 3d 3d 20 | 31 20 29 74 68 65 6e 0a |sdir == |1 )then.|
|000037f0| 20 73 65 74 20 70 61 74 | 68 20 3d 20 28 20 24 70 | set pat|h = ( $p|
|00003800| 73 32 65 70 73 64 69 72 | 20 24 70 61 74 68 20 29 |s2epsdir| $path )|
|00003810| 0a 65 6e 64 69 66 0a 73 | 65 74 20 70 73 66 69 6c |.endif.s|et psfil|
|00003820| 65 20 3d 20 20 24 73 6f | 75 72 63 65 3a 74 20 23 |e = $so|urce:t #|
|00003830| 6f 72 69 67 69 6e 61 6c | 20 66 69 6c 65 20 77 69 |original| file wi|
|00003840| 74 68 6f 75 74 20 70 61 | 74 68 6e 61 6d 65 0a 73 |thout pa|thname.s|
|00003850| 65 74 20 6e 61 6d 65 20 | 3d 20 24 70 73 66 69 6c |et name |= $psfil|
|00003860| 65 3a 72 20 20 20 20 23 | 72 6f 6f 74 20 6e 61 6d |e:r #|root nam|
|00003870| 65 20 28 20 2e 70 73 20 | 72 65 6d 6f 76 65 64 20 |e ( .ps |removed |
|00003880| 29 0a 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |).$error| -level |
|00003890| 32 20 20 72 65 61 64 69 | 6e 67 20 24 73 6f 75 72 |2 readi|ng $sour|
|000038a0| 63 65 20 74 6f 20 63 72 | 65 61 74 65 20 24 7b 6e |ce to cr|eate ${n|
|000038b0| 61 6d 65 7d 2e 65 70 73 | 2e 62 69 6e 20 23 23 64 |ame}.eps|.bin ##d|
|000038c0| 65 62 75 67 0a 73 65 74 | 20 70 70 6d 20 3d 20 24 |ebug.set| ppm = $|
|000038d0| 7b 6e 61 6d 65 7d 2e 70 | 70 6d 20 20 20 23 67 68 |{name}.p|pm #gh|
|000038e0| 6f 73 74 73 63 72 69 70 | 74 20 6f 75 74 70 75 74 |ostscrip|t output|
|000038f0| 0a 73 65 74 20 65 70 73 | 20 3d 20 20 24 7b 6e 61 |.set eps| = ${na|
|00003900| 6d 65 7d 2e 65 70 73 20 | 20 23 6e 61 6d 65 20 6f |me}.eps | #name o|
|00003910| 66 20 6d 61 63 20 66 69 | 6c 65 20 74 6f 20 62 65 |f mac fi|le to be|
|00003920| 20 63 72 65 61 74 65 64 | 0a 73 65 74 20 70 69 63 | created|.set pic|
|00003930| 74 20 3d 20 24 7b 65 70 | 73 7d 2e 70 69 63 74 20 |t = ${ep|s}.pict |
|00003940| 20 23 70 69 63 74 20 64 | 61 74 61 20 6f 75 74 70 | #pict d|ata outp|
|00003950| 75 74 20 62 79 20 70 70 | 6d 74 6f 70 69 63 74 0a |ut by pp|mtopict.|
|00003960| 73 65 74 20 64 61 74 20 | 3d 20 24 7b 65 70 73 7d |set dat |= ${eps}|
|00003970| 2e 70 73 20 20 20 20 20 | 23 64 61 74 61 20 66 6f |.ps |#data fo|
|00003980| 72 6b 2c 20 25 25 62 6f | 75 6e 64 69 6e 20 62 6f |rk, %%bo|undin bo|
|00003990| 78 20 61 64 64 65 64 20 | 61 6e 64 20 6c 69 6e 65 |x added |and line|
|000039a0| 20 65 6e 64 73 20 63 68 | 61 6e 67 65 64 0a 73 65 | ends ch|anged.se|
|000039b0| 74 20 62 69 6e 20 3d 20 | 24 7b 65 70 73 7d 2e 62 |t bin = |${eps}.b|
|000039c0| 69 6e 20 20 20 20 23 6d | 61 63 62 69 6e 61 72 79 |in #m|acbinary|
|000039d0| 20 66 69 6c 65 0a 73 65 | 74 20 73 61 76 65 20 3d | file.se|t save =|
|000039e0| 20 24 7b 70 69 63 74 7d | 2d 73 61 76 65 20 23 74 | ${pict}|-save #t|
|000039f0| 65 6d 70 6f 72 61 72 79 | 20 63 6f 70 79 20 6f 66 |emporary| copy of|
|00003a00| 20 6f 72 69 67 69 6e 61 | 6c 0a 73 65 74 20 66 6c | origina|l.set fl|
|00003a10| 73 20 3d 20 28 20 20 24 | 65 70 73 20 24 70 70 6d |s = ( $|eps $ppm|
|00003a20| 20 24 70 69 63 74 20 24 | 64 61 74 20 24 62 69 6e | $pict $|dat $bin|
|00003a30| 20 24 73 61 76 65 20 29 | 0a 73 65 74 20 6e 70 20 | $save )|.set np |
|00003a40| 3d 20 31 0a 77 68 69 6c | 65 28 20 2d 66 20 24 7b |= 1.whil|e( -f ${|
|00003a50| 6e 61 6d 65 7d 2e 24 7b | 6e 70 7d 70 70 6d 20 7c |name}.${|np}ppm ||
|00003a60| 7c 20 24 6e 70 20 3c 20 | 34 20 29 0a 73 65 74 20 || $np < |4 ).set |
|00003a70| 66 6c 73 20 3d 20 28 20 | 20 24 66 6c 73 20 24 7b |fls = ( | $fls ${|
|00003a80| 6e 61 6d 65 7d 2e 24 7b | 6e 70 7d 70 70 6d 20 29 |name}.${|np}ppm )|
|00003a90| 0a 40 20 6e 70 20 3d 20 | 24 6e 70 20 2b 20 31 0a |.@ np = |$np + 1.|
|00003aa0| 65 6e 64 0a 73 65 74 20 | 64 65 73 74 72 6f 79 0a |end.set |destroy.|
|00003ab0| 66 6f 72 65 61 63 68 20 | 69 20 28 20 24 66 6c 73 |foreach |i ( $fls|
|00003ac0| 20 29 0a 20 69 66 28 20 | 2d 66 20 24 69 20 29 74 | ). if( |-f $i )t|
|00003ad0| 68 65 6e 0a 20 20 69 66 | 28 20 24 3f 71 75 69 65 |hen. if|( $?quie|
|00003ae0| 74 20 3d 3d 20 30 20 29 | 65 63 68 6f 20 24 69 20 |t == 0 )|echo $i |
|00003af0| 77 69 6c 6c 20 62 65 20 | 6f 76 65 72 20 77 72 69 |will be |over wri|
|00003b00| 74 74 65 6e 20 6f 72 20 | 64 65 6c 65 74 65 64 0a |tten or |deleted.|
|00003b10| 20 20 73 65 74 20 64 65 | 73 74 72 6f 79 20 3d 20 | set de|stroy = |
|00003b20| 28 20 24 64 65 73 74 72 | 6f 79 20 24 69 20 29 0a |( $destr|oy $i ).|
|00003b30| 20 65 6e 64 69 66 0a 65 | 6e 64 0a 73 65 74 20 71 | endif.e|nd.set q|
|00003b40| 20 3d 20 79 0a 69 66 28 | 20 22 24 64 65 73 74 72 | = y.if(| "$destr|
|00003b50| 6f 79 22 20 21 3d 20 22 | 22 20 26 26 20 24 3f 71 |oy" != "|" && $?q|
|00003b60| 75 69 65 74 20 3d 3d 20 | 20 30 20 29 74 68 65 6e |uiet == | 0 )then|
|00003b70| 0a 20 65 63 68 6f 20 2d | 6e 20 22 63 6f 6e 74 69 |. echo -|n "conti|
|00003b80| 6e 75 65 20 79 2f 6e 3f | 20 22 0a 20 73 65 74 20 |nue y/n?| ". set |
|00003b90| 71 20 3d 20 24 3c 0a 65 | 6e 64 69 66 0a 69 66 28 |q = $<.e|ndif.if(|
|00003ba0| 20 24 71 20 21 3d 20 79 | 20 29 65 78 69 74 0a 66 | $q != y| )exit.f|
|00003bb0| 6f 72 65 61 63 68 20 69 | 20 28 20 24 64 65 73 74 |oreach i| ( $dest|
|00003bc0| 72 6f 79 20 29 0a 20 24 | 65 72 72 6f 72 20 2d 6c |roy ). $|error -l|
|00003bd0| 65 76 65 6c 20 31 20 72 | 65 6d 6f 76 69 6e 67 20 |evel 1 r|emoving |
|00003be0| 24 69 20 2d 6c 65 76 65 | 6c 20 33 20 22 60 2f 62 |$i -leve|l 3 "`/b|
|00003bf0| 69 6e 2f 6c 73 20 2d 6c | 20 24 69 60 22 20 23 23 |in/ls -l| $i`" ##|
|00003c00| 64 65 62 75 67 0a 20 72 | 6d 20 2d 66 20 24 69 0a |debug. r|m -f $i.|
|00003c10| 65 6e 64 0a 69 66 28 20 | 24 70 73 66 69 6c 65 20 |end.if( |$psfile |
|00003c20| 21 3d 20 24 73 6f 75 72 | 63 65 20 29 63 70 20 24 |!= $sour|ce )cp $|
|00003c30| 73 6f 75 72 63 65 20 24 | 70 73 66 69 6c 65 0a 69 |source $|psfile.i|
|00003c40| 66 28 20 24 3f 77 69 64 | 65 6e 62 6f 78 20 3d 3d |f( $?wid|enbox ==|
|00003c50| 20 31 20 29 74 68 65 6e | 0a 20 73 77 69 74 63 68 | 1 )then|. switch|
|00003c60| 20 28 20 24 3f 62 62 69 | 6e 66 6f 20 29 0a 20 63 | ( $?bbi|nfo ). c|
|00003c70| 61 73 65 20 30 0a 23 20 | 64 6f 20 77 65 20 6e 65 |ase 0.# |do we ne|
|00003c80| 65 64 20 74 6f 20 6c 6f | 6f 6b 20 66 75 72 74 68 |ed to lo|ok furth|
|00003c90| 65 72 20 74 68 61 6e 20 | 32 30 20 6c 69 6e 65 73 |er than |20 lines|
|00003ca0| 3f 0a 20 20 73 65 74 20 | 62 62 69 6e 66 6f 20 3d |?. set |bbinfo =|
|00003cb0| 20 60 68 65 61 64 20 2d | 32 30 20 24 70 73 66 69 | `head -|20 $psfi|
|00003cc0| 6c 65 20 7c 20 67 72 65 | 70 20 27 25 25 42 6f 75 |le | gre|p '%%Bou|
|00003cd0| 6e 64 69 6e 67 42 6f 78 | 3a 27 20 7c 20 68 65 61 |ndingBox|:' | hea|
|00003ce0| 64 20 2d 31 60 0a 20 20 | 69 66 28 20 24 23 62 62 |d -1`. |if( $#bb|
|00003cf0| 69 6e 66 6f 20 3d 3d 20 | 20 30 20 29 67 6f 74 6f |info == | 0 )goto|
|00003d00| 20 6e 6f 62 62 6f 78 0a | 20 20 24 65 72 72 6f 72 | nobbox.| $error|
|00003d10| 20 2d 6c 65 76 65 6c 20 | 31 20 20 75 73 69 6e 67 | -level |1 using|
|00003d20| 20 62 6f 75 6e 64 69 6e | 67 20 62 6f 78 20 69 6e | boundin|g box in|
|00003d30| 66 6f 72 6d 61 74 69 6f | 6e 20 66 72 6f 6d 20 73 |formatio|n from s|
|00003d40| 6f 75 72 63 65 20 66 69 | 6c 65 20 24 62 62 69 6e |ource fi|le $bbin|
|00003d50| 66 6f 20 23 23 64 65 62 | 75 67 0a 20 20 69 66 28 |fo ##deb|ug. if(|
|00003d60| 20 24 3f 77 69 64 65 6e | 62 6f 78 62 62 20 3d 3d | $?widen|boxbb ==|
|00003d70| 20 30 20 29 73 65 74 20 | 77 69 64 65 6e 62 6f 78 | 0 )set |widenbox|
|00003d80| 62 62 20 3d 20 20 24 77 | 69 64 65 6e 62 6f 78 0a |bb = $w|idenbox.|
|00003d90| 20 20 73 65 74 20 77 69 | 64 65 6e 62 6f 78 20 3d | set wi|denbox =|
|00003da0| 20 24 77 69 64 65 6e 62 | 6f 78 62 62 0a 20 20 69 | $widenb|oxbb. i|
|00003db0| 66 28 20 24 77 69 64 65 | 6e 62 6f 78 20 21 3d 20 |f( $wide|nbox != |
|00003dc0| 30 29 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |0)$error| -level |
|00003dd0| 31 20 20 77 69 64 65 6e | 65 64 20 62 79 20 24 77 |1 widen|ed by $w|
|00003de0| 69 64 65 6e 62 6f 78 20 | 23 23 64 65 62 75 67 0a |idenbox |##debug.|
|00003df0| 20 20 6e 6f 62 62 6f 78 | 3a 0a 20 62 72 65 61 6b | nobbox|:. break|
|00003e00| 73 77 0a 20 65 6e 64 73 | 77 0a 65 6e 64 69 66 0a |sw. ends|w.endif.|
|00003e10| 69 66 28 20 24 3f 68 61 | 76 65 6d 61 63 70 73 20 |if( $?ha|vemacps |
|00003e20| 3d 3d 20 31 20 26 26 20 | 60 67 72 65 70 20 27 25 |== 1 && |`grep '%|
|00003e30| 25 49 6e 63 6c 75 64 65 | 50 72 6f 63 53 65 74 3a |%Include|ProcSet:|
|00003e40| 20 22 28 41 70 70 6c 65 | 44 69 63 74 20 6d 64 29 | "(Apple|Dict md)|
|00003e50| 22 27 20 24 70 73 66 69 | 6c 65 20 7c 20 77 63 20 |"' $psfi|le | wc |
|00003e60| 2d 6c 60 20 21 3d 20 30 | 20 29 74 68 65 6e 0a 20 |-l` != 0| )then. |
|00003e70| 6d 76 20 24 70 73 66 69 | 6c 65 20 24 73 61 76 65 |mv $psfi|le $save|
|00003e80| 0a 20 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |. $error| -level |
|00003e90| 31 20 20 72 75 6e 6e 69 | 6e 67 20 6d 61 63 70 73 |1 runni|ng macps|
|00003ea0| 20 6f 6e 20 66 69 6c 65 | 20 2d 2d 20 6f 6e 6c 79 | on file| -- only|
|00003eb0| 20 66 6f 72 20 67 68 6f | 73 74 73 63 72 69 70 74 | for gho|stscript|
|00003ec0| 20 23 23 64 65 62 75 67 | 0a 20 6d 61 63 70 73 20 | ##debug|. macps |
|00003ed0| 24 73 61 76 65 20 3e 20 | 24 70 73 66 69 6c 65 0a |$save > |$psfile.|
|00003ee0| 20 73 65 74 20 6d 61 63 | 70 73 65 64 0a 65 6e 64 | set mac|psed.end|
|00003ef0| 69 66 0a 69 66 28 20 24 | 3f 64 65 6e 73 69 74 79 |if.if( $|?density|
|00003f00| 20 3d 3d 20 30 20 29 73 | 65 74 20 64 65 6e 73 69 | == 0 )s|et densi|
|00003f10| 74 79 20 3d 20 37 32 0a | 24 65 72 72 6f 72 20 2d |ty = 72.|$error -|
|00003f20| 6c 65 76 65 6c 20 31 20 | 20 72 75 6e 6e 69 6e 67 |level 1 | running|
|00003f30| 20 67 68 6f 73 74 73 63 | 72 69 70 74 2e 2e 2e 2e | ghostsc|ript....|
|00003f40| 20 23 23 64 65 62 75 67 | 0a 67 73 20 2d 71 20 2d | ##debug|.gs -q -|
|00003f50| 64 4e 4f 44 49 53 50 4c | 41 59 20 70 73 74 6f 70 |dNODISPL|AY pstop|
|00003f60| 70 6d 2e 70 73 20 3c 3c | 20 44 47 43 20 7c 20 24 |pm.ps <<| DGC | $|
|00003f70| 65 72 72 6f 72 20 2d 63 | 61 74 20 2d 6c 65 76 65 |error -c|at -leve|
|00003f80| 6c 20 33 0a 24 64 65 6e | 73 69 74 79 20 24 64 65 |l 3.$den|sity $de|
|00003f90| 6e 73 69 74 79 20 70 70 | 6d 73 65 74 64 65 6e 73 |nsity pp|msetdens|
|00003fa0| 69 74 79 0a 28 24 6e 61 | 6d 65 29 20 70 70 6d 31 |ity.($na|me) ppm1|
|00003fb0| 72 75 6e 0a 44 47 43 0a | 69 66 28 20 2d 66 20 24 |run.DGC.|if( -f $|
|00003fc0| 70 70 6d 20 29 67 6f 74 | 6f 20 67 73 64 6f 6e 65 |ppm )got|o gsdone|
|00003fd0| 0a 69 66 28 20 2d 66 20 | 24 7b 6e 61 6d 65 7d 2e |.if( -f |${name}.|
|00003fe0| 31 70 70 6d 20 29 74 68 | 65 6e 0a 73 65 74 20 6e |1ppm )th|en.set n|
|00003ff0| 70 61 67 65 73 20 3d 20 | 28 20 24 7b 6e 61 6d 65 |pages = |( ${name|
|00004000| 7d 2e 2a 70 70 6d 20 29 | 0a 24 65 72 72 6f 72 20 |}.*ppm )|.$error |
|00004010| 2d 6c 65 76 65 6c 20 30 | 20 73 6f 72 72 79 2c 20 |-level 0| sorry, |
|00004020| 74 68 69 73 20 66 69 6c | 65 20 61 70 70 61 72 65 |this fil|e appare|
|00004030| 6e 74 6c 79 20 63 6f 6e | 74 61 69 6e 73 20 24 23 |ntly con|tains $#|
|00004040| 6e 70 61 67 65 73 20 70 | 61 67 65 73 0a 24 65 72 |npages p|ages.$er|
|00004050| 72 6f 72 20 2d 6c 65 76 | 65 6c 20 30 20 79 6f 75 |ror -lev|el 0 you|
|00004060| 20 63 61 6e 20 6e 6f 74 | 20 63 72 65 61 74 65 20 | can not| create |
|00004070| 6d 75 6c 74 69 20 70 61 | 67 65 20 65 70 73 2d 70 |multi pa|ge eps-p|
|00004080| 69 63 74 20 66 69 6c 65 | 73 0a 72 6d 20 2d 66 20 |ict file|s.rm -f |
|00004090| 24 6e 70 61 67 65 73 0a | 65 6c 73 65 0a 24 65 72 |$npages.|else.$er|
|000040a0| 72 6f 72 20 2d 6c 65 76 | 65 6c 20 30 20 66 61 74 |ror -lev|el 0 fat|
|000040b0| 61 6c 20 65 72 72 6f 72 | 2c 20 6e 6f 20 6f 75 74 |al error|, no out|
|000040c0| 70 75 74 20 66 72 6f 6d | 20 67 68 6f 73 74 73 63 |put from| ghostsc|
|000040d0| 72 69 70 74 0a 24 65 72 | 72 6f 72 20 2d 6c 65 76 |ript.$er|ror -lev|
|000040e0| 65 6c 20 30 20 72 65 2d | 72 75 6e 20 75 73 69 6e |el 0 re-|run usin|
|000040f0| 67 20 2d 64 65 62 75 67 | 20 33 20 6f 72 20 68 69 |g -debug| 3 or hi|
|00004100| 67 68 65 72 20 74 6f 20 | 73 65 65 20 67 68 6f 73 |gher to |see ghos|
|00004110| 74 73 63 72 69 70 74 20 | 65 72 72 6f 72 73 0a 65 |tscript |errors.e|
|00004120| 6e 64 69 66 0a 65 78 69 | 74 0a 67 73 64 6f 6e 65 |ndif.exi|t.gsdone|
|00004130| 3a 0a 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 |:.$error| -level |
|00004140| 31 20 20 67 68 6f 73 74 | 73 63 72 69 70 74 20 64 |1 ghost|script d|
|00004150| 6f 6e 65 20 23 23 64 65 | 62 75 67 0a 69 66 20 28 |one ##de|bug.if (|
|00004160| 20 24 3f 6d 61 63 70 73 | 65 64 20 3d 3d 20 31 29 | $?macps|ed == 1)|
|00004170| 6d 76 20 24 73 61 76 65 | 20 24 70 73 66 69 6c 65 |mv $save| $psfile|
|00004180| 0a 73 65 74 20 74 72 61 | 6e 73 6c 61 74 65 20 3d |.set tra|nslate =|
|00004190| 20 20 22 74 72 20 27 5c | 30 31 32 27 20 27 5c 30 | "tr '\|012' '\0|
|000041a0| 31 35 27 22 0a 69 66 28 | 20 24 3f 6e 6f 74 72 61 |15'".if(| $?notra|
|000041b0| 6e 73 6c 61 74 65 20 3d | 3d 20 31 29 73 65 74 20 |nslate =|= 1)set |
|000041c0| 74 72 61 6e 73 6c 61 74 | 65 20 3d 20 22 63 61 74 |translat|e = "cat|
|000041d0| 20 2d 22 0a 73 77 69 74 | 63 68 20 28 20 24 3f 77 | -".swit|ch ( $?w|
|000041e0| 69 64 65 6e 62 6f 78 20 | 29 0a 20 63 61 73 65 20 |idenbox |). case |
|000041f0| 31 0a 20 20 74 6f 75 63 | 68 20 24 64 61 74 0a 20 |1. touc|h $dat. |
|00004200| 20 20 69 66 28 20 24 23 | 62 62 69 6e 66 6f 20 3d | if( $#|bbinfo =|
|00004210| 3d 20 30 20 7c 7c 20 24 | 77 69 64 65 6e 62 6f 78 |= 0 || $|widenbox|
|00004220| 20 21 3d 20 30 20 29 74 | 68 65 6e 0a 20 20 20 65 | != 0 )t|hen. e|
|00004230| 63 68 6f 20 22 25 5c 21 | 50 53 2d 41 64 6f 62 65 |cho "%\!|PS-Adobe|
|00004240| 2d 32 2e 30 20 45 50 53 | 46 2d 31 2e 32 22 20 7c |-2.0 EPS|F-1.2" ||
|00004250| 20 24 74 72 61 6e 73 6c | 61 74 65 20 3e 20 24 64 | $transl|ate > $d|
|00004260| 61 74 0a 20 20 20 65 63 | 68 6f 20 2d 6e 20 22 25 |at. ec|ho -n "%|
|00004270| 25 42 6f 75 6e 64 69 6e | 67 42 6f 78 3a 20 22 20 |%Boundin|gBox: " |
|00004280| 3e 3e 20 24 64 61 74 0a | 20 20 20 73 65 74 20 61 |>> $dat.| set a|
|00004290| 70 70 65 6e 64 0a 20 20 | 20 24 65 72 72 6f 72 20 |ppend. | $error |
|000042a0| 2d 6c 65 76 65 6c 20 32 | 20 20 77 69 6c 6c 20 61 |-level 2| will a|
|000042b0| 70 70 65 6e 64 20 62 6f | 75 6e 64 69 6e 67 20 62 |ppend bo|unding b|
|000042c0| 6f 78 20 69 6e 66 6f 20 | 74 6f 20 70 6f 73 74 73 |ox info |to posts|
|000042d0| 63 69 70 74 20 23 23 64 | 65 62 75 67 0a 20 20 65 |cipt ##d|ebug. e|
|000042e0| 6c 73 65 0a 20 20 20 24 | 65 72 72 6f 72 20 2d 6c |lse. $|error -l|
|000042f0| 65 76 65 6c 20 32 20 20 | 70 6f 73 74 73 63 69 70 |evel 2 |postscip|
|00004300| 74 20 62 6f 75 6e 64 69 | 6e 67 20 62 6f 78 20 6c |t boundi|ng box l|
|00004310| 65 66 74 20 61 6c 6f 6e | 65 20 23 23 64 65 62 75 |eft alon|e ##debu|
|00004320| 67 0a 20 20 65 6e 64 69 | 66 0a 20 20 69 66 28 20 |g. endi|f. if( |
|00004330| 24 23 62 62 69 6e 66 6f | 20 21 3d 20 30 20 29 67 |$#bbinfo| != 0 )g|
|00004340| 6f 74 6f 20 6f 77 6e 62 | 62 0a 20 20 24 65 72 72 |oto ownb|b. $err|
|00004350| 6f 72 20 2d 6c 65 76 65 | 6c 20 31 20 20 67 65 74 |or -leve|l 1 get|
|00004360| 74 69 6e 67 20 62 6f 75 | 6e 64 69 6e 67 20 62 6f |ting bou|nding bo|
|00004370| 78 20 69 6e 66 6f 20 66 | 72 6f 6d 20 70 62 6d 74 |x info f|rom pbmt|
|00004380| 6f 65 70 73 69 20 23 23 | 64 65 62 75 67 0a 20 20 |oepsi ##|debug. |
|00004390| 73 65 74 20 62 62 69 6e | 66 6f 20 20 3d 20 28 20 |set bbin|fo = ( |
|000043a0| 60 70 62 6d 74 6f 65 70 | 73 69 20 24 70 70 6d 20 |`pbmtoep|si $ppm |
|000043b0| 7c 20 68 65 61 64 20 2d | 32 20 7c 20 74 61 69 6c || head -|2 | tail|
|000043c0| 20 2d 31 60 20 20 29 0a | 20 20 24 65 72 72 6f 72 | -1` ).| $error|
|000043d0| 20 2d 6c 65 76 65 6c 20 | 32 20 70 62 6d 74 6f 65 | -level |2 pbmtoe|
|000043e0| 70 73 69 20 73 61 79 73 | 20 24 62 62 69 6e 66 6f |psi says| $bbinfo|
|000043f0| 20 23 23 64 65 62 75 67 | 0a 20 20 40 20 62 62 69 | ##debug|. @ bbi|
|00004400| 6e 66 6f 5b 33 5d 20 3d | 20 24 62 62 69 6e 66 6f |nfo[3] =| $bbinfo|
|00004410| 5b 33 5d 20 2d 20 31 20 | 20 20 23 20 49 20 74 68 |[3] - 1 | # I th|
|00004420| 69 6e 6b 20 74 68 65 20 | 70 62 6d 74 6f 65 70 73 |ink the |pbmtoeps|
|00004430| 69 20 62 6f 78 20 69 73 | 20 0a 20 20 40 20 62 62 |i box is| . @ bb|
|00004440| 69 6e 66 6f 5b 34 5d 20 | 3d 20 24 62 62 69 6e 66 |info[4] |= $bbinf|
|00004450| 6f 5b 34 5d 20 2b 20 31 | 20 20 20 23 20 6e 6f 74 |o[4] + 1| # not|
|00004460| 20 71 75 69 74 65 20 63 | 6f 72 72 65 63 74 20 20 | quite c|orrect |
|00004470| 20 0a 20 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 | . $err|or -leve|
|00004480| 6c 20 32 20 20 22 27 66 | 69 78 65 64 27 20 74 6f |l 2 "'f|ixed' to|
|00004490| 20 62 65 20 22 20 24 62 | 62 69 6e 66 6f 20 23 23 | be " $b|binfo ##|
|000044a0| 64 65 62 75 67 0a 23 5f | 5f 5f 5f 5f 6e 6f 74 65 |debug.#_|____note|
|000044b0| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 | the loc|ation of|
|000044c0| 20 74 68 65 20 27 73 68 | 69 66 74 20 62 62 69 6e | the 'sh|ift bbin|
|000044d0| 66 6f 27 20 6c 69 6e 65 | 23 23 23 0a 20 20 6f 77 |fo' line|###. ow|
|000044e0| 6e 62 62 3a 0a 20 20 73 | 68 69 66 74 20 62 62 69 |nbb:. s|hift bbi|
|000044f0| 6e 66 6f 0a 20 20 69 66 | 28 20 24 77 69 64 65 6e |nfo. if|( $widen|
|00004500| 62 6f 78 20 21 3d 20 30 | 20 29 24 65 72 72 6f 72 |box != 0| )$error|
|00004510| 20 2d 6c 65 76 65 6c 20 | 31 20 20 77 69 64 65 6e | -level |1 widen|
|00004520| 69 6e 67 20 62 6f 75 6e | 64 69 6e 67 20 62 6f 78 |ing boun|ding box|
|00004530| 20 62 79 20 24 77 69 64 | 65 6e 62 6f 78 20 23 23 | by $wid|enbox ##|
|00004540| 64 65 62 75 67 0a 20 20 | 77 68 69 6c 65 28 20 24 |debug. |while( $|
|00004550| 77 69 64 65 6e 62 6f 78 | 20 3e 20 30 20 26 26 20 |widenbox| > 0 && |
|00004560| 28 20 24 62 62 69 6e 66 | 6f 5b 31 5d 20 2d 20 24 |( $bbinf|o[1] - $|
|00004570| 77 69 64 65 6e 62 6f 78 | 20 3c 20 30 20 7c 7c 20 |widenbox| < 0 || |
|00004580| 24 62 62 69 6e 66 6f 5b | 32 5d 20 2d 20 24 77 69 |$bbinfo[|2] - $wi|
|00004590| 64 65 6e 62 6f 78 20 3c | 20 30 20 29 20 29 0a 20 |denbox <| 0 ) ). |
|000045a0| 20 20 24 65 72 72 6f 72 | 20 2d 6c 65 76 65 6c 20 | $error| -level |
|000045b0| 31 20 20 2d 6e 20 63 61 | 6e 74 20 77 69 64 65 6e |1 -n ca|nt widen|
|000045c0| 20 62 6f 78 20 62 79 20 | 24 77 69 64 65 6e 62 6f | box by |$widenbo|
|000045d0| 78 20 23 23 64 65 62 75 | 67 0a 20 20 20 40 20 77 |x ##debu|g. @ w|
|000045e0| 69 64 65 6e 62 6f 78 20 | 3d 20 24 77 69 64 65 6e |idenbox |= $widen|
|000045f0| 62 6f 78 20 2d 20 31 0a | 20 20 20 24 65 72 72 6f |box - 1.| $erro|
|00004600| 72 20 2d 6c 65 76 65 6c | 20 31 20 20 2e 2e 2e 2e |r -level| 1 ....|
|00004610| 20 75 73 69 6e 67 20 24 | 77 69 64 65 6e 62 6f 78 | using $|widenbox|
|00004620| 20 23 23 64 65 62 75 67 | 0a 20 20 65 6e 64 0a 20 | ##debug|. end. |
|00004630| 20 40 20 62 62 69 6e 66 | 6f 5b 31 5d 20 3d 20 24 | @ bbinf|o[1] = $|
|00004640| 62 62 69 6e 66 6f 5b 31 | 5d 20 2d 20 24 77 69 64 |bbinfo[1|] - $wid|
|00004650| 65 6e 62 6f 78 0a 20 20 | 40 20 62 62 69 6e 66 6f |enbox. |@ bbinfo|
|00004660| 5b 32 5d 20 3d 20 24 62 | 62 69 6e 66 6f 5b 32 5d |[2] = $b|binfo[2]|
|00004670| 20 2d 20 24 77 69 64 65 | 6e 62 6f 78 0a 20 20 40 | - $wide|nbox. @|
|00004680| 20 62 62 69 6e 66 6f 5b | 33 5d 20 3d 20 24 62 62 | bbinfo[|3] = $bb|
|00004690| 69 6e 66 6f 5b 33 5d 20 | 2b 20 24 77 69 64 65 6e |info[3] |+ $widen|
|000046a0| 62 6f 78 0a 20 20 40 20 | 62 62 69 6e 66 6f 5b 34 |box. @ |bbinfo[4|
|000046b0| 5d 20 3d 20 24 62 62 69 | 6e 66 6f 5b 34 5d 20 2b |] = $bbi|nfo[4] +|
|000046c0| 20 24 77 69 64 65 6e 62 | 6f 78 0a 20 20 69 66 28 | $widenb|ox. if(|
|000046d0| 20 24 3f 61 70 70 65 6e | 64 20 3d 3d 20 31 29 65 | $?appen|d == 1)e|
|000046e0| 63 68 6f 20 24 62 62 69 | 6e 66 6f 20 7c 20 24 74 |cho $bbi|nfo | $t|
|000046f0| 72 61 6e 73 6c 61 74 65 | 20 3e 3e 20 24 64 61 74 |ranslate| >> $dat|
|00004700| 0a 20 62 72 65 61 6b 73 | 77 0a 20 64 65 66 61 75 |. breaks|w. defau|
|00004710| 6c 74 0a 20 20 24 65 72 | 72 6f 72 20 2d 6c 65 76 |lt. $er|ror -lev|
|00004720| 65 6c 20 31 20 20 77 72 | 69 74 69 6e 67 20 65 70 |el 1 wr|iting ep|
|00004730| 73 20 68 65 61 64 65 72 | 20 75 73 69 6e 67 20 70 |s header| using p|
|00004740| 62 6d 74 6f 65 70 73 69 | 20 64 69 72 65 63 74 6c |bmtoepsi| directl|
|00004750| 79 20 23 23 64 65 62 75 | 67 0a 20 20 70 62 6d 74 |y ##debu|g. pbmt|
|00004760| 6f 65 70 73 69 20 24 70 | 70 6d 20 7c 20 68 65 61 |oepsi $p|pm | hea|
|00004770| 64 20 2d 32 20 7c 20 24 | 74 72 61 6e 73 6c 61 74 |d -2 | $|translat|
|00004780| 65 20 3e 20 24 64 61 74 | 0a 20 62 72 65 61 6b 73 |e > $dat|. breaks|
|00004790| 77 0a 65 6e 64 73 77 0a | 69 66 28 20 24 3f 6e 6f |w.endsw.|if( $?no|
|000047a0| 73 68 6f 77 70 61 67 65 | 20 3d 3d 20 31 20 29 74 |showpage| == 1 )t|
|000047b0| 68 65 6e 0a 20 65 63 68 | 6f 20 22 2f 73 68 6f 77 |hen. ech|o "/show|
|000047c0| 70 61 67 65 20 7b 7d 20 | 64 65 66 22 20 7c 20 24 |page {} |def" | $|
|000047d0| 74 72 61 6e 73 6c 61 74 | 65 20 3e 3e 20 24 64 61 |translat|e >> $da|
|000047e0| 74 0a 20 24 65 72 72 6f | 72 20 2d 6c 65 76 65 6c |t. $erro|r -level|
|000047f0| 20 31 20 20 20 22 2f 73 | 68 6f 77 70 61 67 65 20 | 1 "/s|howpage |
|00004800| 7b 7d 20 64 65 66 22 20 | 61 64 64 65 64 20 74 6f |{} def" |added to|
|00004810| 20 70 6f 73 74 73 63 72 | 69 70 74 20 20 23 23 64 | postscr|ipt ##d|
|00004820| 65 62 75 67 0a 65 6e 64 | 69 66 0a 69 66 28 20 24 |ebug.end|if.if( $|
|00004830| 3f 6e 6f 74 72 61 6e 73 | 66 69 6c 65 20 3d 3d 20 |?notrans|file == |
|00004840| 31 29 73 65 74 20 74 72 | 61 6e 73 6c 61 74 65 20 |1)set tr|anslate |
|00004850| 3d 20 22 63 61 74 20 2d | 22 0a 69 66 28 20 22 24 |= "cat -|".if( "$|
|00004860| 74 72 61 6e 73 6c 61 74 | 65 22 20 21 3d 20 22 63 |translat|e" != "c|
|00004870| 61 74 20 2d 22 29 24 65 | 72 72 6f 72 20 2d 6c 65 |at -")$e|rror -le|
|00004880| 76 65 6c 20 31 20 20 74 | 72 61 6e 73 6c 61 74 69 |vel 1 t|ranslati|
|00004890| 6e 67 20 6c 69 6e 65 20 | 65 6e 64 69 6e 67 73 20 |ng line |endings |
|000048a0| 6f 6e 20 70 6f 73 74 73 | 63 72 69 70 74 20 66 69 |on posts|cript fi|
|000048b0| 6c 65 20 23 23 64 65 62 | 75 67 0a 63 61 74 20 24 |le ##deb|ug.cat $|
|000048c0| 70 73 66 69 6c 65 20 20 | 7c 20 24 74 72 61 6e 73 |psfile || $trans|
|000048d0| 6c 61 74 65 20 3e 3e 20 | 24 64 61 74 0a 69 66 28 |late >> |$dat.if(|
|000048e0| 20 24 70 73 66 69 6c 65 | 20 21 3d 20 24 73 6f 75 | $psfile| != $sou|
|000048f0| 72 63 65 20 29 72 6d 20 | 2d 66 20 24 70 73 66 69 |rce )rm |-f $psfi|
|00004900| 6c 65 0a 69 66 28 20 24 | 3f 77 69 64 65 6e 62 6f |le.if( $|?widenbo|
|00004910| 78 20 3d 3d 20 31 20 29 | 74 68 65 6e 0a 20 40 20 |x == 1 )|then. @ |
|00004920| 78 77 69 64 65 20 3d 20 | 20 24 62 62 69 6e 66 6f |xwide = | $bbinfo|
|00004930| 5b 33 5d 20 2d 20 24 62 | 62 69 6e 66 6f 5b 31 5d |[3] - $b|binfo[1]|
|00004940| 20 0a 20 40 20 79 68 69 | 20 3d 20 24 62 62 69 6e | . @ yhi| = $bbin|
|00004950| 66 6f 5b 34 5d 20 2d 20 | 24 62 62 69 6e 66 6f 5b |fo[4] - |$bbinfo[|
|00004960| 32 5d 0a 20 73 65 74 20 | 78 63 75 74 20 3d 20 24 |2]. set |xcut = $|
|00004970| 62 62 69 6e 66 6f 5b 31 | 5d 0a 20 40 20 79 63 75 |bbinfo[1|]. @ ycu|
|00004980| 74 20 3d 20 2d 20 24 79 | 68 69 20 2b 20 24 62 62 |t = - $y|hi + $bb|
|00004990| 69 6e 66 6f 5b 32 5d 0a | 20 24 65 72 72 6f 72 20 |info[2].| $error |
|000049a0| 2d 6c 65 76 65 6c 20 32 | 20 20 70 69 63 74 20 62 |-level 2| pict b|
|000049b0| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 24 62 62 69 |ounding |box $bbi|
|000049c0| 6e 66 6f 20 23 23 64 65 | 62 75 67 0a 20 73 65 74 |nfo ##de|bug. set|
|000049d0| 20 62 62 65 72 20 3d 20 | 22 66 61 74 61 6c 20 62 | bber = |"fatal b|
|000049e0| 6f 75 6e 64 69 6e 67 20 | 62 6f 78 20 65 72 72 6f |ounding |box erro|
|000049f0| 72 3a 22 20 23 23 64 65 | 62 75 67 0a 20 69 66 28 |r:" ##de|bug. if(|
|00004a00| 20 24 78 63 75 74 20 3c | 20 30 20 29 73 65 74 20 | $xcut <| 0 )set |
|00004a10| 62 62 65 72 20 3d 20 28 | 20 24 62 62 65 72 20 22 |bber = (| $bber "|
|00004a20| 78 20 3d 20 24 78 63 75 | 74 20 6f 75 74 20 6f 66 |x = $xcu|t out of|
|00004a30| 20 62 6f 75 6e 64 73 20 | 22 20 29 20 23 23 64 65 | bounds |" ) ##de|
|00004a40| 62 75 67 0a 20 69 66 28 | 20 24 78 77 69 64 65 20 |bug. if(| $xwide |
|00004a50| 3c 20 38 20 29 73 65 74 | 20 62 62 65 72 20 3d 20 |< 8 )set| bber = |
|00004a60| 28 20 24 62 62 65 72 20 | 22 78 77 69 64 74 68 20 |( $bber |"xwidth |
|00004a70| 3d 20 24 78 77 69 64 65 | 20 6c 65 73 73 20 74 68 |= $xwide| less th|
|00004a80| 61 6e 20 38 20 69 73 20 | 74 6f 6f 20 73 6d 61 6c |an 8 is |too smal|
|00004a90| 6c 22 20 29 20 20 23 23 | 64 65 62 75 67 0a 20 69 |l" ) ##|debug. i|
|00004aa0| 66 28 20 24 79 68 69 20 | 2b 20 24 79 63 75 74 20 |f( $yhi |+ $ycut |
|00004ab0| 3e 20 30 20 29 73 65 74 | 20 62 62 65 72 20 3d 20 |> 0 )set| bber = |
|00004ac0| 28 20 24 62 62 65 72 20 | 22 79 20 6f 75 74 20 6f |( $bber |"y out o|
|00004ad0| 66 20 62 6f 75 6e 64 73 | 22 20 29 20 23 23 64 65 |f bounds|" ) ##de|
|00004ae0| 62 75 67 0a 20 69 66 28 | 20 24 23 62 62 65 72 20 |bug. if(| $#bber |
|00004af0| 3e 20 31 20 29 24 65 72 | 72 6f 72 20 2d 6c 65 76 |> 1 )$er|ror -lev|
|00004b00| 65 6c 20 30 20 20 24 62 | 62 65 72 20 23 23 64 65 |el 0 $b|ber ##de|
|00004b10| 62 75 67 0a 20 69 66 28 | 20 24 23 62 62 65 72 20 |bug. if(| $#bber |
|00004b20| 3e 20 31 20 29 65 78 69 | 74 20 20 23 23 64 65 62 |> 1 )exi|t ##deb|
|00004b30| 75 67 0a 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |ug. $err|or -leve|
|00004b40| 6c 20 31 20 20 77 72 69 | 74 69 6e 67 20 70 69 63 |l 1 wri|ting pic|
|00004b50| 74 20 66 69 6c 65 20 75 | 73 69 6e 67 20 70 6e 6d |t file u|sing pnm|
|00004b60| 63 75 74 2c 70 70 6d 74 | 6f 70 69 63 74 20 23 23 |cut,ppmt|opict ##|
|00004b70| 64 65 62 75 67 0a 20 24 | 65 72 72 6f 72 20 2d 6c |debug. $|error -l|
|00004b80| 65 76 65 6c 20 32 20 20 | 70 6e 6d 63 75 74 20 24 |evel 2 |pnmcut $|
|00004b90| 78 63 75 74 20 24 79 63 | 75 74 20 24 78 77 69 64 |xcut $yc|ut $xwid|
|00004ba0| 65 20 24 79 68 69 20 24 | 70 70 6d 20 23 23 64 65 |e $yhi $|ppm ##de|
|00004bb0| 62 75 67 0a 20 28 20 70 | 6e 6d 63 75 74 20 24 78 |bug. ( p|nmcut $x|
|00004bc0| 63 75 74 20 24 79 63 75 | 74 20 24 78 77 69 64 65 |cut $ycu|t $xwide|
|00004bd0| 20 24 79 68 69 20 24 70 | 70 6d 20 7c 20 70 70 6d | $yhi $p|pm | ppm|
|00004be0| 74 6f 70 69 63 74 20 2d | 20 3e 20 24 70 69 63 74 |topict -| > $pict|
|00004bf0| 20 29 20 7c 26 20 5c 0a | 09 24 65 72 72 6f 72 20 | ) |& \.|.$error |
|00004c00| 2d 63 61 74 20 2d 6c 65 | 76 65 6c 20 32 0a 65 6c |-cat -le|vel 2.el|
|00004c10| 73 65 0a 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |se. $err|or -leve|
|00004c20| 6c 20 31 20 20 77 72 69 | 74 69 6e 67 20 70 69 63 |l 1 wri|ting pic|
|00004c30| 74 20 66 69 6c 65 20 75 | 73 69 6e 67 20 70 6e 6d |t file u|sing pnm|
|00004c40| 63 72 6f 70 2c 70 70 6d | 74 6f 70 69 63 74 20 23 |crop,ppm|topict #|
|00004c50| 23 64 65 62 75 67 0a 20 | 70 6e 6d 63 72 6f 70 20 |#debug. |pnmcrop |
|00004c60| 24 70 70 6d 20 7c 20 70 | 70 6d 74 6f 70 69 63 74 |$ppm | p|pmtopict|
|00004c70| 20 2d 20 3e 20 24 70 69 | 63 74 20 0a 65 6e 64 69 | - > $pi|ct .endi|
|00004c80| 66 0a 69 66 28 24 64 65 | 62 75 67 6c 65 76 20 3e |f.if($de|buglev >|
|00004c90| 3d 20 33 29 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |= 3)$err|or -leve|
|00004ca0| 6c 20 33 20 20 72 65 6d | 6f 76 69 6e 67 20 22 60 |l 3 rem|oving "`|
|00004cb0| 2f 62 69 6e 2f 6c 73 20 | 2d 6c 20 24 70 70 6d 60 |/bin/ls |-l $ppm`|
|00004cc0| 22 20 23 23 64 65 62 75 | 67 0a 72 6d 20 2d 66 20 |" ##debu|g.rm -f |
|00004cd0| 24 70 70 6d 0a 73 65 74 | 20 69 66 74 79 70 65 20 |$ppm.set| iftype |
|00004ce0| 69 66 63 72 65 61 74 6f | 72 0a 69 66 28 20 24 3f |ifcreato|r.if( $?|
|00004cf0| 45 50 53 54 59 50 45 20 | 21 3d 20 30 20 29 74 68 |EPSTYPE |!= 0 )th|
|00004d00| 65 6e 0a 20 73 65 74 20 | 69 66 74 79 70 65 20 3d |en. set |iftype =|
|00004d10| 20 28 20 2d 74 79 70 65 | 20 24 45 50 53 54 59 50 | ( -type| $EPSTYP|
|00004d20| 45 20 29 0a 65 6e 64 69 | 66 0a 69 66 28 20 24 3f |E ).endi|f.if( $?|
|00004d30| 45 50 53 43 52 45 41 54 | 4f 52 20 21 3d 20 30 20 |EPSCREAT|OR != 0 |
|00004d40| 29 74 68 65 6e 0a 20 73 | 65 74 20 69 66 63 72 65 |)then. s|et ifcre|
|00004d50| 61 74 6f 72 20 3d 20 28 | 20 2d 63 72 65 61 74 6f |ator = (| -creato|
|00004d60| 72 20 24 45 50 53 43 52 | 45 41 54 4f 52 20 29 0a |r $EPSCR|EATOR ).|
|00004d70| 65 6e 64 69 66 0a 24 65 | 72 72 6f 72 20 2d 6c 65 |endif.$e|rror -le|
|00004d80| 76 65 6c 20 31 20 20 77 | 72 69 74 69 6e 67 20 6d |vel 1 w|riting m|
|00004d90| 61 63 62 69 6e 61 72 79 | 20 66 69 6c 65 20 23 23 |acbinary| file ##|
|00004da0| 64 65 62 75 67 0a 70 73 | 2d 70 69 63 74 32 6d 61 |debug.ps|-pict2ma|
|00004db0| 63 62 20 24 65 70 73 20 | 24 69 66 74 79 70 65 20 |cb $eps |$iftype |
|00004dc0| 24 69 66 63 72 65 61 74 | 6f 72 20 7c 26 20 24 65 |$ifcreat|or |& $e|
|00004dd0| 72 72 6f 72 20 2d 63 61 | 74 20 2d 6c 65 76 65 6c |rror -ca|t -level|
|00004de0| 20 32 20 0a 69 66 28 24 | 64 65 62 75 67 6c 65 76 | 2 .if($|debuglev|
|00004df0| 20 3e 3d 20 33 29 74 68 | 65 6e 20 23 23 64 65 62 | >= 3)th|en ##deb|
|00004e00| 75 67 0a 20 24 65 72 72 | 6f 72 20 2d 6c 65 76 65 |ug. $err|or -leve|
|00004e10| 6c 20 33 20 20 72 65 6d | 6f 76 69 6e 67 20 22 60 |l 3 rem|oving "`|
|00004e20| 2f 62 69 6e 2f 6c 73 20 | 2d 6c 20 24 70 69 63 74 |/bin/ls |-l $pict|
|00004e30| 60 22 20 23 23 64 65 62 | 75 67 0a 20 24 65 72 72 |`" ##deb|ug. $err|
|00004e40| 6f 72 20 2d 6c 65 76 65 | 6c 20 33 20 20 72 65 6d |or -leve|l 3 rem|
|00004e50| 6f 76 69 6e 67 20 22 60 | 2f 62 69 6e 2f 6c 73 20 |oving "`|/bin/ls |
|00004e60| 2d 6c 20 24 64 61 74 60 | 22 20 23 23 64 65 62 75 |-l $dat`|" ##debu|
|00004e70| 67 0a 65 6e 64 69 66 20 | 23 23 64 65 62 75 67 0a |g.endif |##debug.|
|00004e80| 72 6d 20 2d 66 20 24 70 | 69 63 74 20 24 64 61 74 |rm -f $p|ict $dat|
|00004e90| 0a 73 77 69 74 63 68 20 | 28 20 24 64 65 73 74 64 |.switch |( $destd|
|00004ea0| 69 72 20 29 0a 20 63 61 | 73 65 20 2e 0a 20 20 24 |ir ). ca|se .. $|
|00004eb0| 65 72 72 6f 72 20 2d 6c | 65 76 65 6c 20 31 20 20 |error -l|evel 1 |
|00004ec0| 6d 61 63 62 69 6e 61 72 | 79 20 66 69 6c 65 20 24 |macbinar|y file $|
|00004ed0| 62 69 6e 20 73 61 76 65 | 64 20 69 6e 20 63 75 72 |bin save|d in cur|
|00004ee0| 72 65 6e 74 20 64 69 72 | 65 63 74 6f 72 79 20 23 |rent dir|ectory #|
|00004ef0| 23 64 65 62 75 67 0a 20 | 62 72 65 61 6b 73 77 0a |#debug. |breaksw.|
|00004f00| 20 63 61 73 65 20 73 74 | 64 6f 75 74 0a 20 20 63 | case st|dout. c|
|00004f10| 61 74 20 24 62 69 6e 0a | 20 20 69 66 28 24 64 65 |at $bin.| if($de|
|00004f20| 62 75 67 6c 65 76 20 3e | 3d 20 33 29 24 65 72 72 |buglev >|= 3)$err|
|00004f30| 6f 72 20 2d 6c 65 76 65 | 6c 20 33 20 20 72 65 6d |or -leve|l 3 rem|
|00004f40| 6f 76 69 6e 67 20 22 60 | 2f 62 69 6e 2f 6c 73 20 |oving "`|/bin/ls |
|00004f50| 2d 6c 20 24 62 69 6e 60 | 22 20 23 23 64 65 62 75 |-l $bin`|" ##debu|
|00004f60| 67 0a 20 20 72 6d 20 2d | 66 20 24 62 69 6e 0a 20 |g. rm -|f $bin. |
|00004f70| 20 24 65 72 72 6f 72 20 | 2d 6c 65 76 65 6c 20 31 | $error |-level 1|
|00004f80| 20 20 6d 61 63 62 69 6e | 61 72 79 20 77 72 69 74 | macbin|ary writ|
|00004f90| 74 65 6e 20 74 6f 20 73 | 74 64 6f 75 74 20 20 20 |ten to s|tdout |
|00004fa0| 20 20 20 20 20 20 20 23 | 23 64 65 62 75 67 0a 20 | #|#debug. |
|00004fb0| 62 72 65 61 6b 73 77 0a | 20 64 65 66 61 75 6c 74 |breaksw.| default|
|00004fc0| 0a 20 20 6d 76 20 24 62 | 69 6e 20 24 64 65 73 74 |. mv $b|in $dest|
|00004fd0| 64 69 72 0a 20 20 24 65 | 72 72 6f 72 20 2d 6c 65 |dir. $e|rror -le|
|00004fe0| 76 65 6c 20 31 20 20 6f | 75 74 70 75 74 20 6d 61 |vel 1 o|utput ma|
|00004ff0| 63 62 69 6e 61 72 79 20 | 66 69 6c 65 20 69 73 20 |cbinary |file is |
|00005000| 24 64 65 73 74 64 69 72 | 20 20 20 20 23 23 64 65 |$destdir| ##de|
|00005010| 62 75 67 0a 20 62 72 65 | 61 6b 73 77 0a 65 6e 64 |bug. bre|aksw.end|
|00005020| 73 77 0a 53 48 41 52 5f | 45 4f 46 0a 63 68 6d 6f |sw.SHAR_|EOF.chmo|
|00005030| 64 20 2b 78 20 27 70 73 | 32 65 70 73 2d 6d 61 63 |d +x 'ps|2eps-mac|
|00005040| 27 0a 66 69 20 23 20 65 | 6e 64 20 6f 66 20 6f 76 |'.fi # e|nd of ov|
|00005050| 65 72 77 72 69 74 69 6e | 67 20 63 68 65 63 6b 0a |erwritin|g check.|
|00005060| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 73 2d 70 |if test |-f 'ps-p|
|00005070| 69 63 74 32 6d 61 63 62 | 2e 63 27 0a 74 68 65 6e |ict2macb|.c'.then|
|00005080| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|00005090| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|000050a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|000050b0| 27 70 73 2d 70 69 63 74 | 32 6d 61 63 62 2e 63 27 |'ps-pict|2macb.c'|
|000050c0| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|000050d0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 70 73 2d 70 69 |HAR_EOF |> 'ps-pi|
|000050e0| 63 74 32 6d 61 63 62 2e | 63 27 0a 2f 2a 20 20 70 |ct2macb.|c'./* p|
|000050f0| 73 2d 70 69 63 74 32 6d | 61 63 62 69 6e 2e 63 20 |s-pict2m|acbin.c |
|00005100| 20 20 20 20 20 20 20 20 | 20 67 65 6f 72 67 65 20 | | george |
|00005110| 6a 65 66 66 65 72 73 6f | 6e 20 67 65 6f 72 67 65 |jefferso|n george|
|00005120| 40 6d 65 63 68 2e 73 65 | 61 73 2e 75 70 65 6e 6e |@mech.se|as.upenn|
|00005130| 2e 65 64 75 20 20 2a 2f | 0a 2f 2a 20 20 69 6e 69 |.edu */|./* ini|
|00005140| 74 69 61 6c 20 72 65 6c | 65 61 73 65 20 34 2f 34 |tial rel|ease 4/4|
|00005150| 2f 39 32 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/92 | |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005180| 20 20 20 20 2a 2f 0a 2f | 2a 20 20 75 73 61 67 65 | */./|* usage|
|00005190| 20 70 73 2d 70 69 63 74 | 32 6d 61 63 62 69 6e 20 | ps-pict|2macbin |
|000051a0| 66 69 6c 65 20 5b 2d 74 | 79 70 65 20 54 59 50 45 |file [-t|ype TYPE|
|000051b0| 20 5d 20 5b 20 2d 63 72 | 65 61 74 6f 72 20 43 52 | ] [ -cr|eator CR|
|000051c0| 45 41 54 4f 52 20 5d 20 | 20 20 20 20 20 20 20 20 |EATOR ] | |
|000051d0| 20 20 2a 2f 0a 2f 2a 20 | 20 63 6f 6d 62 69 6e 65 | */./* | combine|
|000051e0| 73 20 22 66 69 6c 65 2e | 70 73 22 20 61 6e 64 20 |s "file.|ps" and |
|000051f0| 22 66 69 6c 65 2e 70 69 | 63 74 22 20 74 6f 20 66 |"file.pi|ct" to f|
|00005200| 6f 72 6d 20 22 66 69 6c | 65 2e 62 69 6e 22 20 20 |orm "fil|e.bin" |
|00005210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005220| 2a 2f 0a 2f 2a 20 20 66 | 69 6c 65 2e 62 69 6e 20 |*/./* f|ile.bin |
|00005230| 69 73 20 61 20 6d 61 63 | 62 69 6e 61 72 79 20 66 |is a mac|binary f|
|00005240| 6f 72 6d 61 74 20 66 69 | 6c 65 2c 20 77 69 74 68 |ormat fi|le, with|
|00005250| 20 6d 61 63 69 6e 74 6f | 73 68 20 6e 61 6d 65 20 | macinto|sh name |
|00005260| 22 66 69 6c 65 22 20 20 | 20 20 20 20 20 20 2a 2f |"file" | */|
|00005270| 0a 2f 2a 20 20 61 6e 64 | 20 63 72 65 61 74 69 6f |./* and| creatio|
|00005280| 6e 2f 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 20 64 |n/modifi|cation d|
|00005290| 61 74 65 73 20 73 65 74 | 20 74 6f 20 74 68 65 20 |ates set| to the |
|000052a0| 63 75 72 72 65 6e 74 20 | 74 69 6d 65 20 6f 66 20 |current |time of |
|000052b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 2f | | */./|
|000052c0| 2a 20 20 64 61 79 20 28 | 20 61 6e 79 62 6f 64 79 |* day (| anybody|
|000052d0| 20 63 61 72 65 3f 20 29 | 20 20 20 20 20 20 20 20 | care? )| |
|000052e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005300| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 2f 2a 20 | | */./* |
|00005310| 20 69 66 20 74 79 70 65 | 20 61 6e 64 20 63 72 65 | if type| and cre|
|00005320| 61 74 6f 72 20 61 72 65 | 20 6e 6f 74 20 73 70 65 |ator are| not spe|
|00005330| 63 69 66 69 65 64 2c 20 | 74 68 65 79 20 61 72 65 |cified, |they are|
|00005340| 20 73 65 74 20 74 6f 20 | 45 50 53 46 20 61 6e 64 | set to |EPSF and|
|00005350| 20 4d 53 57 44 20 20 20 | 2a 2f 0a 2f 2a 20 20 62 | MSWD |*/./* b|
|00005360| 65 63 61 75 73 65 20 5f | 49 5f 20 75 73 65 20 77 |ecause _|I_ use w|
|00005370| 6f 72 64 35 20 20 20 20 | 20 20 20 20 20 20 20 20 |ord5 | |
|00005380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053a0| 20 20 20 20 20 20 2a 2f | 0a 2f 2a 20 20 49 20 73 | */|./* I s|
|000053b0| 65 65 20 6e 6f 20 72 65 | 61 73 6f 6e 20 74 6f 20 |ee no re|ason to |
|000053c0| 70 72 6f 76 69 64 65 20 | 6f 70 74 69 6f 6e 73 20 |provide |options |
|000053d0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 66 69 |to chang|e the fi|
|000053e0| 6c 65 20 6e 61 6d 65 73 | 2c 20 20 20 20 20 20 20 |le names|, |
|000053f0| 20 20 20 20 2a 2f 0a 2f | 2a 20 20 62 75 74 20 69 | */./|* but i|
|00005400| 74 20 63 6f 75 6c 64 20 | 65 61 73 69 6c 79 20 62 |t could |easily b|
|00005410| 65 20 64 6f 6e 65 20 20 | 20 20 20 20 20 20 20 20 |e done | |
|00005420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005440| 20 20 2a 2f 0a 2f 2a 20 | 20 22 66 69 6c 65 2e 70 | */./* | "file.p|
|00005450| 73 22 20 69 73 20 74 61 | 6b 65 6e 20 74 6f 20 62 |s" is ta|ken to b|
|00005460| 65 20 74 68 65 20 64 61 | 74 61 20 66 6f 72 6b 2c |e the da|ta fork,|
|00005470| 20 6e 6f 20 61 73 73 75 | 6d 70 74 69 6f 6e 73 20 | no assu|mptions |
|00005480| 61 72 65 20 6d 61 64 65 | 20 68 65 72 65 20 20 20 |are made| here |
|00005490| 2a 2f 0a 2f 2a 20 20 61 | 62 6f 75 74 20 69 74 73 |*/./* a|bout its|
|000054a0| 20 66 6f 72 6d 61 74 2c | 20 68 6f 77 65 76 65 72 | format,| however|
|000054b0| 20 69 74 20 69 73 20 70 | 72 65 73 75 6d 61 62 6c | it is p|resumabl|
|000054c0| 79 20 70 6f 73 74 73 63 | 72 69 70 74 20 63 6f 64 |y postsc|ript cod|
|000054d0| 65 20 2d 2d 20 49 74 20 | 73 65 65 6d 73 20 2a 2f |e -- It |seems */|
|000054e0| 0a 2f 2a 20 20 74 6f 20 | 62 65 20 6e 65 63 65 73 |./* to |be neces|
|000054f0| 73 61 72 79 20 74 6f 20 | 63 6f 6e 76 65 72 74 20 |sary to |convert |
|00005500| 6c 69 6e 65 20 65 6e 64 | 69 6e 67 73 20 74 6f 20 |line end|ings to |
|00005510| 6d 61 63 69 6e 74 6f 73 | 68 20 65 6e 64 69 6e 67 |macintos|h ending|
|00005520| 73 20 28 20 5e 4d 20 29 | 20 20 20 20 2a 2f 0a 2f |s ( ^M )| */./|
|00005530| 2a 20 20 49 20 74 68 69 | 6e 6b 20 69 74 20 6d 6f |* I thi|nk it mo|
|00005540| 72 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 74 |re appro|priate t|
|00005550| 6f 20 64 6f 20 74 68 61 | 74 20 63 6f 6e 76 65 72 |o do tha|t conver|
|00005560| 73 69 6f 6e 20 65 78 74 | 65 72 6e 61 6c 6c 79 20 |sion ext|ernally |
|00005570| 28 20 65 67 20 74 72 20 | 29 20 2a 2f 0a 2f 2a 20 |( eg tr |) */./* |
|00005580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055c0| 20 20 20 20 20 20 20 20 | 2a 2f 0a 2f 2a 20 20 22 | |*/./* "|
|000055d0| 66 69 6c 65 2e 70 69 63 | 74 22 20 69 73 20 61 20 |file.pic|t" is a |
|000055e0| 70 69 63 74 20 64 61 74 | 61 20 66 69 6c 65 2c 20 |pict dat|a file, |
|000055f0| 77 68 69 63 68 20 69 73 | 20 6d 61 73 73 61 67 65 |which is| massage|
|00005600| 64 20 69 6e 74 6f 20 74 | 68 65 20 72 65 73 6f 75 |d into t|he resou|
|00005610| 72 63 65 20 20 20 2a 2f | 0a 2f 2a 20 20 66 6f 72 |rce */|./* for|
|00005620| 6b 20 20 49 74 73 20 66 | 6f 72 6d 61 74 20 5f 69 |k Its f|ormat _i|
|00005630| 73 5f 20 69 6d 70 6f 72 | 74 61 6e 74 20 68 65 72 |s_ impor|tant her|
|00005640| 65 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00005650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005660| 20 20 20 20 2a 2f 0a 2f | 2a 20 20 70 70 6d 74 6f | */./|* ppmto|
|00005670| 70 69 63 74 20 6f 75 74 | 70 75 74 20 69 73 20 61 |pict out|put is a|
|00005680| 73 73 75 6d 65 64 2c 20 | 77 68 69 63 68 20 28 20 |ssumed, |which ( |
|00005690| 66 6f 72 20 6e 6f 20 61 | 70 70 61 72 65 6e 74 20 |for no a|pparent |
|000056a0| 72 65 61 73 6f 6e 20 29 | 20 63 6f 6e 74 61 69 6e |reason )| contain|
|000056b0| 73 20 2a 2f 0a 2f 2a 20 | 20 6c 6f 74 73 20 6f 66 |s */./* | lots of|
|000056c0| 20 6e 75 6c 6c 20 62 79 | 74 65 73 20 70 72 69 6f | null by|tes prio|
|000056d0| 72 20 74 6f 20 74 68 65 | 20 61 63 74 75 61 6c 20 |r to the| actual |
|000056e0| 64 61 74 61 2e 2e 20 20 | 20 20 20 20 20 20 20 20 |data.. | |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005700| 2a 2f 0a 2f 2a 20 20 28 | 20 69 6e 20 6f 74 68 65 |*/./* (| in othe|
|00005710| 72 20 77 6f 72 64 73 20 | 74 68 69 73 20 70 72 6f |r words |this pro|
|00005720| 67 72 61 6d 20 77 69 6c | 6c 20 6e 6f 74 20 77 6f |gram wil|l not wo|
|00005730| 72 6b 20 77 69 74 68 20 | 6f 74 68 65 72 20 74 79 |rk with |other ty|
|00005740| 70 65 73 20 6f 66 20 20 | 20 20 20 20 20 20 2a 2f |pes of | */|
|00005750| 0a 2f 2a 20 20 72 65 73 | 6f 75 72 63 65 73 20 20 |./* res|ources |
|00005760| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |) | |
|00005770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005790| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 2f | | */./|
|000057a0| 2a 20 20 74 68 65 20 66 | 6f 72 6d 61 74 20 6f 66 |* the f|ormat of|
|000057b0| 20 74 68 65 20 70 69 63 | 74 20 72 65 73 6f 75 72 | the pic|t resour|
|000057c0| 63 65 20 66 6f 72 6b 20 | 63 61 6e 20 62 65 20 66 |ce fork |can be f|
|000057d0| 6f 75 6e 64 20 69 6e 20 | 49 4d 20 31 2c 20 70 61 |ound in |IM 1, pa|
|000057e0| 67 65 20 31 32 38 2d 31 | 33 31 2a 2f 0a 2f 2a 20 |ge 128-1|31*/./* |
|000057f0| 20 6d 61 6e 79 20 61 73 | 73 75 6d 70 74 69 6f 6e | many as|sumption|
|00005800| 73 20 61 72 65 20 27 68 | 61 72 64 20 77 69 72 65 |s are 'h|ard wire|
|00005810| 64 27 20 69 6e 74 6f 20 | 74 68 69 73 20 70 72 6f |d' into |this pro|
|00005820| 67 72 61 6d 20 2d 2d 20 | 65 67 20 77 65 20 68 61 |gram -- |eg we ha|
|00005830| 76 65 20 20 20 20 20 20 | 2a 2f 0a 2f 2a 20 20 65 |ve |*/./* e|
|00005840| 78 61 63 74 6c 79 20 6f | 6e 65 20 72 65 73 6f 75 |xactly o|ne resou|
|00005850| 72 63 65 2c 20 6f 66 20 | 74 79 70 65 20 50 49 43 |rce, of |type PIC|
|00005860| 54 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |T | |
|00005870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005880| 20 20 20 20 20 20 2a 2f | 0a 2f 2a 20 2a 2f 0a 2f | */|./* */./|
|00005890| 2a 20 49 74 20 77 69 6c | 6c 20 62 65 20 70 61 69 |* It wil|l be pai|
|000058a0| 6e 66 75 6c 6c 79 20 6f | 62 76 69 6f 75 73 20 74 |nfully o|bvious t|
|000058b0| 68 61 74 20 74 68 69 73 | 20 69 73 20 74 68 65 20 |hat this| is the |
|000058c0| 77 6f 72 6b 20 6f 66 20 | 61 20 6e 6f 76 69 63 65 |work of |a novice|
|000058d0| 20 43 20 20 20 20 20 20 | 20 20 2a 2f 0a 2f 2a 20 | C | */./* |
|000058e0| 70 72 6f 67 72 61 6d 6d | 65 72 2c 20 69 6e 20 66 |programm|er, in f|
|000058f0| 61 63 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |act the |program |
|00005900| 69 73 20 6f 72 69 67 69 | 6e 61 6c 6c 79 20 64 6f |is origi|nally do|
|00005910| 6e 65 20 69 6e 20 46 4f | 52 54 52 41 4e 20 61 6e |ne in FO|RTRAN an|
|00005920| 64 20 28 68 61 6e 64 29 | 2a 2f 0a 2f 2a 20 63 6f |d (hand)|*/./* co|
|00005930| 6e 76 65 72 74 65 64 20 | 28 20 6e 6f 74 65 20 74 |nverted |( note t|
|00005940| 68 65 20 6c 61 63 6b 20 | 6f 66 20 73 74 72 75 63 |he lack |of struc|
|00005950| 74 27 73 20 61 6e 64 20 | 73 75 63 68 20 29 20 20 |t's and |such ) |
|00005960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005970| 20 20 20 20 20 20 2a 2f | 0a 2f 2a 20 61 6e 79 77 | */|./* anyw|
|00005980| 61 79 2c 20 69 74 20 77 | 6f 72 6b 73 20 6f 6e 20 |ay, it w|orks on |
|00005990| 73 65 76 65 72 61 6c 20 | 73 75 6e 34 2d 69 73 68 |several |sun4-ish|
|000059a0| 20 6d 61 63 68 69 6e 65 | 73 20 61 72 6f 75 6e 64 | machine|s around|
|000059b0| 20 68 65 72 65 2c 20 79 | 6f 75 72 20 6d 69 6c 61 | here, y|our mila|
|000059c0| 67 65 20 20 2a 2f 0a 2f | 2a 20 6d 61 79 20 76 61 |ge */./|* may va|
|000059d0| 72 79 20 2a 2f 0a 0a 0a | 23 69 6e 63 6c 75 64 65 |ry */...|#include|
|000059e0| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 23 69 6e 63 6c | <stdio.|h>.#incl|
|000059f0| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00005a00| 3e 0a 23 69 66 64 65 66 | 20 6e 6f 74 69 6d 65 62 |>.#ifdef| notimeb|
|00005a10| 0a 23 65 6c 73 65 0a 23 | 69 6e 63 6c 75 64 65 20 |.#else.#|include |
|00005a20| 3c 73 79 73 2f 74 69 6d | 65 62 2e 68 3e 0a 23 65 |<sys/tim|eb.h>.#e|
|00005a30| 6e 64 69 66 0a 0a 0a 6d | 61 69 6e 20 28 61 72 67 |ndif...m|ain (arg|
|00005a40| 63 2c 61 72 67 76 29 0a | 20 69 6e 74 20 61 72 67 |c,argv).| int arg|
|00005a50| 63 3b 20 63 68 61 72 20 | 2a 2a 61 72 67 76 3b 0a |c; char |**argv;.|
|00005a60| 7b 0a 69 6e 74 20 69 2c | 6a 2c 6b 73 69 7a 65 3b |{.int i,|j,ksize;|
|00005a70| 0a 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 6d |.unsigne|d long m|
|00005a80| 74 69 6d 3d 30 2c 63 74 | 69 6d 3d 30 2c 75 6e 69 |tim=0,ct|im=0,uni|
|00005a90| 78 74 69 6d 65 3b 0a 69 | 6e 74 20 69 72 65 73 6c |xtime;.i|nt iresl|
|00005aa0| 65 6e 67 74 68 2c 69 64 | 61 74 61 6c 65 6e 67 74 |ength,id|atalengt|
|00005ab0| 68 2c 69 70 61 64 3b 0a | 46 49 4c 45 20 2a 70 69 |h,ipad;.|FILE *pi|
|00005ac0| 63 2c 2a 62 69 6e 2c 20 | 2a 70 73 3b 0a 63 68 61 |c,*bin, |*ps;.cha|
|00005ad0| 72 20 6f 75 74 6e 61 6d | 65 5b 33 30 5d 2c 69 6e |r outnam|e[30],in|
|00005ae0| 6e 61 6d 65 5b 33 30 5d | 2c 77 6f 72 64 5b 34 5d |name[30]|,word[4]|
|00005af0| 2c 62 79 74 65 5b 31 5d | 2c 7a 65 72 6f 5b 31 5d |,byte[1]|,zero[1]|
|00005b00| 3b 0a 63 68 61 72 20 66 | 74 79 70 5b 34 5d 3b 0a |;.char f|typ[4];.|
|00005b10| 63 68 61 72 20 66 63 72 | 65 61 5b 34 5d 3b 0a 63 |char fcr|ea[4];.c|
|00005b20| 68 61 72 20 6d 61 63 6e | 61 6d 65 5b 36 33 5d 2c |har macn|ame[63],|
|00005b30| 20 62 61 73 65 6e 61 6d | 65 5b 33 30 5d 2c 20 70 | basenam|e[30], p|
|00005b40| 73 6e 61 6d 65 5b 33 30 | 5d 2c 20 62 62 75 66 5b |sname[30|], bbuf[|
|00005b50| 31 32 38 5d 3b 0a 65 78 | 74 65 72 6e 20 75 6e 73 |128];.ex|tern uns|
|00005b60| 69 67 6e 65 64 20 6c 6f | 6e 67 20 74 69 6d 65 32 |igned lo|ng time2|
|00005b70| 6d 61 63 28 29 3b 0a 69 | 66 28 20 61 72 67 63 20 |mac();.i|f( argc |
|00005b80| 3c 3d 20 31 20 29 0a 20 | 20 7b 0a 20 20 20 20 66 |<= 1 ). | {. f|
|00005b90| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 0a 20 |printf(s|tderr,. |
|00005ba0| 20 20 20 22 75 73 61 67 | 65 20 70 73 2d 70 69 63 | "usag|e ps-pic|
|00005bb0| 74 32 6d 61 63 62 69 6e | 2e 63 20 66 69 6c 65 2e |t2macbin|.c file.|
|00005bc0| 70 73 20 5b 20 2d 74 79 | 70 65 20 54 59 50 45 20 |ps [ -ty|pe TYPE |
|00005bd0| 5d 5b 2d 63 72 65 61 74 | 6f 72 20 43 52 54 52 20 |][-creat|or CRTR |
|00005be0| 5d 5c 6e 22 29 3b 0a 20 | 20 20 20 65 78 69 74 28 |]\n");. | exit(|
|00005bf0| 29 3b 0a 20 20 7d 0a 73 | 74 72 63 70 79 28 62 61 |);. }.s|trcpy(ba|
|00005c00| 73 65 6e 61 6d 65 2c 61 | 72 67 76 5b 31 5d 29 3b |sename,a|rgv[1]);|
|00005c10| 0a 73 74 72 63 70 79 28 | 69 6e 6e 61 6d 65 2c 62 |.strcpy(|inname,b|
|00005c20| 61 73 65 6e 61 6d 65 29 | 3b 73 74 72 63 61 74 28 |asename)|;strcat(|
|00005c30| 69 6e 6e 61 6d 65 2c 22 | 2e 70 69 63 74 22 29 3b |inname,"|.pict");|
|00005c40| 0a 73 74 72 63 70 79 28 | 6f 75 74 6e 61 6d 65 2c |.strcpy(|outname,|
|00005c50| 62 61 73 65 6e 61 6d 65 | 29 3b 73 74 72 63 61 74 |basename|);strcat|
|00005c60| 28 6f 75 74 6e 61 6d 65 | 2c 22 2e 62 69 6e 22 29 |(outname|,".bin")|
|00005c70| 3b 0a 62 7a 65 72 6f 28 | 6d 61 63 6e 61 6d 65 2c |;.bzero(|macname,|
|00005c80| 36 33 29 3b 0a 73 74 72 | 63 70 79 28 6d 61 63 6e |63);.str|cpy(macn|
|00005c90| 61 6d 65 2c 62 61 73 65 | 6e 61 6d 65 29 3b 0a 73 |ame,base|name);.s|
|00005ca0| 74 72 63 70 79 28 70 73 | 6e 61 6d 65 2c 62 61 73 |trcpy(ps|name,bas|
|00005cb0| 65 6e 61 6d 65 29 3b 73 | 74 72 63 61 74 28 70 73 |ename);s|trcat(ps|
|00005cc0| 6e 61 6d 65 2c 22 2e 70 | 73 22 29 3b 0a 66 70 72 |name,".p|s");.fpr|
|00005cd0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 6f 70 65 |intf(std|err,"ope|
|00005ce0| 6e 69 6e 67 20 70 69 63 | 74 20 66 69 6c 65 20 25 |ning pic|t file %|
|00005cf0| 73 20 5c 6e 22 2c 69 6e | 6e 61 6d 65 29 3b 0a 69 |s \n",in|name);.i|
|00005d00| 66 28 20 28 70 69 63 3d | 66 6f 70 65 6e 28 69 6e |f( (pic=|fopen(in|
|00005d10| 6e 61 6d 65 2c 22 72 22 | 29 29 20 3d 3d 20 4e 55 |name,"r"|)) == NU|
|00005d20| 4c 4c 20 29 20 66 70 72 | 69 6e 74 66 28 73 74 64 |LL ) fpr|intf(std|
|00005d30| 65 72 72 2c 22 65 72 72 | 6f 72 20 6f 70 65 6e 69 |err,"err|or openi|
|00005d40| 6e 67 20 66 69 6c 65 73 | 5c 6e 22 29 3b 0a 66 70 |ng files|\n");.fp|
|00005d50| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 22 6f 70 |rintf(st|derr,"op|
|00005d60| 65 6e 69 6e 67 20 70 69 | 63 74 20 66 69 6c 65 20 |ening pi|ct file |
|00005d70| 25 73 20 5c 6e 22 2c 6f | 75 74 6e 61 6d 65 29 3b |%s \n",o|utname);|
|00005d80| 0a 69 66 28 20 28 62 69 | 6e 3d 66 6f 70 65 6e 28 |.if( (bi|n=fopen(|
|00005d90| 6f 75 74 6e 61 6d 65 2c | 22 77 22 29 29 20 3d 3d |outname,|"w")) ==|
|00005da0| 20 4e 55 4c 4c 20 29 66 | 70 72 69 6e 74 66 28 73 | NULL )f|printf(s|
|00005db0| 74 64 65 72 72 2c 22 65 | 72 72 6f 72 20 6f 70 65 |tderr,"e|rror ope|
|00005dc0| 6e 69 6e 67 20 66 69 6c | 65 5c 6e 22 29 3b 0a 66 |ning fil|e\n");.f|
|00005dd0| 6f 72 28 69 3d 31 3b 69 | 3c 3d 31 32 38 3b 69 2b |or(i=1;i|<=128;i+|
|00005de0| 2b 29 77 72 69 74 65 5f | 6f 6e 65 28 62 69 6e 2c |+)write_|one(bin,|
|00005df0| 30 29 3b 20 2f 2a 6c 65 | 61 76 65 20 72 6f 6f 6d |0); /*le|ave room|
|00005e00| 20 66 6f 72 20 69 6e 66 | 6f 20 2a 2f 0a 2f 2a 20 | for inf|o */./* |
|00005e10| 63 6f 70 79 20 70 73 20 | 66 69 6c 65 20 6f 76 65 |copy ps |file ove|
|00005e20| 72 20 74 6f 20 62 69 6e | 61 72 79 20 2a 2f 0a 66 |r to bin|ary */.f|
|00005e30| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 22 6f |printf(s|tderr,"o|
|00005e40| 70 65 6e 69 6e 67 20 70 | 73 20 66 69 6c 65 20 25 |pening p|s file %|
|00005e50| 73 20 5c 6e 22 2c 70 73 | 6e 61 6d 65 29 3b 0a 69 |s \n",ps|name);.i|
|00005e60| 66 28 20 28 70 73 3d 66 | 6f 70 65 6e 28 70 73 6e |f( (ps=f|open(psn|
|00005e70| 61 6d 65 2c 22 72 22 29 | 29 20 3d 3d 20 4e 55 4c |ame,"r")|) == NUL|
|00005e80| 4c 20 29 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |L )fprin|tf(stder|
|00005e90| 72 2c 22 65 72 72 6f 72 | 20 6f 70 65 6e 69 6e 67 |r,"error| opening|
|00005ea0| 20 66 69 6c 65 5c 6e 22 | 29 3b 0a 20 20 20 69 64 | file\n"|);. id|
|00005eb0| 61 74 61 6c 65 6e 67 74 | 68 3d 30 3b 69 3d 30 3b |atalengt|h=0;i=0;|
|00005ec0| 0a 20 20 20 77 68 69 6c | 65 20 28 66 72 65 61 64 |. whil|e (fread|
|00005ed0| 28 62 79 74 65 2c 20 73 | 69 7a 65 6f 66 28 2a 62 |(byte, s|izeof(*b|
|00005ee0| 79 74 65 29 2c 20 31 2c | 20 70 73 29 20 3e 20 30 |yte), 1,| ps) > 0|
|00005ef0| 29 0a 20 20 20 20 20 7b | 0a 20 20 20 20 20 20 69 |). {|. i|
|00005f00| 66 28 2b 2b 69 3d 3d 31 | 32 39 29 69 3d 31 3b 0a |f(++i==1|29)i=1;.|
|00005f10| 20 20 20 20 20 20 2b 2b | 69 64 61 74 61 6c 65 6e | ++|idatalen|
|00005f20| 67 74 68 3b 0a 20 20 20 | 20 20 20 66 77 72 69 74 |gth;. | fwrit|
|00005f30| 65 28 62 79 74 65 2c 20 | 73 69 7a 65 6f 66 28 2a |e(byte, |sizeof(*|
|00005f40| 62 62 75 66 29 2c 20 31 | 2c 20 62 69 6e 29 3b 0a |bbuf), 1|, bin);.|
|00005f50| 20 20 20 20 20 7d 0a 20 | 20 20 66 63 6c 6f 73 65 | }. | fclose|
|00005f60| 28 70 73 29 3b 0a 66 6f | 72 28 69 3d 69 3b 69 3c |(ps);.fo|r(i=i;i<|
|00005f70| 31 32 38 3b 69 2b 2b 29 | 77 72 69 74 65 5f 6f 6e |128;i++)|write_on|
|00005f80| 65 28 62 69 6e 2c 30 29 | 3b 20 2f 2a 70 61 64 20 |e(bin,0)|; /*pad |
|00005f90| 74 6f 20 6e 65 78 74 20 | 31 32 38 20 62 79 74 65 |to next |128 byte|
|00005fa0| 20 62 6f 75 6e 64 61 72 | 79 20 2a 2f 0a 2f 2a 20 | boundar|y */./* |
|00005fb0| 77 72 69 74 65 20 74 68 | 65 20 70 69 63 74 20 72 |write th|e pict r|
|00005fc0| 65 73 6f 75 72 63 65 20 | 66 72 6f 6d 20 74 68 65 |esource |from the|
|00005fd0| 20 70 69 63 74 20 64 61 | 74 61 20 66 69 6c 65 20 | pict da|ta file |
|00005fe0| 2a 2f 0a 66 72 65 61 64 | 28 62 79 74 65 2c 73 69 |*/.fread|(byte,si|
|00005ff0| 7a 65 6f 66 28 2a 62 79 | 74 65 29 2c 31 2c 70 69 |zeof(*by|te),1,pi|
|00006000| 63 29 3b 69 3d 31 3b 0a | 77 68 69 6c 65 28 20 73 |c);i=1;.|while( s|
|00006010| 74 72 6c 65 6e 28 62 79 | 74 65 29 3d 3d 30 20 29 |trlen(by|te)==0 )|
|00006020| 7b 66 72 65 61 64 28 62 | 79 74 65 2c 73 69 7a 65 |{fread(b|yte,size|
|00006030| 6f 66 28 2a 62 79 74 65 | 29 2c 31 2c 70 69 63 29 |of(*byte|),1,pic)|
|00006040| 3b 69 2b 2b 3b 7d 0a 6b | 73 69 7a 65 3d 32 35 36 |;i++;}.k|size=256|
|00006050| 2a 69 62 79 74 65 28 62 | 79 74 65 29 3b 0a 66 72 |*ibyte(b|yte);.fr|
|00006060| 65 61 64 28 62 79 74 65 | 2c 73 69 7a 65 6f 66 28 |ead(byte|,sizeof(|
|00006070| 2a 62 79 74 65 29 2c 31 | 2c 70 69 63 29 3b 0a 6b |*byte),1|,pic);.k|
|00006080| 73 69 7a 65 3d 6b 73 69 | 7a 65 2b 69 62 79 74 65 |size=ksi|ze+ibyte|
|00006090| 28 62 79 74 65 29 3b 20 | 2f 2a 20 6c 65 6e 67 74 |(byte); |/* lengt|
|000060a0| 68 20 6f 66 20 61 63 74 | 75 61 6c 20 72 65 73 6f |h of act|ual reso|
|000060b0| 75 72 63 65 20 64 61 74 | 61 20 2a 2f 0a 69 72 65 |urce dat|a */.ire|
|000060c0| 73 6c 65 6e 67 74 68 3d | 32 35 36 2b 6b 73 69 7a |slength=|256+ksiz|
|000060d0| 65 2b 34 2b 35 30 3b 20 | 2f 2a 20 74 6f 74 61 6c |e+4+50; |/* total|
|000060e0| 20 6c 65 6e 67 74 68 20 | 6f 66 20 72 65 73 6f 75 | length |of resou|
|000060f0| 72 63 65 20 66 6f 72 6b | 20 2a 2f 0a 77 72 69 74 |rce fork| */.writ|
|00006100| 65 5f 68 65 61 64 65 72 | 28 62 69 6e 2c 6b 73 69 |e_header|(bin,ksi|
|00006110| 7a 65 29 3b 0a 66 6f 72 | 28 69 3d 31 3b 69 3c 3d |ze);.for|(i=1;i<=|
|00006120| 31 31 32 3b 69 2b 2b 29 | 77 72 69 74 65 5f 6f 6e |112;i++)|write_on|
|00006130| 65 28 62 69 6e 2c 30 29 | 3b 0a 66 6f 72 28 69 3d |e(bin,0)|;.for(i=|
|00006140| 31 3b 69 3c 3d 31 32 38 | 3b 69 2b 2b 29 77 72 69 |1;i<=128|;i++)wri|
|00006150| 74 65 5f 6f 6e 65 28 62 | 69 6e 2c 30 29 3b 20 2f |te_one(b|in,0); /|
|00006160| 2a 72 65 73 65 72 76 65 | 72 20 73 74 75 66 66 20 |*reserve|r stuff |
|00006170| 2a 2f 0a 77 72 69 74 65 | 5f 66 6f 75 72 28 62 69 |*/.write|_four(bi|
|00006180| 6e 2c 6b 73 69 7a 65 29 | 3b 20 2f 2a 20 6c 65 6e |n,ksize)|; /* len|
|00006190| 67 74 68 20 6f 66 20 72 | 65 73 6f 75 72 63 65 20 |gth of r|esource |
|000061a0| 64 61 74 61 20 2a 2f 0a | 77 72 69 74 65 5f 74 77 |data */.|write_tw|
|000061b0| 6f 28 62 69 6e 2c 6b 73 | 69 7a 65 29 3b 20 2f 2a |o(bin,ks|ize); /*|
|000061c0| 20 6c 65 6e 67 74 68 20 | 6f 66 20 72 65 73 6f 75 | length |of resou|
|000061d0| 72 63 65 20 64 61 74 61 | 20 2a 2f 0a 66 6f 72 28 |rce data| */.for(|
|000061e0| 20 6a 3d 31 3b 6a 3c 3d | 6b 73 69 7a 65 2d 32 3b | j=1;j<=|ksize-2;|
|000061f0| 6a 2b 2b 29 7b 0a 66 72 | 65 61 64 28 62 79 74 65 |j++){.fr|ead(byte|
|00006200| 2c 73 69 7a 65 6f 66 28 | 2a 62 79 74 65 29 2c 31 |,sizeof(|*byte),1|
|00006210| 2c 70 69 63 29 3b 0a 66 | 77 72 69 74 65 28 62 79 |,pic);.f|write(by|
|00006220| 74 65 2c 73 69 7a 65 6f | 66 28 2a 62 79 74 65 29 |te,sizeo|f(*byte)|
|00006230| 2c 31 2c 62 69 6e 29 3b | 0a 7d 0a 2f 2a 20 20 20 |,1,bin);|.}./* |
|00006240| 20 72 65 73 6f 75 72 63 | 65 20 6d 61 70 20 20 20 | resourc|e map |
|00006250| 20 2a 2f 0a 77 72 69 74 | 65 5f 68 65 61 64 65 72 | */.writ|e_header|
|00006260| 28 62 69 6e 2c 6b 73 69 | 7a 65 29 3b 2f 2a 20 63 |(bin,ksi|ze);/* c|
|00006270| 6f 70 79 20 6f 66 20 68 | 65 61 64 65 72 20 2a 2f |opy of h|eader */|
|00006280| 0a 20 20 77 72 69 74 65 | 5f 66 6f 75 72 28 62 69 |. write|_four(bi|
|00006290| 6e 2c 30 29 3b 77 72 69 | 74 65 5f 74 77 6f 28 62 |n,0);wri|te_two(b|
|000062a0| 69 6e 2c 30 29 3b 20 2f | 2a 20 36 20 6e 75 6c 6c |in,0); /|* 6 null|
|000062b0| 20 62 79 74 65 73 20 28 | 20 72 65 73 65 72 76 65 | bytes (| reserve|
|000062c0| 64 20 29 20 2a 2f 0a 20 | 20 77 72 69 74 65 5f 74 |d ) */. | write_t|
|000062d0| 77 6f 28 62 69 6e 2c 30 | 29 3b 20 2f 2a 20 61 74 |wo(bin,0|); /* at|
|000062e0| 74 72 69 62 75 74 65 73 | 2a 2f 0a 20 20 77 72 69 |tributes|*/. wri|
|000062f0| 74 65 5f 74 77 6f 28 62 | 69 6e 2c 32 38 29 3b 20 |te_two(b|in,28); |
|00006300| 2f 2a 20 6f 66 66 73 65 | 74 20 66 72 6f 6d 20 62 |/* offse|t from b|
|00006310| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 6d 61 70 20 |eginning| of map |
|00006320| 74 6f 20 74 79 70 65 20 | 6c 69 73 74 20 2a 2f 0a |to type |list */.|
|00006330| 20 20 77 72 69 74 65 5f | 74 77 6f 28 62 69 6e 2c | write_|two(bin,|
|00006340| 32 38 2b 32 32 29 3b 20 | 2f 2a 20 62 65 67 20 6d |28+22); |/* beg m|
|00006350| 61 70 20 74 6f 20 6e 61 | 6d 65 20 6c 69 73 74 20 |ap to na|me list |
|00006360| 2a 2f 0a 2f 2a 20 74 79 | 70 65 20 6c 69 73 74 20 |*/./* ty|pe list |
|00006370| 2a 2f 0a 20 20 77 72 69 | 74 65 5f 74 77 6f 28 62 |*/. wri|te_two(b|
|00006380| 69 6e 2c 30 29 3b 20 2f | 2a 20 6f 6e 6c 79 20 6f |in,0); /|* only o|
|00006390| 6e 65 20 72 65 73 6f 75 | 72 63 65 20 74 79 70 65 |ne resou|rce type|
|000063a0| 20 2a 2f 0a 20 20 73 74 | 72 63 70 79 28 77 6f 72 | */. st|rcpy(wor|
|000063b0| 64 2c 22 50 49 43 54 22 | 29 3b 0a 20 20 66 77 72 |d,"PICT"|);. fwr|
|000063c0| 69 74 65 28 77 6f 72 64 | 2c 73 69 7a 65 6f 66 28 |ite(word|,sizeof(|
|000063d0| 77 6f 72 64 29 2c 31 2c | 62 69 6e 29 3b 2f 2a 20 |word),1,|bin);/* |
|000063e0| 72 65 73 6f 75 72 63 65 | 20 74 79 70 65 20 2a 2f |resource| type */|
|000063f0| 0a 20 20 77 72 69 74 65 | 5f 74 77 6f 28 62 69 6e |. write|_two(bin|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.