home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / unix / macps_pr.hqx < prev    next >
SHell self-extracting ARchive  |  1988-09-22  |  24.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: macps_pr.hqx

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert BinHex (archive/binHex) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file C source text default
99% file C source, 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 31 2d 53 65 70 2d 38 | 38 20 32 30 3a 31 34 3a |21-Sep-8|8 20:14:|
|00000010| 31 38 2d 4d 44 54 2c 32 | 35 34 36 33 3b 30 30 30 |18-MDT,2|5463;000|
|00000020| 30 30 30 30 30 30 30 30 | 31 0a 52 65 74 75 72 6e |00000000|1.Return|
|00000030| 2d 50 61 74 68 3a 20 3c | 49 4e 46 4f 2d 4d 41 43 |-Path: <|INFO-MAC|
|00000040| 2d 52 45 51 55 45 53 54 | 40 53 55 4d 45 58 2d 41 |-REQUEST|@SUMEX-A|
|00000050| 49 4d 2e 53 74 61 6e 66 | 6f 72 64 2e 45 44 55 3e |IM.Stanf|ord.EDU>|
|00000060| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00000070| 53 55 4d 45 58 2d 41 49 | 4d 2e 53 74 61 6e 66 6f |SUMEX-AI|M.Stanfo|
|00000080| 72 64 2e 45 44 55 20 62 | 79 20 53 49 4d 54 45 4c |rd.EDU b|y SIMTEL|
|00000090| 32 30 2e 41 52 4d 59 2e | 4d 49 4c 20 77 69 74 68 |20.ARMY.|MIL with|
|000000a0| 20 54 43 50 3b 20 57 65 | 64 2c 20 32 31 20 53 65 | TCP; We|d, 21 Se|
|000000b0| 70 20 38 38 20 32 30 3a | 31 33 3a 35 34 20 4d 44 |p 88 20:|13:54 MD|
|000000c0| 54 0a 52 65 74 75 72 6e | 2d 50 61 74 68 3a 20 3c |T.Return|-Path: <|
|000000d0| 65 64 6d 6f 79 40 76 69 | 6f 6c 65 74 2e 42 65 72 |edmoy@vi|olet.Ber|
|000000e0| 6b 65 6c 65 79 2e 45 44 | 55 3e 0a 52 65 63 65 69 |keley.ED|U>.Recei|
|000000f0| 76 65 64 3a 20 66 72 6f | 6d 20 76 69 6f 6c 65 74 |ved: fro|m violet|
|00000100| 2e 62 65 72 6b 65 6c 65 | 79 2e 65 64 75 20 62 79 |.berkele|y.edu by|
|00000110| 20 53 55 4d 45 58 2d 41 | 49 4d 2e 53 74 61 6e 66 | SUMEX-A|IM.Stanf|
|00000120| 6f 72 64 2e 45 44 55 20 | 77 69 74 68 20 54 43 50 |ord.EDU |with TCP|
|00000130| 3b 20 4d 6f 6e 2c 20 31 | 39 20 53 65 70 20 38 38 |; Mon, 1|9 Sep 88|
|00000140| 20 31 37 3a 35 32 3a 34 | 32 20 50 44 54 0a 52 65 | 17:52:4|2 PDT.Re|
|00000150| 63 65 69 76 65 64 3a 20 | 62 79 20 76 69 6f 6c 65 |ceived: |by viole|
|00000160| 74 2e 62 65 72 6b 65 6c | 65 79 2e 65 64 75 20 28 |t.berkel|ey.edu (|
|00000170| 35 2e 35 34 20 28 43 46 | 43 20 34 2e 32 32 2e 33 |5.54 (CF|C 4.22.3|
|00000180| 29 2f 31 2e 31 36 2e 31 | 37 6c 29 0a 09 69 64 20 |)/1.16.1|7l)..id |
|00000190| 41 41 30 34 38 31 31 3b | 20 4d 6f 6e 2c 20 31 39 |AA04811;| Mon, 19|
|000001a0| 20 53 65 70 20 38 38 20 | 31 37 3a 35 32 3a 34 36 | Sep 88 |17:52:46|
|000001b0| 20 50 44 54 0a 44 61 74 | 65 3a 20 4d 6f 6e 2c 20 | PDT.Dat|e: Mon, |
|000001c0| 31 39 20 53 65 70 20 38 | 38 20 31 37 3a 35 32 3a |19 Sep 8|8 17:52:|
|000001d0| 34 36 20 50 44 54 0a 46 | 72 6f 6d 3a 20 65 64 6d |46 PDT.F|rom: edm|
|000001e0| 6f 79 40 76 69 6f 6c 65 | 74 2e 42 65 72 6b 65 6c |oy@viole|t.Berkel|
|000001f0| 65 79 2e 45 44 55 0a 4d | 65 73 73 61 67 65 2d 49 |ey.EDU.M|essage-I|
|00000200| 64 3a 20 3c 38 38 30 39 | 32 30 30 30 35 32 2e 41 |d: <8809|200052.A|
|00000210| 41 30 34 38 31 31 40 76 | 69 6f 6c 65 74 2e 62 65 |A04811@v|iolet.be|
|00000220| 72 6b 65 6c 65 79 2e 65 | 64 75 3e 0a 54 6f 3a 20 |rkeley.e|du>.To: |
|00000230| 49 4e 46 4f 2d 4d 41 43 | 40 73 75 6d 65 78 2d 61 |INFO-MAC|@sumex-a|
|00000240| 69 6d 2e 73 74 61 6e 66 | 6f 72 64 2e 65 64 75 0a |im.stanf|ord.edu.|
|00000250| 53 75 62 6a 65 63 74 3a | 20 6d 61 63 70 73 20 26 |Subject:| macps &|
|00000260| 20 70 72 65 70 66 69 78 | 20 2d 20 70 72 69 6e 74 | prepfix| - print|
|00000270| 20 4d 61 63 20 66 69 6c | 65 73 20 6f 6e 20 55 6e | Mac fil|es on Un|
|00000280| 69 78 0a 52 65 53 65 6e | 74 2d 44 61 74 65 3a 20 |ix.ReSen|t-Date: |
|00000290| 57 65 64 2c 20 32 31 20 | 53 65 70 20 38 38 20 31 |Wed, 21 |Sep 88 1|
|000002a0| 39 3a 30 38 3a 30 38 20 | 50 44 54 0a 52 65 53 65 |9:08:08 |PDT.ReSe|
|000002b0| 6e 74 2d 46 72 6f 6d 3a | 20 4c 61 6e 63 65 20 4e |nt-From:| Lance N|
|000002c0| 61 6b 61 74 61 20 3c 49 | 4e 46 4f 2d 4d 41 43 2d |akata <I|NFO-MAC-|
|000002d0| 52 45 51 55 45 53 54 40 | 53 55 4d 45 58 2d 41 49 |REQUEST@|SUMEX-AI|
|000002e0| 4d 2e 53 74 61 6e 66 6f | 72 64 2e 45 44 55 3e 0a |M.Stanfo|rd.EDU>.|
|000002f0| 52 65 53 65 6e 74 2d 54 | 6f 3a 20 6d 61 63 69 6e |ReSent-T|o: macin|
|00000300| 74 6f 73 68 25 66 65 6c | 69 78 2e 75 75 63 70 40 |tosh%fel|ix.uucp@|
|00000310| 69 63 73 2e 75 63 69 2e | 65 64 75 2c 20 53 48 55 |ics.uci.|edu, SHU|
|00000320| 4c 4d 41 4e 40 73 64 72 | 2e 73 6c 62 2e 63 6f 6d |LMAN@sdr|.slb.com|
|00000330| 2c 0a 20 20 20 20 52 54 | 48 55 4d 40 53 49 4d 54 |,. RT|HUM@SIMT|
|00000340| 45 4c 32 30 2e 41 52 4d | 59 2e 4d 49 4c 0a 52 65 |EL20.ARM|Y.MIL.Re|
|00000350| 53 65 6e 74 2d 4d 65 73 | 73 61 67 65 2d 49 44 3a |Sent-Mes|sage-ID:|
|00000360| 20 3c 31 32 34 33 32 34 | 36 34 36 37 31 2e 32 32 | <124324|64671.22|
|00000370| 2e 49 4e 46 4f 2d 4d 41 | 43 2d 52 45 51 55 45 53 |.INFO-MA|C-REQUES|
|00000380| 54 40 53 55 4d 45 58 2d | 41 49 4d 2e 53 74 61 6e |T@SUMEX-|AIM.Stan|
|00000390| 66 6f 72 64 2e 45 44 55 | 3e 0a 0a 4d 61 63 70 73 |ford.EDU|>..Macps|
|000003a0| 20 69 73 20 61 20 55 6e | 69 78 20 70 72 6f 67 72 | is a Un|ix progr|
|000003b0| 61 6d 20 74 68 61 74 20 | 74 61 6b 65 73 20 61 20 |am that |takes a |
|000003c0| 50 6f 73 74 53 63 72 69 | 70 74 20 66 69 6c 65 20 |PostScri|pt file |
|000003d0| 63 72 65 61 74 65 64 20 | 6f 6e 20 61 20 4d 61 63 |created |on a Mac|
|000003e0| 69 6e 74 6f 73 68 0a 62 | 79 20 74 79 70 69 6e 67 |intosh.b|y typing|
|000003f0| 20 43 6f 6d 6d 61 6e 64 | 2d 46 20 74 6f 20 74 68 | Command|-F to th|
|00000400| 65 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 69 |e LaserW|riter di|
|00000410| 61 6c 6f 67 20 62 6f 78 | 20 61 6e 64 20 69 6e 63 |alog box| and inc|
|00000420| 6c 75 64 65 73 20 61 6e | 20 61 70 70 72 6f 70 72 |ludes an| appropr|
|00000430| 69 61 74 65 6c 79 69 0a | 6d 6f 64 69 66 69 65 64 |iatelyi.|modified|
|00000440| 20 4c 61 73 65 72 50 72 | 65 70 20 66 69 6c 65 20 | LaserPr|ep file |
|00000450| 73 6f 20 74 68 61 74 20 | 74 68 65 20 72 65 73 75 |so that |the resu|
|00000460| 6c 74 20 63 61 6e 20 62 | 65 20 73 65 6e 74 20 74 |lt can b|e sent t|
|00000470| 6f 20 61 20 50 6f 73 74 | 53 63 72 69 70 74 20 70 |o a Post|Script p|
|00000480| 72 69 6e 74 65 72 0a 66 | 72 6f 6d 20 55 6e 69 78 |rinter.f|rom Unix|
|00000490| 2e 20 20 55 6e 6c 69 6b | 65 20 6d 6f 73 74 20 6f |. Unlik|e most o|
|000004a0| 66 20 74 68 65 20 6f 74 | 68 65 72 20 76 65 72 73 |f the ot|her vers|
|000004b0| 69 6f 6e 73 20 6f 66 20 | 74 68 69 73 20 70 72 6f |ions of |this pro|
|000004c0| 67 72 61 6d 2c 20 74 68 | 69 73 20 6f 6e 65 0a 69 |gram, th|is one.i|
|000004d0| 6e 63 6c 75 64 65 73 20 | 61 20 73 65 63 6f 6e 64 |ncludes |a second|
|000004e0| 20 70 72 6f 67 72 61 6d | 2c 20 70 72 65 70 66 69 | program|, prepfi|
|000004f0| 78 2c 20 74 68 61 74 20 | 63 6f 6e 76 65 72 74 73 |x, that |converts|
|00000500| 20 4c 61 73 65 72 50 72 | 65 70 20 66 69 6c 65 73 | LaserPr|ep files|
|00000510| 20 74 6f 20 61 20 66 6f | 72 6d 0a 63 6f 6d 70 61 | to a fo|rm.compa|
|00000520| 74 69 62 6c 65 20 77 69 | 74 68 20 55 6e 69 78 20 |tible wi|th Unix |
|00000530| 28 61 6e 64 20 63 61 6e | 20 65 76 65 6e 20 62 65 |(and can| even be|
|00000540| 20 65 6c 65 63 74 72 6f | 6e 69 63 61 6c 6c 79 20 | electro|nically |
|00000550| 6d 61 69 6c 65 64 29 2e | 0a 0a 45 6e 6a 6f 79 2c |mailed).|..Enjoy,|
|00000560| 0a 0a 45 64 77 61 72 64 | 20 4d 6f 79 09 09 09 09 |..Edward| Moy....|
|00000570| 50 72 69 6e 63 69 70 61 | 6c 20 50 72 6f 67 72 61 |Principa|l Progra|
|00000580| 6d 6d 65 72 20 2d 20 4d | 61 63 69 6e 74 6f 73 68 |mmer - M|acintosh|
|00000590| 20 26 20 55 6e 69 78 0a | 57 6f 72 6b 73 74 61 74 | & Unix.|Workstat|
|000005a0| 69 6f 6e 20 53 75 70 70 | 6f 72 74 20 53 65 72 76 |ion Supp|ort Serv|
|000005b0| 69 63 65 73 09 09 57 6f | 72 6b 73 74 61 74 69 6f |ices..Wo|rkstatio|
|000005c0| 6e 20 53 6f 66 74 77 61 | 72 65 20 53 75 70 70 6f |n Softwa|re Suppo|
|000005d0| 72 74 20 47 72 6f 75 70 | 0a 55 6e 69 76 65 72 73 |rt Group|.Univers|
|000005e0| 69 74 79 20 6f 66 20 43 | 61 6c 69 66 6f 72 6e 69 |ity of C|aliforni|
|000005f0| 61 0a 42 65 72 6b 65 6c | 65 79 2c 20 43 41 20 20 |a.Berkel|ey, CA |
|00000600| 39 34 37 32 30 0a 0a 65 | 64 6d 6f 79 40 76 69 6f |94720..e|dmoy@vio|
|00000610| 6c 65 74 2e 42 65 72 6b | 65 6c 65 79 2e 45 44 55 |let.Berk|eley.EDU|
|00000620| 0a 75 63 62 76 61 78 21 | 76 69 6f 6c 65 74 21 65 |.ucbvax!|violet!e|
|00000630| 64 6d 6f 79 0a 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |dmoy..--|--------|
|00000640| 2d 20 63 75 74 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |- cut --|--------|
|00000650| 2d 2d 2d 2d 2d 2d 2d 2d | 20 63 75 74 20 2d 2d 2d |--------| cut ---|
|00000660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000670| 20 63 75 74 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | cut ---|--------|
|00000680| 2d 2d 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |--.#! /b|in/sh.# |
|00000690| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|000006a0| 61 72 63 68 69 76 65 2c | 20 6d 65 61 6e 69 6e 67 |archive,| meaning|
|000006b0| 3a 0a 23 20 31 2e 20 52 | 65 6d 6f 76 65 20 65 76 |:.# 1. R|emove ev|
|000006c0| 65 72 79 74 68 69 6e 67 | 20 61 62 6f 76 65 20 74 |erything| above t|
|000006d0| 68 65 20 23 21 20 2f 62 | 69 6e 2f 73 68 20 6c 69 |he #! /b|in/sh li|
|000006e0| 6e 65 2e 0a 23 20 32 2e | 20 53 61 76 65 20 74 68 |ne..# 2.| Save th|
|000006f0| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 74 65 78 74 |e result|ing text|
|00000700| 20 69 6e 20 61 20 66 69 | 6c 65 2e 0a 23 20 33 2e | in a fi|le..# 3.|
|00000710| 20 45 78 65 63 75 74 65 | 20 74 68 65 20 66 69 6c | Execute| the fil|
|00000720| 65 20 77 69 74 68 20 2f | 62 69 6e 2f 73 68 20 28 |e with /|bin/sh (|
|00000730| 6e 6f 74 20 63 73 68 29 | 20 74 6f 20 63 72 65 61 |not csh)| to crea|
|00000740| 74 65 20 74 68 65 20 66 | 69 6c 65 73 3a 0a 23 09 |te the f|iles:.#.|
|00000750| 52 65 61 64 4d 65 0a 23 | 09 4d 61 6b 65 66 69 6c |ReadMe.#|.Makefil|
|00000760| 65 0a 23 09 6d 61 63 70 | 73 2e 63 0a 23 09 6d 61 |e.#.macp|s.c.#.ma|
|00000770| 63 61 75 78 2e 63 0a 23 | 09 75 63 62 77 68 69 63 |caux.c.#|.ucbwhic|
|00000780| 68 2e 63 0a 23 09 70 72 | 65 70 66 69 78 2e 63 0a |h.c.#.pr|epfix.c.|
|00000790| 23 09 75 63 62 77 68 69 | 63 68 2e 68 0a 23 09 6d |#.ucbwhi|ch.h.#.m|
|000007a0| 61 63 70 73 2e 63 6f 6e | 66 69 67 0a 23 09 6d 61 |acps.con|fig.#.ma|
|000007b0| 63 70 73 2e 31 0a 23 09 | 70 72 65 70 66 69 78 2e |cps.1.#.|prepfix.|
|000007c0| 31 0a 23 20 6d 61 63 70 | 73 2e 73 68 61 72 20 2d |1.# macp|s.shar -|
|000007d0| 20 61 72 63 68 69 76 65 | 20 63 72 65 61 74 65 64 | archive| created|
|000007e0| 3a 20 4d 6f 6e 20 53 65 | 70 20 31 39 20 31 37 3a |: Mon Se|p 19 17:|
|000007f0| 34 36 3a 34 38 20 50 44 | 54 20 31 39 38 38 0a 69 |46:48 PD|T 1988.i|
|00000800| 66 20 74 65 73 74 20 2d | 66 20 52 65 61 64 4d 65 |f test -|f ReadMe|
|00000810| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|00000820| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 77 |: will n|ot overw|
|00000830| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00000840| 6c 65 20 22 27 52 65 61 | 64 4d 65 27 22 0a 65 6c |le "'Rea|dMe'".el|
|00000850| 73 65 0a 65 63 68 6f 20 | 27 78 20 2d 20 52 65 61 |se.echo |'x - Rea|
|00000860| 64 4d 65 27 0a 63 61 74 | 20 3c 3c 20 5c 52 41 5a |dMe'.cat| << \RAZ|
|00000870| 5a 4c 45 21 44 41 5a 5a | 4c 45 20 3e 20 52 65 61 |ZLE!DAZZ|LE > Rea|
|00000880| 64 4d 65 0a 43 4f 50 59 | 52 49 47 48 54 20 4e 4f |dMe.COPY|RIGHT NO|
|00000890| 54 49 43 45 0a 0a 43 6f | 70 79 72 69 67 68 74 20 |TICE..Co|pyright |
|000008a0| 28 63 29 20 31 39 38 38 | 2c 20 54 68 65 20 54 72 |(c) 1988|, The Tr|
|000008b0| 75 73 74 65 65 73 20 6f | 66 20 74 68 65 20 55 6e |ustees o|f the Un|
|000008c0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 43 61 6c 69 |iversity| of Cali|
|000008d0| 66 6f 72 6e 69 61 2e 0a | 45 64 77 61 72 64 20 4d |fornia..|Edward M|
|000008e0| 6f 79 2c 20 57 6f 72 6b | 73 74 61 74 69 6f 6e 20 |oy, Work|station |
|000008f0| 53 6f 66 74 77 61 72 65 | 20 53 75 70 70 6f 72 74 |Software| Support|
|00000900| 20 47 72 6f 75 70 2c 20 | 57 6f 72 6b 73 74 61 74 | Group, |Workstat|
|00000910| 69 6f 6e 20 53 75 70 70 | 6f 72 74 20 53 65 72 69 |ion Supp|ort Seri|
|00000920| 63 65 73 2c 0a 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |ces,.Inf|ormation|
|00000930| 20 53 79 73 74 65 6d 73 | 20 61 6e 64 20 54 65 63 | Systems| and Tec|
|00000940| 68 6e 6f 6c 6f 67 79 2e | 0a 0a 50 65 72 6d 69 73 |hnology.|..Permis|
|00000950| 73 69 6f 6e 20 69 73 20 | 67 72 61 6e 74 65 64 20 |sion is |granted |
|00000960| 74 6f 20 61 6e 79 20 69 | 6e 64 69 76 69 64 75 61 |to any i|ndividua|
|00000970| 6c 20 6f 72 20 69 6e 73 | 74 69 74 75 74 69 6f 6e |l or ins|titution|
|00000980| 20 74 6f 20 75 73 65 2c | 20 63 6f 70 79 2c 0a 6f | to use,| copy,.o|
|00000990| 72 20 72 65 64 69 73 74 | 72 69 62 75 74 65 20 74 |r redist|ribute t|
|000009a0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 73 6f 20 |his soft|ware so |
|000009b0| 6c 6f 6e 67 20 61 73 20 | 69 74 20 69 73 20 6e 6f |long as |it is no|
|000009c0| 74 20 73 6f 6c 64 20 66 | 6f 72 20 70 72 6f 66 69 |t sold f|or profi|
|000009d0| 74 2c 0a 70 72 6f 76 69 | 64 65 64 20 74 68 61 74 |t,.provi|ded that|
|000009e0| 20 74 68 69 73 20 6e 6f | 74 69 63 65 20 61 6e 64 | this no|tice and|
|000009f0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 63 6f | the ori|ginal co|
|00000a00| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 73 20 |pyright |notices |
|00000a10| 61 72 65 0a 72 65 74 61 | 69 6e 65 64 2e 20 20 54 |are.reta|ined. T|
|00000a20| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|00000a30| 20 43 61 6c 69 66 6f 72 | 6e 69 61 20 6d 61 6b 65 | Califor|nia make|
|00000a40| 73 20 6e 6f 20 72 65 70 | 72 65 73 65 6e 74 61 74 |s no rep|resentat|
|00000a50| 69 6f 6e 73 20 61 62 6f | 75 74 20 74 68 65 0a 73 |ions abo|ut the.s|
|00000a60| 75 69 74 61 62 69 6c 69 | 74 79 20 6f 66 20 74 68 |uitabili|ty of th|
|00000a70| 69 73 20 73 6f 66 74 77 | 61 72 65 20 66 6f 72 20 |is softw|are for |
|00000a80| 61 6e 79 20 70 75 72 70 | 6f 73 65 2e 20 20 49 74 |any purp|ose. It|
|00000a90| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 22 61 73 | is prov|ided "as|
|00000aa0| 20 69 73 22 0a 77 69 74 | 68 6f 75 74 20 65 78 70 | is".wit|hout exp|
|00000ab0| 72 65 73 73 20 6f 72 20 | 69 6d 70 6c 69 65 64 20 |ress or |implied |
|00000ac0| 77 61 72 72 61 6e 74 79 | 2e 0a 0a 57 48 41 54 20 |warranty|...WHAT |
|00000ad0| 49 53 20 4d 41 43 50 53 | 3f 0a 0a 4d 61 63 70 73 |IS MACPS|?..Macps|
|00000ae0| 20 69 73 20 61 20 55 6e | 69 78 20 70 72 6f 67 72 | is a Un|ix progr|
|00000af0| 61 6d 20 74 68 61 74 20 | 74 61 6b 65 73 20 61 20 |am that |takes a |
|00000b00| 50 6f 73 74 53 63 72 69 | 70 74 20 66 69 6c 65 20 |PostScri|pt file |
|00000b10| 63 72 65 61 74 65 64 20 | 6f 6e 20 61 20 4d 61 63 |created |on a Mac|
|00000b20| 69 6e 74 6f 73 68 0a 62 | 79 20 74 79 70 69 6e 67 |intosh.b|y typing|
|00000b30| 20 43 6f 6d 6d 61 6e 64 | 2d 46 20 74 6f 20 74 68 | Command|-F to th|
|00000b40| 65 20 4c 61 73 65 72 57 | 72 69 74 65 72 20 64 69 |e LaserW|riter di|
|00000b50| 61 6c 6f 67 20 62 6f 78 | 20 28 73 65 65 20 6d 61 |alog box| (see ma|
|00000b60| 63 70 73 2e 31 20 66 6f | 72 20 6d 6f 72 65 0a 64 |cps.1 fo|r more.d|
|00000b70| 65 74 61 69 6c 73 29 20 | 61 6e 64 20 69 6e 63 6c |etails) |and incl|
|00000b80| 75 64 65 73 20 61 6e 20 | 61 70 70 72 6f 70 72 69 |udes an |appropri|
|00000b90| 61 74 65 6c 79 20 6d 6f | 64 69 66 69 65 64 20 4c |ately mo|dified L|
|00000ba0| 61 73 65 72 50 72 65 70 | 20 66 69 6c 65 20 73 6f |aserPrep| file so|
|00000bb0| 20 74 68 61 74 0a 74 68 | 65 20 72 65 73 75 6c 74 | that.th|e result|
|00000bc0| 20 63 61 6e 20 62 65 20 | 73 65 6e 74 20 74 6f 20 | can be |sent to |
|00000bd0| 61 20 50 6f 73 74 53 63 | 72 69 70 74 20 70 72 69 |a PostSc|ript pri|
|00000be0| 6e 74 65 72 20 66 72 6f | 6d 20 55 6e 69 78 2e 20 |nter fro|m Unix. |
|00000bf0| 20 54 68 65 20 4c 61 73 | 65 72 50 72 65 70 0a 66 | The Las|erPrep.f|
|00000c00| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 6d 61 63 |ile cont|ains mac|
|00000c10| 72 6f 73 20 75 73 65 64 | 20 62 79 20 74 68 65 20 |ros used| by the |
|00000c20| 50 6f 73 74 53 63 72 69 | 70 74 20 67 65 6e 65 72 |PostScri|pt gener|
|00000c30| 61 74 6f 72 20 6f 6e 20 | 74 68 65 20 4d 61 63 69 |ator on |the Maci|
|00000c40| 6e 74 6f 73 68 2e 0a 0a | 57 48 49 43 48 20 56 45 |ntosh...|WHICH VE|
|00000c50| 52 53 49 4f 4e 20 4f 46 | 20 54 48 45 20 4c 41 53 |RSION OF| THE LAS|
|00000c60| 45 52 50 52 45 50 20 57 | 49 4c 4c 20 42 45 20 55 |ERPREP W|ILL BE U|
|00000c70| 53 45 44 3f 0a 0a 4d 61 | 63 70 73 20 69 6e 74 65 |SED?..Ma|cps inte|
|00000c80| 72 70 72 65 74 73 20 74 | 68 65 20 25 25 49 6e 63 |rprets t|he %%Inc|
|00000c90| 6c 75 64 65 50 72 6f 63 | 53 65 74 20 64 69 72 65 |ludeProc|Set dire|
|00000ca0| 63 74 69 76 65 20 66 6f | 75 6e 64 20 69 6e 20 74 |ctive fo|und in t|
|00000cb0| 68 65 20 50 6f 73 74 53 | 63 72 69 70 74 0a 67 65 |he PostS|cript.ge|
|00000cc0| 6e 65 72 61 74 65 64 20 | 62 79 20 4c 61 73 65 72 |nerated |by Laser|
|00000cd0| 57 72 69 74 65 72 20 64 | 72 69 76 65 72 20 34 2e |Writer d|river 4.|
|00000ce0| 30 20 61 6e 64 20 67 72 | 65 61 74 65 72 2e 20 20 |0 and gr|eater. |
|00000cf0| 49 74 20 74 61 6b 65 73 | 20 74 68 65 20 50 72 6f |It takes| the Pro|
|00000d00| 63 53 65 74 0a 69 64 20 | 61 6e 64 20 6c 6f 6f 6b |cSet.id |and look|
|00000d10| 73 20 69 74 20 75 70 20 | 69 6e 20 61 20 66 69 6c |s it up |in a fil|
|00000d20| 65 20 22 6d 61 63 70 73 | 2e 63 6f 6e 66 69 67 22 |e "macps|.config"|
|00000d30| 2c 20 74 6f 20 67 65 74 | 20 74 68 65 20 70 61 74 |, to get| the pat|
|00000d40| 68 6e 61 6d 65 20 6f 66 | 20 74 68 65 0a 70 72 65 |hname of| the.pre|
|00000d50| 70 20 66 69 6c 65 2c 20 | 61 6e 64 20 74 68 75 73 |p file, |and thus|
|00000d60| 20 6d 61 63 70 73 20 63 | 61 6e 20 63 6f 6e 76 65 | macps c|an conve|
|00000d70| 72 74 20 50 6f 73 74 53 | 63 72 69 70 74 20 67 65 |rt PostS|cript ge|
|00000d80| 6e 65 72 61 74 65 64 20 | 62 79 20 64 69 66 66 65 |nerated |by diffe|
|00000d90| 72 65 6e 74 0a 76 65 72 | 73 69 6f 6e 73 20 6f 66 |rent.ver|sions of|
|00000da0| 20 74 68 65 20 4c 61 73 | 65 72 57 72 69 74 65 72 | the Las|erWriter|
|00000db0| 20 64 72 69 76 65 72 20 | 28 61 73 20 77 65 6c 6c | driver |(as well|
|00000dc0| 20 61 73 20 66 72 6f 6d | 20 61 70 70 6c 69 63 61 | as from| applica|
|00000dd0| 74 69 6f 6e 73 20 74 68 | 61 74 0a 68 61 76 65 20 |tions th|at.have |
|00000de0| 74 68 65 69 72 20 6f 77 | 6e 20 50 72 6f 63 53 65 |their ow|n ProcSe|
|00000df0| 74 2c 20 73 75 63 68 20 | 61 73 20 46 75 6c 6c 57 |t, such |as FullW|
|00000e00| 72 69 74 65 20 50 72 6f | 66 65 73 73 69 6f 6e 61 |rite Pro|fessiona|
|00000e10| 6c 2c 20 41 6c 64 75 73 | 20 50 61 67 65 4d 61 6b |l, Aldus| PageMak|
|00000e20| 65 72 0a 6f 72 20 41 64 | 6f 62 65 20 49 6c 6c 75 |er.or Ad|obe Illu|
|00000e30| 73 74 72 61 74 6f 72 2e | 0a 0a 48 4f 57 20 41 52 |strator.|..HOW AR|
|00000e40| 45 20 54 48 45 20 50 52 | 4f 43 53 45 54 53 20 47 |E THE PR|OCSETS G|
|00000e50| 45 4e 45 52 41 54 45 44 | 3f 0a 0a 53 69 6e 63 65 |ENERATED|?..Since|
|00000e60| 20 74 68 65 20 41 70 70 | 6c 65 20 4c 61 73 65 72 | the App|le Laser|
|00000e70| 50 72 65 70 20 66 69 6c | 65 73 20 61 72 65 20 63 |Prep fil|es are c|
|00000e80| 6f 70 79 72 69 67 68 74 | 65 64 2c 20 49 27 76 65 |opyright|ed, I've|
|00000e90| 20 69 6e 63 6c 75 64 65 | 64 20 61 20 70 72 6f 67 | include|d a prog|
|00000ea0| 72 61 6d 2c 0a 70 72 65 | 70 66 69 78 2c 20 74 68 |ram,.pre|pfix, th|
|00000eb0| 61 74 20 72 65 61 64 73 | 20 76 65 72 73 69 6f 6e |at reads| version|
|00000ec0| 20 34 2e 30 20 61 6e 64 | 20 75 70 20 4c 61 73 65 | 4.0 and| up Lase|
|00000ed0| 72 50 72 65 70 20 66 69 | 6c 65 73 2c 20 61 6e 64 |rPrep fi|les, and|
|00000ee0| 20 65 64 69 74 73 20 74 | 68 65 6d 0a 73 6f 20 74 | edits t|hem.so t|
|00000ef0| 68 61 74 20 74 68 65 79 | 20 61 72 65 20 63 6f 6d |hat they| are com|
|00000f00| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 55 6e 69 |patible |with Uni|
|00000f10| 78 20 28 61 6e 64 20 61 | 72 65 20 65 76 65 6e 20 |x (and a|re even |
|00000f20| 65 6c 65 63 74 72 6f 6e | 69 63 61 6c 6c 79 20 6d |electron|ically m|
|00000f30| 61 69 6c 61 62 6c 65 29 | 2e 0a 28 53 65 65 20 70 |ailable)|..(See p|
|00000f40| 72 65 70 66 69 78 2e 31 | 20 66 6f 72 20 6d 6f 72 |repfix.1| for mor|
|00000f50| 65 20 64 65 74 61 69 6c | 73 2e 29 20 20 4f 74 68 |e detail|s.) Oth|
|00000f60| 65 72 20 50 72 6f 63 53 | 65 74 73 20 77 69 6c 6c |er ProcS|ets will|
|00000f70| 20 68 61 76 65 20 74 6f | 20 62 65 20 64 6f 6e 65 | have to| be done|
|00000f80| 0a 6d 61 6e 75 61 6c 6c | 79 2e 0a 0a 57 48 45 52 |.manuall|y...WHER|
|00000f90| 45 20 49 53 20 54 48 45 | 20 4d 41 43 50 53 2e 43 |E IS THE| MACPS.C|
|00000fa0| 4f 4e 46 49 47 20 46 49 | 4c 45 20 4c 4f 43 41 54 |ONFIG FI|LE LOCAT|
|00000fb0| 45 44 3f 0a 0a 4d 61 63 | 70 73 20 68 61 73 20 73 |ED?..Mac|ps has s|
|00000fc0| 6f 6d 65 20 73 70 65 63 | 69 61 6c 20 63 6f 64 65 |ome spec|ial code|
|00000fd0| 20 74 68 61 74 20 69 73 | 20 61 62 6c 65 20 74 6f | that is| able to|
|00000fe0| 20 66 69 67 75 72 65 20 | 6f 75 74 20 66 72 6f 6d | figure |out from|
|00000ff0| 20 77 68 69 63 68 20 64 | 69 72 65 63 74 6f 72 79 | which d|irectory|
|00001000| 0a 69 74 20 77 61 73 20 | 63 61 6c 6c 65 64 20 66 |.it was |called f|
|00001010| 72 6f 6d 2e 20 20 54 68 | 65 20 6d 61 63 70 73 2e |rom. Th|e macps.|
|00001020| 63 6f 6e 66 69 67 20 66 | 69 6c 65 20 69 73 20 65 |config f|ile is e|
|00001030| 78 70 65 63 74 65 64 20 | 74 6f 20 62 65 20 69 6e |xpected |to be in|
|00001040| 20 61 20 22 6c 69 62 22 | 0a 73 75 62 2d 64 69 72 | a "lib"|.sub-dir|
|00001050| 65 63 74 6f 72 79 2e 0a | 0a 57 48 41 54 20 41 42 |ectory..|.WHAT AB|
|00001060| 4f 55 54 20 42 49 54 2d | 53 4d 4f 4f 54 48 49 4e |OUT BIT-|SMOOTHIN|
|00001070| 47 20 4f 4e 20 4e 4f 4e | 2d 4c 41 53 45 52 57 52 |G ON NON|-LASERWR|
|00001080| 49 54 45 52 20 50 52 49 | 4e 54 45 52 53 3f 0a 0a |ITER PRI|NTERS?..|
|00001090| 46 6f 72 20 50 6f 73 74 | 53 63 72 69 70 74 20 70 |For Post|Script p|
|000010a0| 72 69 6e 74 65 72 73 20 | 75 73 69 6e 67 20 4d 6f |rinters |using Mo|
|000010b0| 74 6f 72 6f 6c 61 20 36 | 38 30 78 30 20 70 72 6f |torola 6|80x0 pro|
|000010c0| 63 65 73 73 6f 72 73 20 | 61 6e 64 20 41 64 6f 62 |cessors |and Adob|
|000010d0| 65 20 50 6f 73 74 53 63 | 72 69 70 74 0a 66 69 72 |e PostSc|ript.fir|
|000010e0| 6d 77 61 72 65 20 6f 74 | 68 65 72 20 74 68 61 6e |mware ot|her than|
|000010f0| 20 4c 61 73 65 72 57 72 | 69 74 65 72 73 2c 20 74 | LaserWr|iters, t|
|00001100| 68 65 72 65 20 61 72 65 | 20 6f 70 74 69 6f 6e 73 |here are| options|
|00001110| 20 74 68 61 74 20 77 69 | 6c 6c 20 61 6c 6c 6f 77 | that wi|ll allow|
|00001120| 20 74 68 65 73 65 0a 70 | 72 69 6e 74 65 72 73 20 | these.p|rinters |
|00001130| 74 6f 20 64 6f 20 62 69 | 74 2d 73 6d 6f 6f 74 68 |to do bi|t-smooth|
|00001140| 69 6e 67 2c 20 6a 75 73 | 74 20 6c 69 6b 65 20 4c |ing, jus|t like L|
|00001150| 61 73 65 72 57 72 69 74 | 65 72 73 2e 0a 52 41 5a |aserWrit|ers..RAZ|
|00001160| 5a 4c 45 21 44 41 5a 5a | 4c 45 0a 66 69 09 23 20 |ZLE!DAZZ|LE.fi.# |
|00001170| 45 6e 64 20 52 65 61 64 | 4d 65 0a 69 66 20 74 65 |End Read|Me.if te|
|00001180| 73 74 20 2d 66 20 4d 61 | 6b 65 66 69 6c 65 0a 74 |st -f Ma|kefile.t|
|00001190| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000011a0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 77 72 69 |will not| overwri|
|000011b0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|000011c0| 20 22 27 4d 61 6b 65 66 | 69 6c 65 27 22 0a 65 6c | "'Makef|ile'".el|
|000011d0| 73 65 0a 65 63 68 6f 20 | 27 78 20 2d 20 4d 61 6b |se.echo |'x - Mak|
|000011e0| 65 66 69 6c 65 27 0a 63 | 61 74 20 3c 3c 20 5c 52 |efile'.c|at << \R|
|000011f0| 41 5a 5a 4c 45 21 44 41 | 5a 5a 4c 45 20 3e 20 4d |AZZLE!DA|ZZLE > M|
|00001200| 61 6b 65 66 69 6c 65 0a | 23 20 43 6f 70 79 72 69 |akefile.|# Copyri|
|00001210| 67 68 74 20 28 63 29 20 | 31 39 38 38 2c 20 54 68 |ght (c) |1988, Th|
|00001220| 65 20 54 72 75 73 74 65 | 65 73 20 6f 66 20 74 68 |e Truste|es of th|
|00001230| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00001240| 43 61 6c 69 66 6f 72 6e | 69 61 2e 0a 23 20 45 64 |Californ|ia..# Ed|
|00001250| 77 61 72 64 20 4d 6f 79 | 2c 20 57 6f 72 6b 73 74 |ward Moy|, Workst|
|00001260| 61 74 69 6f 6e 20 53 6f | 66 74 77 61 72 65 20 53 |ation So|ftware S|
|00001270| 75 70 70 6f 72 74 20 47 | 72 6f 75 70 2c 20 57 6f |upport G|roup, Wo|
|00001280| 72 6b 73 74 61 74 69 6f | 6e 20 53 75 70 70 6f 72 |rkstatio|n Suppor|
|00001290| 74 20 53 65 72 69 63 65 | 73 2c 0a 23 20 49 6e 66 |t Serice|s,.# Inf|
|000012a0| 6f 72 6d 61 74 69 6f 6e | 20 53 79 73 74 65 6d 73 |ormation| Systems|
|000012b0| 20 61 6e 64 20 54 65 63 | 68 6e 6f 6c 6f 67 79 2e | and Tec|hnology.|
|000012c0| 0a 23 0a 23 20 50 65 72 | 6d 69 73 73 69 6f 6e 20 |.#.# Per|mission |
|000012d0| 69 73 20 67 72 61 6e 74 | 65 64 20 74 6f 20 61 6e |is grant|ed to an|
|000012e0| 79 20 69 6e 64 69 76 69 | 64 75 61 6c 20 6f 72 20 |y indivi|dual or |
|000012f0| 69 6e 73 74 69 74 75 74 | 69 6f 6e 20 74 6f 20 75 |institut|ion to u|
|00001300| 73 65 2c 20 63 6f 70 79 | 2c 0a 23 20 6f 72 20 72 |se, copy|,.# or r|
|00001310| 65 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 |edistrib|ute this|
|00001320| 20 73 6f 66 74 77 61 72 | 65 20 73 6f 20 6c 6f 6e | softwar|e so lon|
|00001330| 67 20 61 73 20 69 74 20 | 69 73 20 6e 6f 74 20 73 |g as it |is not s|
|00001340| 6f 6c 64 20 66 6f 72 20 | 70 72 6f 66 69 74 2c 0a |old for |profit,.|
|00001350| 23 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 20 |# provid|ed that |
|00001360| 74 68 69 73 20 6e 6f 74 | 69 63 65 20 61 6e 64 20 |this not|ice and |
|00001370| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 63 6f 70 |the orig|inal cop|
|00001380| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 73 20 61 |yright n|otices a|
|00001390| 72 65 0a 23 20 72 65 74 | 61 69 6e 65 64 2e 20 20 |re.# ret|ained. |
|000013a0| 54 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |The Univ|ersity o|
|000013b0| 66 20 43 61 6c 69 66 6f | 72 6e 69 61 20 6d 61 6b |f Califo|rnia mak|
|000013c0| 65 73 20 6e 6f 20 72 65 | 70 72 65 73 65 6e 74 61 |es no re|presenta|
|000013d0| 74 69 6f 6e 73 20 61 62 | 6f 75 74 20 74 68 65 0a |tions ab|out the.|
|000013e0| 23 20 73 75 69 74 61 62 | 69 6c 69 74 79 20 6f 66 |# suitab|ility of|
|000013f0| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 20 66 | this so|ftware f|
|00001400| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 2e 20 |or any p|urpose. |
|00001410| 20 49 74 20 69 73 20 70 | 72 6f 76 69 64 65 64 20 | It is p|rovided |
|00001420| 22 61 73 20 69 73 22 0a | 23 20 77 69 74 68 6f 75 |"as is".|# withou|
|00001430| 74 20 65 78 70 72 65 73 | 73 20 6f 72 20 69 6d 70 |t expres|s or imp|
|00001440| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 2e 0a 0a |lied war|ranty...|
|00001450| 43 46 4c 41 47 53 20 3d | 20 2d 4f 0a 4d 41 43 50 |CFLAGS =| -O.MACP|
|00001460| 53 20 3d 20 6d 61 63 70 | 73 2e 6f 20 6d 61 63 61 |S = macp|s.o maca|
|00001470| 75 78 2e 6f 20 75 63 62 | 77 68 69 63 68 2e 6f 0a |ux.o ucb|which.o.|
|00001480| 50 52 45 50 46 49 58 20 | 3d 20 70 72 65 70 66 69 |PREPFIX |= prepfi|
|00001490| 78 2e 6f 20 6d 61 63 61 | 75 78 2e 6f 0a 0a 61 6c |x.o maca|ux.o..al|
|000014a0| 6c 20 3a 20 6d 61 63 70 | 73 20 70 72 65 70 66 69 |l : macp|s prepfi|
|000014b0| 78 0a 0a 6d 61 63 70 73 | 20 3a 20 24 28 4d 41 43 |x..macps| : $(MAC|
|000014c0| 50 53 29 0a 09 63 63 20 | 2d 6f 20 6d 61 63 70 73 |PS)..cc |-o macps|
|000014d0| 20 2d 73 20 24 28 43 46 | 4c 41 47 53 29 20 24 28 | -s $(CF|LAGS) $(|
|000014e0| 4d 41 43 50 53 29 0a 0a | 70 72 65 70 66 69 78 20 |MACPS)..|prepfix |
|000014f0| 3a 20 24 28 50 52 45 50 | 46 49 58 29 0a 09 63 63 |: $(PREP|FIX)..cc|
|00001500| 20 2d 6f 20 70 72 65 70 | 66 69 78 20 2d 73 20 24 | -o prep|fix -s $|
|00001510| 28 43 46 4c 41 47 53 29 | 20 24 28 50 52 45 50 46 |(CFLAGS)| $(PREPF|
|00001520| 49 58 29 0a 52 41 5a 5a | 4c 45 21 44 41 5a 5a 4c |IX).RAZZ|LE!DAZZL|
|00001530| 45 0a 66 69 09 23 20 45 | 6e 64 20 4d 61 6b 65 66 |E.fi.# E|nd Makef|
|00001540| 69 6c 65 0a 69 66 20 74 | 65 73 74 20 2d 66 20 6d |ile.if t|est -f m|
|00001550| 61 63 70 73 2e 63 0a 74 | 68 65 6e 0a 09 65 63 68 |acps.c.t|hen..ech|
|00001560| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00001570| 20 6f 76 65 72 77 72 69 | 74 65 20 65 78 69 73 74 | overwri|te exist|
|00001580| 69 6e 67 20 66 69 6c 65 | 20 22 27 6d 61 63 70 73 |ing file| "'macps|
|00001590| 2e 63 27 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 27 |.c'".els|e.echo '|
|000015a0| 78 20 2d 20 6d 61 63 70 | 73 2e 63 27 0a 63 61 74 |x - macp|s.c'.cat|
|000015b0| 20 3c 3c 20 5c 52 41 5a | 5a 4c 45 21 44 41 5a 5a | << \RAZ|ZLE!DAZZ|
|000015c0| 4c 45 20 3e 20 6d 61 63 | 70 73 2e 63 0a 2f 2a 0a |LE > mac|ps.c./*.|
|000015d0| 20 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 63 29 | * Copyr|ight (c)|
|000015e0| 20 31 39 38 38 2c 20 54 | 68 65 20 54 72 75 73 74 | 1988, T|he Trust|
|000015f0| 65 65 73 20 6f 66 20 74 | 68 65 20 55 6e 69 76 65 |ees of t|he Unive|
|00001600| 72 73 69 74 79 20 6f 66 | 20 43 61 6c 69 66 6f 72 |rsity of| Califor|
|00001610| 6e 69 61 2e 0a 20 2a 20 | 45 64 77 61 72 64 20 4d |nia.. * |Edward M|
|00001620| 6f 79 2c 20 57 6f 72 6b | 73 74 61 74 69 6f 6e 20 |oy, Work|station |
|00001630| 53 6f 66 74 77 61 72 65 | 20 53 75 70 70 6f 72 74 |Software| Support|
|00001640| 20 47 72 6f 75 70 2c 20 | 57 6f 72 6b 73 74 61 74 | Group, |Workstat|
|00001650| 69 6f 6e 20 53 75 70 70 | 6f 72 74 20 53 65 72 69 |ion Supp|ort Seri|
|00001660| 63 65 73 2c 0a 20 2a 20 | 49 6e 66 6f 72 6d 61 74 |ces,. * |Informat|
|00001670| 69 6f 6e 20 53 79 73 74 | 65 6d 73 20 61 6e 64 20 |ion Syst|ems and |
|00001680| 54 65 63 68 6e 6f 6c 6f | 67 79 2e 0a 20 2a 0a 20 |Technolo|gy.. *. |
|00001690| 2a 20 50 65 72 6d 69 73 | 73 69 6f 6e 20 69 73 20 |* Permis|sion is |
|000016a0| 67 72 61 6e 74 65 64 20 | 74 6f 20 61 6e 79 20 69 |granted |to any i|
|000016b0| 6e 64 69 76 69 64 75 61 | 6c 20 6f 72 20 69 6e 73 |ndividua|l or ins|
|000016c0| 74 69 74 75 74 69 6f 6e | 20 74 6f 20 75 73 65 2c |titution| to use,|
|000016d0| 20 63 6f 70 79 2c 0a 20 | 2a 20 6f 72 20 72 65 64 | copy,. |* or red|
|000016e0| 69 73 74 72 69 62 75 74 | 65 20 74 68 69 73 20 73 |istribut|e this s|
|000016f0| 6f 66 74 77 61 72 65 20 | 73 6f 20 6c 6f 6e 67 20 |oftware |so long |
|00001700| 61 73 20 69 74 20 69 73 | 20 6e 6f 74 20 73 6f 6c |as it is| not sol|
|00001710| 64 20 66 6f 72 20 70 72 | 6f 66 69 74 2c 0a 20 2a |d for pr|ofit,. *|
|00001720| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|00001730| 68 69 73 20 6e 6f 74 69 | 63 65 20 61 6e 64 20 74 |his noti|ce and t|
|00001740| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 63 6f 70 79 |he origi|nal copy|
|00001750| 72 69 67 68 74 20 6e 6f | 74 69 63 65 73 20 61 72 |right no|tices ar|
|00001760| 65 0a 20 2a 20 72 65 74 | 61 69 6e 65 64 2e 20 20 |e. * ret|ained. |
|00001770| 54 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |The Univ|ersity o|
|00001780| 66 20 43 61 6c 69 66 6f | 72 6e 69 61 20 6d 61 6b |f Califo|rnia mak|
|00001790| 65 73 20 6e 6f 20 72 65 | 70 72 65 73 65 6e 74 61 |es no re|presenta|
|000017a0| 74 69 6f 6e 73 20 61 62 | 6f 75 74 20 74 68 65 0a |tions ab|out the.|
|000017b0| 20 2a 20 73 75 69 74 61 | 62 69 6c 69 74 79 20 6f | * suita|bility o|
|000017c0| 66 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 20 |f this s|oftware |
|000017d0| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 2e |for any |purpose.|
|000017e0| 20 20 49 74 20 69 73 20 | 70 72 6f 76 69 64 65 64 | It is |provided|
|000017f0| 20 22 61 73 20 69 73 22 | 0a 20 2a 20 77 69 74 68 | "as is"|. * with|
|00001800| 6f 75 74 20 65 78 70 72 | 65 73 73 20 6f 72 20 69 |out expr|ess or i|
|00001810| 6d 70 6c 69 65 64 20 77 | 61 72 72 61 6e 74 79 2e |mplied w|arranty.|
|00001820| 0a 20 2a 2f 0a 0a 23 69 | 66 6e 64 65 66 20 6c 69 |. */..#i|fndef li|
|00001830| 6e 74 0a 73 74 61 74 69 | 63 20 63 68 61 72 20 2a |nt.stati|c char *|
|00001840| 53 43 43 53 69 64 20 3d | 20 22 40 28 23 29 6d 61 |SCCSid =| "@(#)ma|
|00001850| 63 70 73 2e 63 09 31 2e | 31 20 39 2f 31 39 2f 38 |cps.c.1.|1 9/19/8|
|00001860| 38 22 3b 0a 23 65 6e 64 | 69 66 20 6c 69 6e 74 0a |8";.#end|if lint.|
|00001870| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 63 74 79 70 65 |.#includ|e <ctype|
|00001880| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.h>.#inc|lude <st|
|00001890| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|000018a0| 3c 73 74 72 69 6e 67 73 | 2e 68 3e 0a 23 69 6e 63 |<strings|.h>.#inc|
|000018b0| 6c 75 64 65 20 22 75 63 | 62 77 68 69 63 68 2e 68 |lude "uc|bwhich.h|
|000018c0| 22 0a 0a 23 64 65 66 69 | 6e 65 09 43 4f 4e 46 49 |"..#defi|ne.CONFI|
|000018d0| 47 09 09 22 6d 61 63 70 | 73 2e 63 6f 6e 66 69 67 |G.."macp|s.config|
|000018e0| 22 0a 23 64 65 66 69 6e | 65 20 4c 49 4e 45 4c 45 |".#defin|e LINELE|
|000018f0| 4e 09 09 32 35 36 0a 0a | 63 68 61 72 20 2a 46 67 |N..256..|char *Fg|
|00001900| 65 74 73 28 29 3b 0a 63 | 68 61 72 20 2a 6d 79 6e |ets();.c|har *myn|
|00001910| 61 6d 65 3b 0a 69 6e 74 | 20 75 63 62 61 6c 74 65 |ame;.int| ucbalte|
|00001920| 72 6e 61 74 65 3b 0a 63 | 68 61 72 20 75 63 62 70 |rnate;.c|har ucbp|
|00001930| 61 74 68 5b 55 43 42 4d | 41 58 50 41 54 48 4c 45 |ath[UCBM|AXPATHLE|
|00001940| 4e 5d 3b 0a 63 68 61 72 | 20 75 63 62 6c 69 62 5b |N];.char| ucblib[|
|00001950| 55 43 42 4d 41 58 50 41 | 54 48 4c 45 4e 5d 3b 0a |UCBMAXPA|THLEN];.|
|00001960| 0a 6d 61 69 6e 28 61 72 | 67 63 2c 20 61 72 67 76 |.main(ar|gc, argv|
|00001970| 29 0a 69 6e 74 20 61 72 | 67 63 3b 0a 63 68 61 72 |).int ar|gc;.char|
|00001980| 20 2a 2a 61 72 67 76 3b | 0a 7b 0a 09 72 65 67 69 | **argv;|.{..regi|
|00001990| 73 74 65 72 20 63 68 61 | 72 20 2a 63 70 2c 20 2a |ster cha|r *cp, *|
|000019a0| 70 70 3b 0a 09 72 65 67 | 69 73 74 65 72 20 46 49 |pp;..reg|ister FI|
|000019b0| 4c 45 20 2a 66 70 2c 20 | 2a 6c 70 3b 0a 09 72 65 |LE *fp, |*lp;..re|
|000019c0| 67 69 73 74 65 72 20 69 | 6e 74 20 69 2c 20 6c 69 |gister i|nt i, li|
|000019d0| 62 65 6e 64 3b 0a 09 63 | 68 61 72 20 62 75 66 5b |bend;..c|har buf[|
|000019e0| 42 55 46 53 49 5a 5d 2c | 20 6c 69 6e 65 5b 4c 49 |BUFSIZ],| line[LI|
|000019f0| 4e 45 4c 45 4e 5d 3b 0a | 0a 09 75 63 62 77 68 69 |NELEN];.|..ucbwhi|
|00001a00| 63 68 28 2a 61 72 67 76 | 29 3b 0a 09 69 66 28 6d |ch(*argv|);..if(m|
|00001a10| 79 6e 61 6d 65 20 3d 20 | 72 69 6e 64 65 78 28 2a |yname = |rindex(*|
|00001a20| 61 72 67 76 2c 20 27 2f | 27 29 29 0a 09 09 6d 79 |argv, '/|'))...my|
|00001a30| 6e 61 6d 65 2b 2b 3b 0a | 09 65 6c 73 65 0a 09 09 |name++;.|.else...|
|00001a40| 6d 79 6e 61 6d 65 20 3d | 20 2a 61 72 67 76 3b 0a |myname =| *argv;.|
|00001a50| 09 69 66 28 61 72 67 63 | 20 3e 20 32 29 20 7b 0a |.if(argc| > 2) {.|
|00001a60| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00001a70| 2c 20 22 55 73 61 67 65 | 3a 20 25 73 20 5b 66 69 |, "Usage|: %s [fi|
|00001a80| 6c 65 5d 5c 6e 22 2c 20 | 6d 79 6e 61 6d 65 29 3b |le]\n", |myname);|
|00001a90| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 0a 09 |...exit(|1);..}..|
|00001aa0| 69 66 28 61 72 67 63 20 | 3d 3d 20 32 20 26 26 20 |if(argc |== 2 && |
|00001ab0| 66 72 65 6f 70 65 6e 28 | 2a 2b 2b 61 72 67 76 2c |freopen(|*++argv,|
|00001ac0| 20 22 72 22 2c 20 73 74 | 64 69 6e 29 20 3d 3d 20 | "r", st|din) == |
|00001ad0| 4e 55 4c 4c 29 20 7b 0a | 09 09 66 70 72 69 6e 74 |NULL) {.|..fprint|
|00001ae0| 66 28 73 74 64 65 72 72 | 2c 20 22 25 73 3a 20 63 |f(stderr|, "%s: c|
|00001af0| 61 6e 27 74 20 6f 70 65 | 6e 20 25 73 5c 6e 22 2c |an't ope|n %s\n",|
|00001b00| 20 6d 79 6e 61 6d 65 2c | 20 2a 61 72 67 76 29 3b | myname,| *argv);|
|00001b10| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 0a 09 |...exit(|1);..}..|
|00001b20| 69 66 28 46 67 65 74 73 | 28 62 75 66 2c 20 42 55 |if(Fgets|(buf, BU|
|00001b30| 46 53 49 5a 2c 20 73 74 | 64 69 6e 29 20 3d 3d 20 |FSIZ, st|din) == |
|00001b40| 4e 55 4c 4c 29 20 7b 0a | 09 09 66 70 72 69 6e 74 |NULL) {.|..fprint|
|00001b50| 66 28 73 74 64 65 72 72 | 2c 20 22 25 73 3a 20 4e |f(stderr|, "%s: N|
|00001b60| 75 6c 6c 20 69 6e 70 75 | 74 5c 6e 22 2c 20 6d 79 |ull inpu|t\n", my|
|00001b70| 6e 61 6d 65 29 3b 0a 09 | 09 65 78 69 74 28 31 29 |name);..|.exit(1)|
|00001b80| 3b 0a 09 7d 0a 09 73 74 | 72 63 61 74 28 75 63 62 |;..}..st|rcat(ucb|
|00001b90| 6c 69 62 2c 20 22 2f 22 | 29 3b 0a 09 6c 69 62 65 |lib, "/"|);..libe|
|00001ba0| 6e 64 20 3d 20 73 74 72 | 6c 65 6e 28 75 63 62 6c |nd = str|len(ucbl|
|00001bb0| 69 62 29 3b 0a 09 73 74 | 72 63 61 74 28 75 63 62 |ib);..st|rcat(ucb|
|00001bc0| 6c 69 62 2c 20 43 4f 4e | 46 49 47 29 3b 0a 09 69 |lib, CON|FIG);..i|
|00001bd0| 66 28 28 66 70 20 3d 20 | 66 6f 70 65 6e 28 75 63 |f((fp = |fopen(uc|
|00001be0| 62 6c 69 62 2c 20 22 72 | 22 29 29 20 3d 3d 20 4e |blib, "r|")) == N|
|00001bf0| 55 4c 4c 29 20 7b 0a 09 | 09 66 70 72 69 6e 74 66 |ULL) {..|.fprintf|
|00001c00| 28 73 74 64 65 72 72 2c | 20 22 25 73 3a 20 43 61 |(stderr,| "%s: Ca|
|00001c10| 6e 27 74 20 6f 70 65 6e | 20 25 73 5c 6e 22 2c 20 |n't open| %s\n", |
|00001c20| 6d 79 6e 61 6d 65 2c 20 | 75 63 62 6c 69 62 29 3b |myname, |ucblib);|
|00001c30| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 0a 09 |...exit(|1);..}..|
|00001c40| 66 70 75 74 73 28 22 25 | 21 5c 6e 22 2c 20 73 74 |fputs("%|!\n", st|
|00001c50| 64 6f 75 74 29 3b 0a 09 | 64 6f 20 7b 0a 09 09 46 |dout);..|do {...F|
|00001c60| 70 75 74 73 28 62 75 66 | 2c 20 73 74 64 6f 75 74 |puts(buf|, stdout|
|00001c70| 29 3b 0a 09 09 69 66 28 | 73 74 72 6e 63 6d 70 28 |);...if(|strncmp(|
|00001c80| 62 75 66 2c 20 22 25 25 | 49 6e 63 6c 75 64 65 50 |buf, "%%|IncludeP|
|00001c90| 72 6f 63 53 65 74 3a 22 | 2c 20 31 37 29 20 3d 3d |rocSet:"|, 17) ==|
|00001ca0| 20 30 29 20 7b 0a 09 09 | 09 66 6f 72 28 63 70 20 | 0) {...|.for(cp |
|00001cb0| 3d 20 26 62 75 66 5b 31 | 37 5d 20 3b 20 3b 20 63 |= &buf[1|7] ; ; c|
|00001cc0| 70 2b 2b 29 20 7b 0a 09 | 09 09 09 69 66 28 21 2a |p++) {..|...if(!*|
|00001cd0| 63 70 29 20 7b 0a 09 09 | 09 09 09 66 70 72 69 6e |cp) {...|...fprin|
|00001ce0| 74 66 28 73 74 64 65 72 | 72 2c 0a 09 09 09 09 20 |tf(stder|r,..... |
|00001cf0| 22 25 73 3a 20 53 79 6e | 74 61 78 20 65 72 72 6f |"%s: Syn|tax erro|
|00001d00| 72 20 6f 6e 20 49 6e 63 | 6c 75 64 65 50 72 6f 63 |r on Inc|ludeProc|
|00001d10| 53 65 74 20 6c 69 6e 65 | 5c 6e 22 2c 0a 09 09 09 |Set line|\n",....|
|00001d20| 09 09 20 6d 79 6e 61 6d | 65 29 3b 0a 09 09 09 09 |.. mynam|e);.....|
|00001d30| 09 65 78 69 74 28 31 29 | 3b 0a 09 09 09 09 7d 0a |.exit(1)|;.....}.|
|00001d40| 09 09 09 09 69 66 28 21 | 69 73 73 70 61 63 65 28 |....if(!|isspace(|
|00001d50| 2a 63 70 29 29 0a 09 09 | 09 09 09 62 72 65 61 6b |*cp))...|...break|
|00001d60| 3b 0a 09 09 09 7d 0a 09 | 09 09 70 70 20 3d 20 63 |;....}..|..pp = c|
|00001d70| 70 20 2b 20 73 74 72 6c | 65 6e 28 63 70 29 3b 0a |p + strl|en(cp);.|
|00001d80| 09 09 09 66 6f 72 28 20 | 3b 20 3b 20 29 20 7b 0a |...for( |; ; ) {.|
|00001d90| 09 09 09 09 2d 2d 70 70 | 3b 0a 09 09 09 09 69 66 |....--pp|;.....if|
|00001da0| 28 21 69 73 73 70 61 63 | 65 28 2a 70 70 29 29 0a |(!isspac|e(*pp)).|
|00001db0| 09 09 09 09 09 62 72 65 | 61 6b 3b 0a 09 09 09 09 |.....bre|ak;.....|
|00001dc0| 2a 70 70 20 3d 20 30 3b | 0a 09 09 09 7d 0a 09 09 |*pp = 0;|....}...|
|00001dd0| 09 66 73 65 65 6b 28 66 | 70 2c 20 30 4c 2c 20 30 |.fseek(f|p, 0L, 0|
|00001de0| 29 3b 0a 09 09 09 66 6f | 72 28 20 3b 20 3b 20 29 |);....fo|r( ; ; )|
|00001df0| 20 7b 0a 09 09 09 09 69 | 66 28 21 66 67 65 74 73 | {.....i|f(!fgets|
|00001e00| 28 6c 69 6e 65 2c 20 4c | 49 4e 45 4c 45 4e 2c 20 |(line, L|INELEN, |
|00001e10| 66 70 29 29 20 7b 0a 09 | 09 09 09 09 66 70 72 69 |fp)) {..|....fpri|
|00001e20| 6e 74 66 28 73 74 64 65 | 72 72 2c 0a 09 09 09 09 |ntf(stde|rr,.....|
|00001e30| 09 20 22 25 73 3a 20 55 | 6e 6b 6e 6f 77 6e 20 49 |. "%s: U|nknown I|
|00001e40| 6e 63 6c 75 64 65 50 72 | 6f 63 53 65 74 20 28 25 |ncludePr|ocSet (%|
|00001e50| 73 29 5c 6e 22 2c 0a 09 | 09 09 09 09 20 6d 79 6e |s)\n",..|.... myn|
|00001e60| 61 6d 65 2c 20 63 70 29 | 3b 0a 09 09 09 09 09 65 |ame, cp)|;......e|
|00001e70| 78 69 74 28 31 29 3b 0a | 09 09 09 09 7d 0a 09 09 |xit(1);.|....}...|
|00001e80| 09 09 69 66 28 2a 6c 69 | 6e 65 20 3d 3d 20 27 23 |..if(*li|ne == '#|
|00001e90| 27 29 0a 09 09 09 09 09 | 63 6f 6e 74 69 6e 75 65 |')......|continue|
|00001ea0| 3b 0a 09 09 09 09 69 66 | 28 70 70 20 3d 20 69 6e |;.....if|(pp = in|
|00001eb0| 64 65 78 28 6c 69 6e 65 | 2c 20 27 5c 6e 27 29 29 |dex(line|, '\n'))|
|00001ec0| 20 7b 0a 09 09 09 09 09 | 69 66 28 70 70 20 3d 3d | {......|if(pp ==|
|00001ed0| 20 6c 69 6e 65 29 0a 09 | 09 09 09 09 09 63 6f 6e | line)..|.....con|
|00001ee0| 74 69 6e 75 65 3b 0a 09 | 09 09 09 09 2a 70 70 20 |tinue;..|....*pp |
|00001ef0| 3d 20 30 3b 0a 09 09 09 | 09 7d 0a 09 09 09 09 69 |= 0;....|.}.....i|
|00001f00| 66 28 21 28 70 70 20 3d | 20 69 6e 64 65 78 28 6c |f(!(pp =| index(l|
|00001f10| 69 6e 65 2c 20 27 5c 74 | 27 29 29 29 20 7b 0a 09 |ine, '\t|'))) {..|
|00001f20| 09 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |....fpri|ntf(stde|
|00001f30| 72 72 2c 0a 09 09 09 09 | 09 20 22 25 73 3a 20 53 |rr,.....|. "%s: S|
|00001f40| 79 6e 74 61 78 20 65 72 | 72 6f 72 20 69 6e 20 25 |yntax er|ror in %|
|00001f50| 73 5c 6e 22 2c 0a 09 09 | 09 09 09 20 6d 79 6e 61 |s\n",...|... myna|
|00001f60| 6d 65 2c 20 75 63 62 6c | 69 62 29 3b 0a 09 09 09 |me, ucbl|ib);....|
|00001f70| 09 09 65 78 69 74 28 31 | 29 3b 0a 09 09 09 09 7d |..exit(1|);.....}|
|00001f80| 0a 09 09 09 09 2a 70 70 | 2b 2b 20 3d 20 30 3b 0a |.....*pp|++ = 0;.|
|00001f90| 09 09 09 09 69 66 28 73 | 74 72 63 6d 70 28 6c 69 |....if(s|trcmp(li|
|00001fa0| 6e 65 2c 20 63 70 29 20 | 3d 3d 20 30 29 0a 09 09 |ne, cp) |== 0)...|
|00001fb0| 09 09 09 62 72 65 61 6b | 3b 0a 09 09 09 7d 0a 09 |...break|;....}..|
|00001fc0| 09 09 69 66 28 2a 70 70 | 20 3d 3d 20 27 2f 27 29 |..if(*pp| == '/')|
|00001fd0| 0a 09 09 09 09 73 74 72 | 63 70 79 28 75 63 62 6c |.....str|cpy(ucbl|
|00001fe0| 69 62 2c 20 70 70 29 3b | 0a 09 09 09 65 6c 73 65 |ib, pp);|....else|
|00001ff0| 20 7b 0a 09 09 09 09 75 | 63 62 6c 69 62 5b 6c 69 | {.....u|cblib[li|
|00002000| 62 65 6e 64 5d 20 3d 20 | 30 3b 0a 09 09 09 09 73 |bend] = |0;.....s|
|00002010| 74 72 63 61 74 28 75 63 | 62 6c 69 62 2c 20 70 70 |trcat(uc|blib, pp|
|00002020| 29 3b 0a 09 09 09 7d 0a | 09 09 09 69 66 28 28 6c |);....}.|...if((l|
|00002030| 70 20 3d 20 66 6f 70 65 | 6e 28 75 63 62 6c 69 62 |p = fope|n(ucblib|
|00002040| 2c 20 22 72 22 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |, "r")) |== NULL)|
|00002050| 20 7b 0a 09 09 09 09 66 | 70 72 69 6e 74 66 28 73 | {.....f|printf(s|
|00002060| 74 64 65 72 72 2c 20 22 | 25 73 3a 20 43 61 6e 27 |tderr, "|%s: Can'|
|00002070| 74 20 6f 70 65 6e 20 25 | 73 5c 6e 22 2c 20 6d 79 |t open %|s\n", my|
|00002080| 6e 61 6d 65 2c 0a 09 09 | 09 09 20 75 63 62 6c 69 |name,...|.. ucbli|
|00002090| 62 29 3b 0a 09 09 09 09 | 65 78 69 74 28 31 29 3b |b);.....|exit(1);|
|000020a0| 0a 09 09 09 7d 0a 09 09 | 09 77 68 69 6c 65 28 28 |....}...|.while((|
|000020b0| 69 20 3d 20 66 72 65 61 | 64 28 62 75 66 2c 20 31 |i = frea|d(buf, 1|
|000020c0| 2c 20 42 55 46 53 49 5a | 2c 20 6c 70 29 29 20 3e |, BUFSIZ|, lp)) >|
|000020d0| 20 30 29 0a 09 09 09 09 | 66 77 72 69 74 65 28 62 | 0).....|fwrite(b|
|000020e0| 75 66 2c 20 31 2c 20 69 | 2c 20 73 74 64 6f 75 74 |uf, 1, i|, stdout|
|000020f0| 29 3b 0a 09 09 09 66 63 | 6c 6f 73 65 28 6c 70 29 |);....fc|lose(lp)|
|00002100| 3b 0a 09 09 7d 0a 09 7d | 20 77 68 69 6c 65 28 46 |;...}..}| while(F|
|00002110| 67 65 74 73 28 62 75 66 | 2c 20 42 55 46 53 49 5a |gets(buf|, BUFSIZ|
|00002120| 2c 20 73 74 64 69 6e 29 | 29 3b 0a 09 65 78 69 74 |, stdin)|);..exit|
|00002130| 28 30 29 3b 0a 7d 0a 52 | 41 5a 5a 4c 45 21 44 41 |(0);.}.R|AZZLE!DA|
|00002140| 5a 5a 4c 45 0a 66 69 09 | 23 20 45 6e 64 20 6d 61 |ZZLE.fi.|# End ma|
|00002150| 63 70 73 2e 63 0a 69 66 | 20 74 65 73 74 20 2d 66 |cps.c.if| test -f|
|00002160| 20 6d 61 63 61 75 78 2e | 63 0a 74 68 65 6e 0a 09 | macaux.|c.then..|
|00002170| 65 63 68 6f 20 73 68 61 | 72 3a 20 77 69 6c 6c 20 |echo sha|r: will |
|00002180| 6e 6f 74 20 6f 76 65 72 | 77 72 69 74 65 20 65 78 |not over|write ex|
|00002190| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 6d 61 |isting f|ile "'ma|
|000021a0| 63 61 75 78 2e 63 27 22 | 0a 65 6c 73 65 0a 65 63 |caux.c'"|.else.ec|
|000021b0| 68 6f 20 27 78 20 2d 20 | 6d 61 63 61 75 78 2e 63 |ho 'x - |macaux.c|
|000021c0| 27 0a 63 61 74 20 3c 3c | 20 5c 52 41 5a 5a 4c 45 |'.cat <<| \RAZZLE|
|000021d0| 21 44 41 5a 5a 4c 45 20 | 3e 20 6d 61 63 61 75 78 |!DAZZLE |> macaux|
|000021e0| 2e 63 0a 2f 2a 0a 20 2a | 20 43 6f 70 79 72 69 67 |.c./*. *| Copyrig|
|000021f0| 68 74 20 28 63 29 20 31 | 39 38 38 2c 20 54 68 65 |ht (c) 1|988, The|
|00002200| 20 54 72 75 73 74 65 65 | 73 20 6f 66 20 74 68 65 | Trustee|s of the|
|00002210| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00002220| 61 6c 69 66 6f 72 6e 69 | 61 2e 0a 20 2a 20 45 64 |aliforni|a.. * Ed|
|00002230| 77 61 72 64 20 4d 6f 79 | 2c 20 57 6f 72 6b 73 74 |ward Moy|, Workst|
|00002240| 61 74 69 6f 6e 20 53 6f | 66 74 77 61 72 65 20 53 |ation So|ftware S|
|00002250| 75 70 70 6f 72 74 20 47 | 72 6f 75 70 2c 20 57 6f |upport G|roup, Wo|
|00002260| 72 6b 73 74 61 74 69 6f | 6e 20 53 75 70 70 6f 72 |rkstatio|n Suppor|
|00002270| 74 20 53 65 72 69 63 65 | 73 2c 0a 20 2a 20 49 6e |t Serice|s,. * In|
|00002280| 66 6f 72 6d 61 74 69 6f | 6e 20 53 79 73 74 65 6d |formatio|n System|
|00002290| 73 20 61 6e 64 20 54 65 | 63 68 6e 6f 6c 6f 67 79 |s and Te|chnology|
|000022a0| 2e 0a 20 2a 0a 20 2a 20 | 50 65 72 6d 69 73 73 69 |.. *. * |Permissi|
|000022b0| 6f 6e 20 69 73 20 67 72 | 61 6e 74 65 64 20 74 6f |on is gr|anted to|
|000022c0| 20 61 6e 79 20 69 6e 64 | 69 76 69 64 75 61 6c 20 | any ind|ividual |
|000022d0| 6f 72 20 69 6e 73 74 69 | 74 75 74 69 6f 6e 20 74 |or insti|tution t|
|000022e0| 6f 20 75 73 65 2c 20 63 | 6f 70 79 2c 0a 20 2a 20 |o use, c|opy,. * |
|000022f0| 6f 72 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |or redis|tribute |
|00002300| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 73 6f |this sof|tware so|
|00002310| 20 6c 6f 6e 67 20 61 73 | 20 69 74 20 69 73 20 6e | long as| it is n|
|00002320| 6f 74 20 73 6f 6c 64 20 | 66 6f 72 20 70 72 6f 66 |ot sold |for prof|
|00002330| 69 74 2c 0a 20 2a 20 70 | 72 6f 76 69 64 65 64 20 |it,. * p|rovided |
|00002340| 74 68 61 74 20 74 68 69 | 73 20 6e 6f 74 69 63 65 |that thi|s notice|
|00002350| 20 61 6e 64 20 74 68 65 | 20 6f 72 69 67 69 6e 61 | and the| origina|
|00002360| 6c 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |l copyri|ght noti|
|00002370| 63 65 73 20 61 72 65 0a | 20 2a 20 72 65 74 61 69 |ces are.| * retai|
|00002380| 6e 65 64 2e 20 20 54 68 | 65 20 55 6e 69 76 65 72 |ned. Th|e Univer|
|00002390| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|000023a0| 69 61 20 6d 61 6b 65 73 | 20 6e 6f 20 72 65 70 72 |ia makes| no repr|
|000023b0| 65 73 65 6e 74 61 74 69 | 6f 6e 73 20 61 62 6f 75 |esentati|ons abou|
|000023c0| 74 20 74 68 65 0a 20 2a | 20 73 75 69 74 61 62 69 |t the. *| suitabi|
|000023d0| 6c 69 74 79 20 6f 66 20 | 74 68 69 73 20 73 6f 66 |lity of |this sof|
|000023e0| 74 77 61 72 65 20 66 6f | 72 20 61 6e 79 20 70 75 |tware fo|r any pu|
|000023f0| 72 70 6f 73 65 2e 20 20 | 49 74 20 69 73 20 70 72 |rpose. |It is pr|
|00002400| 6f 76 69 64 65 64 20 22 | 61 73 20 69 73 22 0a 20 |ovided "|as is". |
|00002410| 2a 20 77 69 74 68 6f 75 | 74 20 65 78 70 72 65 73 |* withou|t expres|
|00002420| 73 20 6f 72 20 69 6d 70 | 6c 69 65 64 20 77 61 72 |s or imp|lied war|
|00002430| 72 61 6e 74 79 2e 0a 20 | 2a 2f 0a 0a 23 69 66 6e |ranty.. |*/..#ifn|
|00002440| 64 65 66 20 6c 69 6e 74 | 0a 73 74 61 74 69 63 20 |def lint|.static |
|00002450| 63 68 61 72 20 2a 53 43 | 43 53 69 64 20 3d 20 22 |char *SC|CSid = "|
|00002460| 40 28 23 29 6d 61 63 61 | 75 78 2e 63 09 31 2e 31 |@(#)maca|ux.c.1.1|
|00002470| 20 39 2f 31 39 2f 38 38 | 22 3b 0a 23 65 6e 64 69 | 9/19/88|";.#endi|
|00002480| 66 20 6c 69 6e 74 0a 0a | 23 69 6e 63 6c 75 64 65 |f lint..|#include|
|00002490| 20 3c 63 74 79 70 65 2e | 68 3e 0a 23 69 6e 63 6c | <ctype.|h>.#incl|
|000024a0| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 0a 63 |ude <std|io.h>..c|
|000024b0| 68 61 72 20 2a 46 67 65 | 74 73 28 62 2c 20 6e 2c |har *Fge|ts(b, n,|
|000024c0| 20 66 70 29 0a 63 68 61 | 72 20 2a 62 3b 0a 72 65 | fp).cha|r *b;.re|
|000024d0| 67 69 73 74 65 72 20 69 | 6e 74 20 6e 3b 0a 72 65 |gister i|nt n;.re|
|000024e0| 67 69 73 74 65 72 20 46 | 49 4c 45 20 2a 66 70 3b |gister F|ILE *fp;|
|000024f0| 0a 7b 0a 09 72 65 67 69 | 73 74 65 72 20 69 6e 74 |.{..regi|ster int|
|00002500| 20 63 3b 0a 09 72 65 67 | 69 73 74 65 72 20 63 68 | c;..reg|ister ch|
|00002510| 61 72 20 2a 63 70 20 3d | 20 62 3b 0a 0a 09 77 68 |ar *cp =| b;...wh|
|00002520| 69 6c 65 28 2d 2d 6e 20 | 3e 20 30 29 20 7b 0a 09 |ile(--n |> 0) {..|
|00002530| 09 69 66 28 28 63 20 3d | 20 67 65 74 63 28 66 70 |.if((c =| getc(fp|
|00002540| 29 29 20 3d 3d 20 45 4f | 46 29 20 7b 0a 09 09 09 |)) == EO|F) {....|
|00002550| 69 66 28 63 70 20 3e 20 | 62 29 0a 09 09 09 09 62 |if(cp > |b).....b|
|00002560| 72 65 61 6b 3b 0a 09 09 | 09 65 6c 73 65 0a 09 09 |reak;...|.else...|
|00002570| 09 09 72 65 74 75 72 6e | 28 4e 55 4c 4c 29 3b 0a |..return|(NULL);.|
|00002580| 09 09 7d 0a 09 09 69 66 | 28 69 73 61 73 63 69 69 |..}...if|(isascii|
|00002590| 28 63 29 20 26 26 20 21 | 69 73 70 72 69 6e 74 28 |(c) && !|isprint(|
|000025a0| 63 29 29 20 7b 0a 09 09 | 09 69 66 28 63 20 3d 3d |c)) {...|.if(c ==|
|000025b0| 20 27 5c 6e 27 20 7c 7c | 20 63 20 3d 3d 20 27 5c | '\n' ||| c == '\|
|000025c0| 72 27 29 20 7b 0a 09 09 | 09 09 2a 63 70 2b 2b 20 |r') {...|..*cp++ |
|000025d0| 3d 20 27 5c 6e 27 3b 0a | 09 09 09 09 2a 63 70 20 |= '\n';.|....*cp |
|000025e0| 3d 20 30 3b 0a 09 09 09 | 09 72 65 74 75 72 6e 28 |= 0;....|.return(|
|000025f0| 62 29 3b 0a 09 09 09 7d | 20 65 6c 73 65 20 69 66 |b);....}| else if|
|00002600| 28 63 20 3d 3d 20 30 29 | 0a 09 09 09 09 63 20 3d |(c == 0)|.....c =|
|00002610| 20 30 32 30 30 3b 0a 09 | 09 7d 0a 09 09 2a 63 70 | 0200;..|.}...*cp|
|00002620| 2b 2b 20 3d 20 63 3b 0a | 09 7d 0a 09 2a 63 70 20 |++ = c;.|.}..*cp |
|00002630| 3d 20 30 3b 0a 09 72 65 | 74 75 72 6e 28 62 29 3b |= 0;..re|turn(b);|
|00002640| 0a 7d 0a 0a 46 70 75 74 | 73 28 62 2c 20 66 70 29 |.}..Fput|s(b, fp)|
|00002650| 0a 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a |.registe|r char *|
|00002660| 62 3b 0a 72 65 67 69 73 | 74 65 72 20 46 49 4c 45 |b;.regis|ter FILE|
|00002670| 20 2a 66 70 3b 0a 7b 0a | 09 77 68 69 6c 65 28 2a | *fp;.{.|.while(*|
|00002680| 62 29 20 7b 0a 09 09 69 | 66 28 2a 62 20 26 20 30 |b) {...i|f(*b & 0|
|00002690| 32 30 30 29 20 7b 0a 09 | 09 09 69 66 28 28 2a 62 |200) {..|..if((*b|
|000026a0| 20 26 20 30 31 37 37 29 | 20 3d 3d 20 30 29 0a 09 | & 0177)| == 0)..|
|000026b0| 09 09 09 2a 62 20 3d 20 | 30 3b 0a 09 09 09 66 70 |...*b = |0;....fp|
|000026c0| 72 69 6e 74 66 28 66 70 | 2c 20 22 5c 5c 25 30 33 |rintf(fp|, "\\%03|
|000026d0| 6f 22 2c 20 2a 62 29 3b | 0a 09 09 7d 20 65 6c 73 |o", *b);|...} els|
|000026e0| 65 20 69 66 28 21 69 73 | 70 72 69 6e 74 28 2a 62 |e if(!is|print(*b|
|000026f0| 29 20 26 26 20 2a 62 20 | 21 3d 20 27 5c 6e 27 20 |) && *b |!= '\n' |
|00002700| 26 26 20 2a 62 20 21 3d | 20 27 5c 74 27 29 0a 09 |&& *b !=| '\t')..|
|00002710| 09 09 66 70 72 69 6e 74 | 66 28 66 70 2c 20 22 5c |..fprint|f(fp, "\|
|00002720| 5c 25 30 33 6f 22 2c 20 | 2a 62 29 3b 0a 09 09 65 |\%03o", |*b);...e|
|00002730| 6c 73 65 0a 09 09 09 70 | 75 74 63 28 2a 62 2c 20 |lse....p|utc(*b, |
|00002740| 66 70 29 3b 0a 09 09 62 | 2b 2b 3b 0a 09 7d 0a 7d |fp);...b|++;..}.}|
|00002750| 0a 52 41 5a 5a 4c 45 21 | 44 41 5a 5a 4c 45 0a 66 |.RAZZLE!|DAZZLE.f|
|00002760| 69 09 23 20 45 6e 64 20 | 6d 61 63 61 75 78 2e 63 |i.# End |macaux.c|
|00002770| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 75 63 62 77 |.if test| -f ucbw|
|00002780| 68 69 63 68 2e 63 0a 74 | 68 65 6e 0a 09 65 63 68 |hich.c.t|hen..ech|
|00002790| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|000027a0| 20 6f 76 65 72 77 72 69 | 74 65 20 65 78 69 73 74 | overwri|te exist|
|000027b0| 69 6e 67 20 66 69 6c 65 | 20 22 27 75 63 62 77 68 |ing file| "'ucbwh|
|000027c0| 69 63 68 2e 63 27 22 0a | 65 6c 73 65 0a 65 63 68 |ich.c'".|else.ech|
|000027d0| 6f 20 27 78 20 2d 20 75 | 63 62 77 68 69 63 68 2e |o 'x - u|cbwhich.|
|000027e0| 63 27 0a 63 61 74 20 3c | 3c 20 5c 52 41 5a 5a 4c |c'.cat <|< \RAZZL|
|000027f0| 45 21 44 41 5a 5a 4c 45 | 20 3e 20 75 63 62 77 68 |E!DAZZLE| > ucbwh|
|00002800| 69 63 68 2e 63 0a 2f 2a | 0a 20 2a 20 43 6f 70 79 |ich.c./*|. * Copy|
|00002810| 72 69 67 68 74 20 28 63 | 29 20 31 39 38 38 2c 20 |right (c|) 1988, |
|00002820| 54 68 65 20 54 72 75 73 | 74 65 65 73 20 6f 66 20 |The Trus|tees of |
|00002830| 74 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |the Univ|ersity o|
|00002840| 66 20 43 61 6c 69 66 6f | 72 6e 69 61 2e 0a 20 2a |f Califo|rnia.. *|
|00002850| 20 45 64 77 61 72 64 20 | 4d 6f 79 2c 20 57 6f 72 | Edward |Moy, Wor|
|00002860| 6b 73 74 61 74 69 6f 6e | 20 53 6f 66 74 77 61 72 |kstation| Softwar|
|00002870| 65 20 53 75 70 70 6f 72 | 74 20 47 72 6f 75 70 2c |e Suppor|t Group,|
|00002880| 20 57 6f 72 6b 73 74 61 | 74 69 6f 6e 20 53 75 70 | Worksta|tion Sup|
|00002890| 70 6f 72 74 20 53 65 72 | 69 63 65 73 2c 0a 20 2a |port Ser|ices,. *|
|000028a0| 20 49 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 53 79 73 | Informa|tion Sys|
|000028b0| 74 65 6d 73 20 61 6e 64 | 20 54 65 63 68 6e 6f 6c |tems and| Technol|
|000028c0| 6f 67 79 2e 0a 20 2a 0a | 20 2a 20 50 65 72 6d 69 |ogy.. *.| * Permi|
|000028d0| 73 73 69 6f 6e 20 69 73 | 20 67 72 61 6e 74 65 64 |ssion is| granted|
|000028e0| 20 74 6f 20 61 6e 79 20 | 69 6e 64 69 76 69 64 75 | to any |individu|
|000028f0| 61 6c 20 6f 72 20 69 6e | 73 74 69 74 75 74 69 6f |al or in|stitutio|
|00002900| 6e 20 74 6f 20 75 73 65 | 2c 20 63 6f 70 79 2c 0a |n to use|, copy,.|
|00002910| 20 2a 20 6f 72 20 72 65 | 64 69 73 74 72 69 62 75 | * or re|distribu|
|00002920| 74 65 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |te this |software|
|00002930| 20 73 6f 20 6c 6f 6e 67 | 20 61 73 20 69 74 20 69 | so long| as it i|
|00002940| 73 20 6e 6f 74 20 73 6f | 6c 64 20 66 6f 72 20 70 |s not so|ld for p|
|00002950| 72 6f 66 69 74 2c 0a 20 | 2a 20 70 72 6f 76 69 64 |rofit,. |* provid|
|00002960| 65 64 20 74 68 61 74 20 | 74 68 69 73 20 6e 6f 74 |ed that |this not|
|00002970| 69 63 65 20 61 6e 64 20 | 74 68 65 20 6f 72 69 67 |ice and |the orig|
|00002980| 69 6e 61 6c 20 63 6f 70 | 79 72 69 67 68 74 20 6e |inal cop|yright n|
|00002990| 6f 74 69 63 65 73 20 61 | 72 65 0a 20 2a 20 72 65 |otices a|re. * re|
|000029a0| 74 61 69 6e 65 64 2e 20 | 20 54 68 65 20 55 6e 69 |tained. | The Uni|
|000029b0| 76 65 72 73 69 74 79 20 | 6f 66 20 43 61 6c 69 66 |versity |of Calif|
|000029c0| 6f 72 6e 69 61 20 6d 61 | 6b 65 73 20 6e 6f 20 72 |ornia ma|kes no r|
|000029d0| 65 70 72 65 73 65 6e 74 | 61 74 69 6f 6e 73 20 61 |epresent|ations a|
|000029e0| 62 6f 75 74 20 74 68 65 | 0a 20 2a 20 73 75 69 74 |bout the|. * suit|
|000029f0| 61 62 69 6c 69 74 79 20 | 6f 66 20 74 68 69 73 20 |ability |of this |
|00002a00| 73 6f 66 74 77 61 72 65 | 20 66 6f 72 20 61 6e 79 |software| for any|
|00002a10| 20 70 75 72 70 6f 73 65 | 2e 20 20 49 74 20 69 73 | purpose|. It is|
|00002a20| 20 70 72 6f 76 69 64 65 | 64 20 22 61 73 20 69 73 | provide|d "as is|
|00002a30| 22 0a 20 2a 20 77 69 74 | 68 6f 75 74 20 65 78 70 |". * wit|hout exp|
|00002a40| 72 65 73 73 20 6f 72 20 | 69 6d 70 6c 69 65 64 20 |ress or |implied |
|00002a50| 77 61 72 72 61 6e 74 79 | 2e 0a 20 2a 2f 0a 0a 23 |warranty|.. */..#|
|00002a60| 69 66 6e 64 65 66 20 6c | 69 6e 74 0a 73 74 61 74 |ifndef l|int.stat|
|00002a70| 69 63 20 63 68 61 72 20 | 2a 53 43 43 53 69 64 20 |ic char |*SCCSid |
|00002a80| 3d 20 22 40 28 23 29 75 | 63 62 77 68 69 63 68 2e |= "@(#)u|cbwhich.|
|00002a90| 63 09 31 2e 31 20 39 2f | 31 39 2f 38 38 22 3b 0a |c.1.1 9/|19/88";.|
|00002aa0| 23 65 6e 64 69 66 20 6c | 69 6e 74 0a 0a 23 69 6e |#endif l|int..#in|
|00002ab0| 63 6c 75 64 65 20 3c 73 | 74 64 69 6f 2e 68 3e 0a |clude <s|tdio.h>.|
|00002ac0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00002ad0| 70 65 73 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |pes.h>.#|include |
|00002ae0| 3c 73 79 73 2f 73 74 61 | 74 2e 68 3e 0a 23 69 6e |<sys/sta|t.h>.#in|
|00002af0| 63 6c 75 64 65 20 22 75 | 63 62 77 68 69 63 68 2e |clude "u|cbwhich.|
|00002b00| 68 22 0a 0a 23 64 65 66 | 69 6e 65 09 46 5f 4f 4b |h"..#def|ine.F_OK|
|00002b10| 09 09 30 09 2f 2a 20 64 | 6f 65 73 20 66 69 6c 65 |..0./* d|oes file|
|00002b20| 20 65 78 69 73 74 20 2a | 2f 0a 23 64 65 66 69 6e | exist *|/.#defin|
|00002b30| 65 09 58 5f 4f 4b 09 09 | 31 09 2f 2a 20 69 73 20 |e.X_OK..|1./* is |
|00002b40| 69 74 20 65 78 65 63 75 | 74 61 62 6c 65 20 62 79 |it execu|table by|
|00002b50| 20 63 61 6c 6c 65 72 20 | 2a 2f 0a 23 64 65 66 69 | caller |*/.#defi|
|00002b60| 6e 65 09 57 5f 4f 4b 09 | 09 32 09 2f 2a 20 77 72 |ne.W_OK.|.2./* wr|
|00002b70| 69 74 61 62 6c 65 20 62 | 79 20 63 61 6c 6c 65 72 |itable b|y caller|
|00002b80| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 09 52 5f 4f 4b | */.#def|ine.R_OK|
|00002b90| 09 09 34 09 2f 2a 20 72 | 65 61 64 61 62 6c 65 20 |..4./* r|eadable |
|00002ba0| 62 79 20 63 61 6c 6c 65 | 72 20 2a 2f 0a 0a 23 64 |by calle|r */..#d|
|00002bb0| 65 66 69 6e 65 09 4c 49 | 42 4c 45 4e 09 09 34 0a |efine.LI|BLEN..4.|
|00002bc0| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 6c 69 62 |.static |char lib|
|00002bd0| 5b 5d 20 3d 20 22 2f 6c | 69 62 22 3b 0a 0a 63 68 |[] = "/l|ib";..ch|
|00002be0| 61 72 20 75 63 62 6c 69 | 62 5b 55 43 42 4d 41 58 |ar ucbli|b[UCBMAX|
|00002bf0| 50 41 54 48 4c 45 4e 5d | 3b 0a 69 6e 74 20 75 63 |PATHLEN]|;.int uc|
|00002c00| 62 61 6c 74 65 72 6e 61 | 74 65 20 3d 20 30 3b 0a |balterna|te = 0;.|
|00002c10| 63 68 61 72 20 75 63 62 | 70 61 74 68 5b 55 43 42 |char ucb|path[UCB|
|00002c20| 4d 41 58 50 41 54 48 4c | 45 4e 5d 3b 0a 0a 75 63 |MAXPATHL|EN];..uc|
|00002c30| 62 77 68 69 63 68 28 73 | 74 72 29 0a 63 68 61 72 |bwhich(s|tr).char|
|00002c40| 20 2a 73 74 72 3b 0a 7b | 0a 09 72 65 67 69 73 74 | *str;.{|..regist|
|00002c50| 65 72 20 63 68 61 72 20 | 2a 64 69 72 2c 20 2a 6e |er char |*dir, *n|
|00002c60| 61 6d 65 2c 20 2a 63 70 | 2c 20 2a 74 70 3b 0a 09 |ame, *cp|, *tp;..|
|00002c70| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 6c 65 6e |register| int len|
|00002c80| 3b 0a 09 63 68 61 72 20 | 64 69 72 62 75 66 5b 55 |;..char |dirbuf[U|
|00002c90| 43 42 4d 41 58 50 41 54 | 48 4c 45 4e 5d 2c 20 6e |CBMAXPAT|HLEN], n|
|00002ca0| 61 6d 65 62 75 66 5b 55 | 43 42 4d 41 58 50 41 54 |amebuf[U|CBMAXPAT|
|00002cb0| 48 4c 45 4e 5d 3b 0a 09 | 73 74 72 75 63 74 20 73 |HLEN];..|struct s|
|00002cc0| 74 61 74 20 73 62 75 66 | 3b 0a 09 63 68 61 72 20 |tat sbuf|;..char |
|00002cd0| 2a 69 6e 64 65 78 28 29 | 2c 20 2a 72 69 6e 64 65 |*index()|, *rinde|
|00002ce0| 78 28 29 2c 20 2a 67 65 | 74 77 64 28 29 2c 20 2a |x(), *ge|twd(), *|
|00002cf0| 67 65 74 65 6e 76 28 29 | 3b 0a 0a 09 73 74 72 63 |getenv()|;...strc|
|00002d00| 70 79 28 6e 61 6d 65 20 | 3d 20 6e 61 6d 65 62 75 |py(name |= namebu|
|00002d10| 66 2c 20 73 74 72 29 3b | 0a 09 69 66 28 2a 6e 61 |f, str);|..if(*na|
|00002d20| 6d 65 20 3d 3d 20 27 2f | 27 29 09 2f 2a 20 61 62 |me == '/|')./* ab|
|00002d30| 73 6f 6c 75 74 65 20 70 | 61 74 68 6e 61 6d 65 20 |solute p|athname |
|00002d40| 2a 2f 0a 09 09 2a 28 72 | 69 6e 64 65 78 28 64 69 |*/...*(r|index(di|
|00002d50| 72 20 3d 20 6e 61 6d 65 | 2c 20 27 2f 27 29 29 20 |r = name|, '/')) |
|00002d60| 3d 20 30 20 3b 20 2f 2a | 20 72 65 6d 6f 76 65 20 |= 0 ; /*| remove |
|00002d70| 74 61 69 6c 20 2a 2f 0a | 09 65 6c 73 65 20 7b 0a |tail */.|.else {.|
|00002d80| 09 09 69 66 28 63 70 20 | 3d 20 69 6e 64 65 78 28 |..if(cp |= index(|
|00002d90| 6e 61 6d 65 2c 20 27 2f | 27 29 29 20 7b 20 2f 2a |name, '/|')) { /*|
|00002da0| 20 72 65 6c 61 74 69 76 | 65 20 70 61 74 68 6e 61 | relativ|e pathna|
|00002db0| 6d 65 20 2a 2f 0a 09 09 | 09 69 66 28 28 64 69 72 |me */...|.if((dir|
|00002dc0| 20 3d 20 67 65 74 77 64 | 28 64 69 72 62 75 66 29 | = getwd|(dirbuf)|
|00002dd0| 29 20 3d 3d 20 4e 55 4c | 4c 29 0a 09 09 09 09 72 |) == NUL|L).....r|
|00002de0| 65 74 75 72 6e 28 30 29 | 3b 0a 09 09 09 20 2f 2a |eturn(0)|;.... /*|
|00002df0| 20 69 66 20 61 6e 79 20 | 65 72 72 6f 72 73 20 6f | if any |errors o|
|00002e00| 63 63 75 72 73 20 61 73 | 73 75 6d 65 20 73 74 61 |ccurs as|sume sta|
|00002e10| 6e 64 61 72 64 20 76 65 | 72 73 69 6f 6e 20 2a 2f |ndard ve|rsion */|
|00002e20| 0a 09 09 09 2a 63 70 2b | 2b 20 3d 20 30 3b 0a 09 |....*cp+|+ = 0;..|
|00002e30| 09 09 66 6f 72 28 20 3b | 20 3b 20 29 20 7b 0a 09 |..for( ;| ; ) {..|
|00002e40| 09 09 09 69 66 28 2a 6e | 61 6d 65 20 21 3d 20 30 |...if(*n|ame != 0|
|00002e50| 29 20 7b 20 2f 2a 20 6d | 75 6c 74 69 70 6c 65 20 |) { /* m|ultiple |
|00002e60| 73 6c 61 73 68 65 73 20 | 2a 2f 0a 09 09 09 09 09 |slashes |*/......|
|00002e70| 69 66 28 73 74 72 63 6d | 70 28 6e 61 6d 65 2c 20 |if(strcm|p(name, |
|00002e80| 22 2e 2e 22 29 20 3d 3d | 20 30 29 20 7b 0a 09 09 |"..") ==| 0) {...|
|00002e90| 09 09 09 09 2f 2a 20 70 | 61 72 65 6e 74 20 64 69 |..../* p|arent di|
|00002ea0| 72 65 63 74 6f 72 79 20 | 2a 2f 0a 09 09 09 09 09 |rectory |*/......|
|00002eb0| 09 69 66 28 28 74 70 20 | 3d 20 72 69 6e 64 65 78 |.if((tp |= rindex|
|00002ec0| 28 64 69 72 2c 20 27 2f | 27 29 29 20 3d 3d 0a 09 |(dir, '/|')) ==..|
|00002ed0| 09 09 09 09 09 20 4e 55 | 4c 4c 29 0a 09 09 09 09 |..... NU|LL).....|
|00002ee0| 09 09 20 09 72 65 74 75 | 72 6e 28 30 29 3b 0a 09 |.. .retu|rn(0);..|
|00002ef0| 09 09 09 09 09 69 66 28 | 74 70 20 3d 3d 20 64 69 |.....if(|tp == di|
|00002f00| 72 29 0a 09 09 09 09 09 | 09 09 74 70 2b 2b 3b 0a |r)......|..tp++;.|
|00002f10| 09 09 09 09 09 09 20 2f | 2a 20 72 6f 6f 74 20 64 |...... /|* root d|
|00002f20| 69 72 65 63 74 6f 72 79 | 20 2a 2f 0a 09 09 09 09 |irectory| */.....|
|00002f30| 09 09 2a 74 70 20 3d 20 | 30 3b 0a 09 09 09 09 09 |..*tp = |0;......|
|00002f40| 09 20 2f 2a 20 72 65 6d | 6f 76 65 20 6c 61 73 74 |. /* rem|ove last|
|00002f50| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 2a 2f 0a 09 09 | compone|nt */...|
|00002f60| 09 09 09 7d 20 65 6c 73 | 65 20 69 66 28 73 74 72 |...} els|e if(str|
|00002f70| 63 6d 70 28 6e 61 6d 65 | 2c 20 22 2e 22 29 20 21 |cmp(name|, ".") !|
|00002f80| 3d 20 30 29 20 7b 0a 09 | 09 09 09 09 09 2f 2a 20 |= 0) {..|...../* |
|00002f90| 73 75 62 64 69 72 65 63 | 74 6f 72 79 20 2a 2f 0a |subdirec|tory */.|
|00002fa0| 09 09 09 09 09 09 73 74 | 72 63 61 74 28 64 69 72 |......st|rcat(dir|
|00002fb0| 2c 20 22 2f 22 29 3b 0a | 09 09 09 09 09 09 73 74 |, "/");.|......st|
|00002fc0| 72 63 61 74 28 64 69 72 | 2c 20 6e 61 6d 65 29 3b |rcat(dir|, name);|
|00002fd0| 0a 09 09 09 09 09 7d 0a | 09 09 09 09 7d 0a 09 09 |......}.|....}...|
|00002fe0| 09 09 6e 61 6d 65 20 3d | 20 63 70 3b 0a 09 09 09 |..name =| cp;....|
|00002ff0| 09 69 66 28 28 63 70 20 | 3d 20 69 6e 64 65 78 28 |.if((cp |= index(|
|00003000| 6e 61 6d 65 2c 20 27 2f | 27 29 29 20 3d 3d 20 4e |name, '/|')) == N|
|00003010| 55 4c 4c 29 20 62 72 65 | 61 6b 3b 0a 09 09 09 09 |ULL) bre|ak;.....|
|00003020| 2f 2a 20 69 67 6e 6f 72 | 65 20 6c 61 73 74 20 63 |/* ignor|e last c|
|00003030| 6f 6d 70 6f 6e 65 6e 74 | 20 2a 2f 0a 09 09 09 09 |omponent| */.....|
|00003040| 2a 63 70 2b 2b 20 3d 20 | 30 3b 0a 09 09 09 7d 0a |*cp++ = |0;....}.|
|00003050| 09 09 7d 20 65 6c 73 65 | 20 7b 20 2f 2a 20 6c 6f |..} else| { /* lo|
|00003060| 6f 6b 20 74 68 72 6f 75 | 67 68 20 24 50 41 54 48 |ok throu|gh $PATH|
|00003070| 20 76 61 72 69 61 62 6c | 65 20 2a 2f 0a 09 09 09 | variabl|e */....|
|00003080| 69 66 28 28 74 70 20 3d | 20 67 65 74 65 6e 76 28 |if((tp =| getenv(|
|00003090| 22 50 41 54 48 22 29 29 | 20 3d 3d 20 4e 55 4c 4c |"PATH"))| == NULL|
|000030a0| 29 0a 09 09 09 09 72 65 | 74 75 72 6e 28 30 29 3b |).....re|turn(0);|
|000030b0| 0a 09 09 09 66 6f 72 28 | 6e 61 6d 65 20 3d 20 6e |....for(|name = n|
|000030c0| 61 6d 65 62 75 66 20 3b | 20 3b 20 29 20 7b 0a 09 |amebuf ;| ; ) {..|
|000030d0| 09 09 09 69 66 28 2a 74 | 70 20 3d 3d 20 30 29 0a |...if(*t|p == 0).|
|000030e0| 09 09 09 09 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |.....ret|urn(0);.|
|000030f0| 09 09 09 09 65 6c 73 65 | 20 69 66 28 2a 74 70 20 |....else| if(*tp |
|00003100| 3d 3d 20 27 3a 27 29 0a | 09 09 09 09 09 74 70 2b |== ':').|.....tp+|
|00003110| 2b 3b 0a 09 09 09 09 69 | 66 28 28 63 70 20 3d 20 |+;.....i|f((cp = |
|00003120| 69 6e 64 65 78 28 74 70 | 2c 20 27 3a 27 29 29 20 |index(tp|, ':')) |
|00003130| 3d 3d 20 4e 55 4c 4c 29 | 0a 09 09 09 09 09 63 70 |== NULL)|......cp|
|00003140| 20 3d 20 74 70 20 2b 20 | 73 74 72 6c 65 6e 28 74 | = tp + |strlen(t|
|00003150| 70 29 3b 0a 09 09 09 09 | 20 2f 2a 20 70 6f 73 69 |p);.....| /* posi|
|00003160| 74 69 6f 6e 65 64 20 6f | 6e 20 6e 75 6c 6c 20 2a |tioned o|n null *|
|00003170| 2f 0a 09 09 09 09 66 6f | 72 28 64 69 72 20 3d 20 |/.....fo|r(dir = |
|00003180| 64 69 72 62 75 66 20 3b | 20 74 70 20 3c 20 63 70 |dirbuf ;| tp < cp|
|00003190| 20 3b 20 29 0a 09 09 09 | 09 09 2a 64 69 72 2b 2b | ; )....|..*dir++|
|000031a0| 20 3d 20 2a 74 70 2b 2b | 3b 0a 09 09 09 09 2a 64 | = *tp++|;.....*d|
|000031b0| 69 72 20 3d 20 30 3b 0a | 09 09 09 09 73 74 72 63 |ir = 0;.|....strc|
|000031c0| 70 79 28 6e 61 6d 65 2c | 20 64 69 72 20 3d 20 64 |py(name,| dir = d|
|000031d0| 69 72 62 75 66 29 3b 0a | 09 09 09 09 73 74 72 63 |irbuf);.|....strc|
|000031e0| 61 74 28 6e 61 6d 65 2c | 20 22 2f 22 29 3b 0a 09 |at(name,| "/");..|
|000031f0| 09 09 09 73 74 72 63 61 | 74 28 6e 61 6d 65 2c 20 |...strca|t(name, |
|00003200| 73 74 72 29 3b 0a 09 09 | 09 09 69 66 28 73 74 61 |str);...|..if(sta|
|00003210| 74 28 6e 61 6d 65 2c 20 | 26 73 62 75 66 29 20 3c |t(name, |&sbuf) <|
|00003220| 20 30 20 7c 7c 20 28 73 | 62 75 66 2e 73 74 5f 6d | 0 || (s|buf.st_m|
|00003230| 6f 64 65 20 26 0a 09 09 | 09 09 20 53 5f 49 46 4d |ode &...|.. S_IFM|
|00003240| 54 29 20 21 3d 20 53 5f | 49 46 52 45 47 29 0a 09 |T) != S_|IFREG)..|
|00003250| 09 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0a 09 09 |....cont|inue;...|
|00003260| 09 09 69 66 28 61 63 63 | 65 73 73 28 6e 61 6d 65 |..if(acc|ess(name|
|00003270| 2c 20 58 5f 4f 4b 29 20 | 3d 3d 20 30 29 20 7b 0a |, X_OK) |== 0) {.|
|00003280| 09 09 09 09 09 69 66 28 | 73 74 72 63 6d 70 28 64 |.....if(|strcmp(d|
|00003290| 69 72 2c 20 22 2e 22 29 | 20 3d 3d 20 30 20 26 26 |ir, ".")| == 0 &&|
|000032a0| 0a 09 09 09 09 09 20 28 | 64 69 72 20 3d 20 67 65 |...... (|dir = ge|
|000032b0| 74 77 64 28 64 69 72 62 | 75 66 29 29 20 3d 3d 20 |twd(dirb|uf)) == |
|000032c0| 4e 55 4c 4c 29 0a 09 09 | 09 09 09 09 72 65 74 75 |NULL)...|....retu|
|000032d0| 72 6e 28 30 29 3b 0a 09 | 09 09 09 09 62 72 65 61 |rn(0);..|....brea|
|000032e0| 6b 3b 0a 09 09 09 09 7d | 0a 09 09 09 7d 0a 09 09 |k;.....}|....}...|
|000032f0| 7d 0a 09 7d 0a 09 73 74 | 72 63 70 79 28 75 63 62 |}..}..st|rcpy(ucb|
|00003300| 70 61 74 68 2c 20 64 69 | 72 29 3b 0a 09 73 74 72 |path, di|r);..str|
|00003310| 63 70 79 28 75 63 62 6c | 69 62 2c 20 64 69 72 29 |cpy(ucbl|ib, dir)|
|00003320| 3b 0a 09 69 66 28 28 6c | 65 6e 20 3d 20 73 74 72 |;..if((l|en = str|
|00003330| 6c 65 6e 28 64 69 72 29 | 29 20 3c 20 4c 49 42 4c |len(dir)|) < LIBL|
|00003340| 45 4e 20 7c 7c 20 73 74 | 72 63 6d 70 28 26 64 69 |EN || st|rcmp(&di|
|00003350| 72 5b 6c 65 6e 20 2d 20 | 4c 49 42 4c 45 4e 5d 2c |r[len - |LIBLEN],|
|00003360| 20 6c 69 62 29 0a 09 20 | 21 3d 20 30 29 0a 09 09 | lib).. |!= 0)...|
|00003370| 73 74 72 63 61 74 28 75 | 63 62 6c 69 62 2c 20 6c |strcat(u|cblib, l|
|00003380| 69 62 29 3b 0a 09 65 6c | 73 65 0a 09 09 75 63 62 |ib);..el|se...ucb|
|00003390| 70 61 74 68 5b 6c 65 6e | 20 2d 20 4c 49 42 4c 45 |path[len| - LIBLE|
|000033a0| 4e 5d 20 3d 20 30 3b 0a | 09 75 63 62 61 6c 74 65 |N] = 0;.|.ucbalte|
|000033b0| 72 6e 61 74 65 20 3d 20 | 28 73 74 72 63 6d 70 28 |rnate = |(strcmp(|
|000033c0| 75 63 62 70 61 74 68 2c | 20 55 43 42 53 54 41 4e |ucbpath,| UCBSTAN|
|000033d0| 44 41 52 44 29 20 21 3d | 20 30 29 3b 0a 23 69 66 |DARD) !=| 0);.#if|
|000033e0| 64 65 66 20 45 42 55 47 | 0a 09 66 70 72 69 6e 74 |def EBUG|..fprint|
|000033f0| 66 28 73 74 64 65 72 72 | 2c 20 22 75 63 62 77 68 |f(stderr|, "ucbwh|
|00003400| 69 63 68 3a 20 61 6c 74 | 3d 25 64 20 70 61 74 68 |ich: alt|=%d path|
|00003410| 3d 25 73 20 6c 69 62 3d | 25 73 5c 6e 22 2c 20 75 |=%s lib=|%s\n", u|
|00003420| 63 62 61 6c 74 65 72 6e | 61 74 65 2c 0a 09 20 75 |cbaltern|ate,.. u|
|00003430| 63 62 70 61 74 68 2c 20 | 75 63 62 6c 69 62 29 3b |cbpath, |ucblib);|
|00003440| 0a 23 65 6e 64 69 66 20 | 45 42 55 47 0a 09 72 65 |.#endif |EBUG..re|
|00003450| 74 75 72 6e 28 75 63 62 | 61 6c 74 65 72 6e 61 74 |turn(ucb|alternat|
|00003460| 65 29 3b 0a 7d 0a 52 41 | 5a 5a 4c 45 21 44 41 5a |e);.}.RA|ZZLE!DAZ|
|00003470| 5a 4c 45 0a 66 69 09 23 | 20 45 6e 64 20 75 63 62 |ZLE.fi.#| End ucb|
|00003480| 77 68 69 63 68 2e 63 0a | 69 66 20 74 65 73 74 20 |which.c.|if test |
|00003490| 2d 66 20 70 72 65 70 66 | 69 78 2e 63 0a 74 68 65 |-f prepf|ix.c.the|
|000034a0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|000034b0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 77 72 69 74 65 |ll not o|verwrite|
|000034c0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|000034d0| 27 70 72 65 70 66 69 78 | 2e 63 27 22 0a 65 6c 73 |'prepfix|.c'".els|
|000034e0| 65 0a 65 63 68 6f 20 27 | 78 20 2d 20 70 72 65 70 |e.echo '|x - prep|
|000034f0| 66 69 78 2e 63 27 0a 63 | 61 74 20 3c 3c 20 5c 52 |fix.c'.c|at << \R|
|00003500| 41 5a 5a 4c 45 21 44 41 | 5a 5a 4c 45 20 3e 20 70 |AZZLE!DA|ZZLE > p|
|00003510| 72 65 70 66 69 78 2e 63 | 0a 2f 2a 0a 20 2a 20 43 |repfix.c|./*. * C|
|00003520| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 31 39 38 |opyright| (c) 198|
|00003530| 38 2c 20 54 68 65 20 54 | 72 75 73 74 65 65 73 20 |8, The T|rustees |
|00003540| 6f 66 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |of the U|niversit|
|00003550| 79 20 6f 66 20 43 61 6c | 69 66 6f 72 6e 69 61 2e |y of Cal|ifornia.|
|00003560| 0a 20 2a 20 45 64 77 61 | 72 64 20 4d 6f 79 2c 20 |. * Edwa|rd Moy, |
|00003570| 57 6f 72 6b 73 74 61 74 | 69 6f 6e 20 53 6f 66 74 |Workstat|ion Soft|
|00003580| 77 61 72 65 20 53 75 70 | 70 6f 72 74 20 47 72 6f |ware Sup|port Gro|
|00003590| 75 70 2c 20 57 6f 72 6b | 73 74 61 74 69 6f 6e 20 |up, Work|station |
|000035a0| 53 75 70 70 6f 72 74 20 | 53 65 72 69 63 65 73 2c |Support |Serices,|
|000035b0| 0a 20 2a 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |. * Info|rmation |
|000035c0| 53 79 73 74 65 6d 73 20 | 61 6e 64 20 54 65 63 68 |Systems |and Tech|
|000035d0| 6e 6f 6c 6f 67 79 2e 0a | 20 2a 0a 20 2a 20 50 65 |nology..| *. * Pe|
|000035e0| 72 6d 69 73 73 69 6f 6e | 20 69 73 20 67 72 61 6e |rmission| is gran|
|000035f0| 74 65 64 20 74 6f 20 61 | 6e 79 20 69 6e 64 69 76 |ted to a|ny indiv|
|00003600| 69 64 75 61 6c 20 6f 72 | 20 69 6e 73 74 69 74 75 |idual or| institu|
|00003610| 74 69 6f 6e 20 74 6f 20 | 75 73 65 2c 20 63 6f 70 |tion to |use, cop|
|00003620| 79 2c 0a 20 2a 20 6f 72 | 20 72 65 64 69 73 74 72 |y,. * or| redistr|
|00003630| 69 62 75 74 65 20 74 68 | 69 73 20 73 6f 66 74 77 |ibute th|is softw|
|00003640| 61 72 65 20 73 6f 20 6c | 6f 6e 67 20 61 73 20 69 |are so l|ong as i|
|00003650| 74 20 69 73 20 6e 6f 74 | 20 73 6f 6c 64 20 66 6f |t is not| sold fo|
|00003660| 72 20 70 72 6f 66 69 74 | 2c 0a 20 2a 20 70 72 6f |r profit|,. * pro|
|00003670| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 69 73 20 |vided th|at this |
|00003680| 6e 6f 74 69 63 65 20 61 | 6e 64 20 74 68 65 20 6f |notice a|nd the o|
|00003690| 72 69 67 69 6e 61 6c 20 | 63 6f 70 79 72 69 67 68 |riginal |copyrigh|
|000036a0| 74 20 6e 6f 74 69 63 65 | 73 20 61 72 65 0a 20 2a |t notice|s are. *|
|000036b0| 20 72 65 74 61 69 6e 65 | 64 2e 20 20 54 68 65 20 | retaine|d. The |
|000036c0| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 43 61 |Universi|ty of Ca|
|000036d0| 6c 69 66 6f 72 6e 69 61 | 20 6d 61 6b 65 73 20 6e |lifornia| makes n|
|000036e0| 6f 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |o repres|entation|
|000036f0| 73 20 61 62 6f 75 74 20 | 74 68 65 0a 20 2a 20 73 |s about |the. * s|
|00003700| 75 69 74 61 62 69 6c 69 | 74 79 20 6f 66 20 74 68 |uitabili|ty of th|
|00003710| 69 73 20 73 6f 66 74 77 | 61 72 65 20 66 6f 72 20 |is softw|are for |
|00003720| 61 6e 79 20 70 75 72 70 | 6f 73 65 2e 20 20 49 74 |any purp|ose. It|
|00003730| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 22 61 73 | is prov|ided "as|
|00003740| 20 69 73 22 0a 20 2a 20 | 77 69 74 68 6f 75 74 20 | is". * |without |
|00003750| 65 78 70 72 65 73 73 20 | 6f 72 20 69 6d 70 6c 69 |express |or impli|
|00003760| 65 64 20 77 61 72 72 61 | 6e 74 79 2e 0a 20 2a 2f |ed warra|nty.. */|
|00003770| 0a 0a 23 69 66 6e 64 65 | 66 20 6c 69 6e 74 0a 73 |..#ifnde|f lint.s|
|00003780| 74 61 74 69 63 20 63 68 | 61 72 20 2a 53 43 43 53 |tatic ch|ar *SCCS|
|00003790| 69 64 20 3d 20 22 40 28 | 23 29 70 72 65 70 66 69 |id = "@(|#)prepfi|
|000037a0| 78 2e 63 09 31 2e 31 20 | 39 2f 31 39 2f 38 38 22 |x.c.1.1 |9/19/88"|
|000037b0| 3b 0a 23 65 6e 64 69 66 | 20 6c 69 6e 74 0a 0a 23 |;.#endif| lint..#|
|000037c0| 69 6e 63 6c 75 64 65 20 | 3c 63 74 79 70 65 2e 68 |include |<ctype.h|
|000037d0| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |>.#inclu|de <stdi|
|000037e0| 6f 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |o.h>.#in|clude <s|
|000037f0| 74 72 69 6e 67 73 2e 68 | 3e 0a 0a 23 64 65 66 69 |trings.h|>..#defi|
|00003800| 6e 65 20 42 49 47 42 55 | 46 53 49 5a 45 09 31 30 |ne BIGBU|FSIZE.10|
|00003810| 32 34 30 0a 23 64 65 66 | 69 6e 65 09 43 4c 45 41 |240.#def|ine.CLEA|
|00003820| 52 54 4f 4d 41 52 4b 09 | 31 32 0a 23 64 65 66 69 |RTOMARK.|12.#defi|
|00003830| 6e 65 20 45 45 58 45 43 | 4c 45 4e 09 38 30 0a 23 |ne EEXEC|LEN.80.#|
|00003840| 64 65 66 69 6e 65 20 45 | 58 54 52 41 09 09 28 4e |define E|XTRA..(N|
|00003850| 5a 45 52 4f 4c 49 4e 45 | 20 2a 20 5a 45 52 4f 4c |ZEROLINE| * ZEROL|
|00003860| 49 4e 45 20 2b 20 43 4c | 45 41 52 54 4f 4d 41 52 |INE + CL|EARTOMAR|
|00003870| 4b 29 0a 23 64 65 66 69 | 6e 65 20 4c 49 4e 45 4c |K).#defi|ne LINEL|
|00003880| 45 4e 09 09 32 35 36 0a | 23 64 65 66 69 6e 65 09 |EN..256.|#define.|
|00003890| 4e 50 52 4f 44 55 43 54 | 09 31 36 0a 23 64 65 66 |NPRODUCT|.16.#def|
|000038a0| 69 6e 65 20 4e 5a 45 52 | 4f 4c 49 4e 45 09 37 0a |ine NZER|OLINE.7.|
|000038b0| 23 64 65 66 69 6e 65 09 | 50 52 4f 44 55 43 54 4c |#define.|PRODUCTL|
|000038c0| 45 4e 09 36 34 0a 23 64 | 65 66 69 6e 65 20 5a 45 |EN.64.#d|efine ZE|
|000038d0| 52 4f 4c 49 4e 45 09 36 | 35 0a 0a 63 68 61 72 20 |ROLINE.6|5..char |
|000038e0| 2a 46 67 65 74 73 28 29 | 3b 0a 63 68 61 72 20 2a |*Fgets()|;.char *|
|000038f0| 6d 61 74 63 68 28 29 3b | 0a 63 68 61 72 20 2a 6d |match();|.char *m|
|00003900| 79 6e 61 6d 65 3b 0a 63 | 68 61 72 20 6c 70 72 6f |yname;.c|har lpro|
|00003910| 64 75 63 74 5b 50 52 4f | 44 55 43 54 4c 45 4e 5d |duct[PRO|DUCTLEN]|
|00003920| 5b 4e 50 52 4f 44 55 43 | 54 5d 3b 0a 63 68 61 72 |[NPRODUC|T];.char|
|00003930| 20 70 70 72 6f 64 75 63 | 74 5b 50 52 4f 44 55 43 | pproduc|t[PRODUC|
|00003940| 54 4c 45 4e 5d 5b 4e 50 | 52 4f 44 55 43 54 5d 3b |TLEN][NP|RODUCT];|
|00003950| 0a 63 68 61 72 20 74 65 | 6d 70 6e 61 6d 65 5b 5d |.char te|mpname[]|
|00003960| 20 3d 20 22 2f 74 6d 70 | 2f 70 72 65 70 66 69 78 | = "/tmp|/prepfix|
|00003970| 58 58 58 58 58 58 22 3b | 0a 0a 6d 61 69 6e 28 61 |XXXXXX";|..main(a|
|00003980| 72 67 63 2c 20 61 72 67 | 76 29 0a 69 6e 74 20 61 |rgc, arg|v).int a|
|00003990| 72 67 63 3b 0a 63 68 61 | 72 20 2a 2a 61 72 67 76 |rgc;.cha|r **argv|
|000039a0| 3b 0a 7b 0a 09 72 65 67 | 69 73 74 65 72 20 46 49 |;.{..reg|ister FI|
|000039b0| 4c 45 20 2a 74 70 3b 0a | 09 72 65 67 69 73 74 65 |LE *tp;.|.registe|
|000039c0| 72 20 69 6e 74 20 69 2c | 20 6e 6c 2c 20 6e 70 3b |r int i,| nl, np;|
|000039d0| 0a 09 72 65 67 69 73 74 | 65 72 20 63 68 61 72 20 |..regist|er char |
|000039e0| 2a 6c 70 2c 20 2a 70 70 | 3b 0a 09 63 68 61 72 20 |*lp, *pp|;..char |
|000039f0| 62 75 66 5b 42 49 47 42 | 55 46 53 49 5a 45 5d 3b |buf[BIGB|UFSIZE];|
|00003a00| 0a 0a 09 69 66 28 6d 79 | 6e 61 6d 65 20 3d 20 72 |...if(my|name = r|
|00003a10| 69 6e 64 65 78 28 2a 61 | 72 67 76 2c 20 27 2f 27 |index(*a|rgv, '/'|
|00003a20| 29 29 0a 09 09 6d 79 6e | 61 6d 65 2b 2b 3b 0a 09 |))...myn|ame++;..|
|00003a30| 65 6c 73 65 0a 09 09 6d | 79 6e 61 6d 65 20 3d 20 |else...m|yname = |
|00003a40| 2a 61 72 67 76 3b 0a 09 | 6e 6c 20 3d 20 6e 70 20 |*argv;..|nl = np |
|00003a50| 3d 20 30 3b 0a 09 66 6f | 72 28 61 72 67 63 2d 2d |= 0;..fo|r(argc--|
|00003a60| 2c 20 61 72 67 76 2b 2b | 20 3b 20 61 72 67 63 20 |, argv++| ; argc |
|00003a70| 3e 20 30 20 26 26 20 2a | 2a 61 72 67 76 20 3d 3d |> 0 && *|*argv ==|
|00003a80| 20 27 2d 27 20 3b 20 61 | 72 67 63 2d 2d 2c 20 61 | '-' ; a|rgc--, a|
|00003a90| 72 67 76 2b 2b 29 20 7b | 0a 09 09 73 77 69 74 63 |rgv++) {|...switc|
|00003aa0| 68 28 28 2a 61 72 67 76 | 29 5b 31 5d 29 20 7b 0a |h((*argv|)[1]) {.|
|00003ab0| 09 09 20 63 61 73 65 20 | 27 68 27 3a 0a 09 09 09 |.. case |'h':....|
|00003ac0| 75 73 61 67 65 28 29 3b | 0a 09 09 20 63 61 73 65 |usage();|... case|
|00003ad0| 20 27 6c 27 3a 0a 09 09 | 09 69 66 28 6e 6c 20 3e | 'l':...|.if(nl >|
|00003ae0| 3d 20 4e 50 52 4f 44 55 | 43 54 20 2d 20 31 29 20 |= NPRODU|CT - 1) |
|00003af0| 7b 0a 09 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |{.....fp|rintf(st|
|00003b00| 64 65 72 72 2c 0a 09 09 | 09 09 20 22 25 73 3a 20 |derr,...|.. "%s: |
|00003b10| 54 6f 6f 20 6d 61 6e 79 | 20 4c 57 2d 6c 69 6b 65 |Too many| LW-like|
|00003b20| 20 70 72 6f 64 75 63 74 | 20 6e 61 6d 65 73 5c 6e | product| names\n|
|00003b30| 22 2c 0a 09 09 09 09 20 | 6d 79 6e 61 6d 65 29 3b |",..... |myname);|
|00003b40| 0a 09 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |.....exi|t(1);...|
|00003b50| 09 7d 0a 09 09 09 69 66 | 28 28 2a 61 72 67 76 29 |.}....if|((*argv)|
|00003b60| 5b 32 5d 29 0a 09 09 09 | 09 6c 70 20 3d 20 26 28 |[2])....|.lp = &(|
|00003b70| 2a 61 72 67 76 29 5b 32 | 5d 3b 0a 09 09 09 65 6c |*argv)[2|];....el|
|00003b80| 73 65 20 7b 0a 09 09 09 | 09 69 66 28 61 72 67 63 |se {....|.if(argc|
|00003b90| 20 3c 20 32 29 20 7b 0a | 09 09 09 09 09 66 70 72 | < 2) {.|.....fpr|
|00003ba0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 0a 09 09 09 |intf(std|err,....|
|00003bb0| 09 09 20 22 25 73 3a 20 | 4e 6f 20 61 72 67 75 6d |.. "%s: |No argum|
|00003bc0| 65 6e 74 20 66 6f 72 20 | 2d 6c 5c 6e 22 2c 20 6d |ent for |-l\n", m|
|00003bd0| 79 6e 61 6d 65 29 3b 0a | 09 09 09 09 09 65 78 69 |yname);.|.....exi|
|00003be0| 74 28 31 29 3b 0a 09 09 | 09 09 7d 0a 09 09 09 09 |t(1);...|..}.....|
|00003bf0| 61 72 67 63 2d 2d 3b 0a | 09 09 09 09 61 72 67 76 |argc--;.|....argv|
|00003c00| 2b 2b 3b 0a 09 09 09 09 | 6c 70 20 3d 20 2a 61 72 |++;.....|lp = *ar|
|00003c10| 67 76 3b 0a 09 09 09 7d | 0a 09 09 09 73 74 72 6e |gv;....}|....strn|
|00003c20| 63 70 79 28 6c 70 72 6f | 64 75 63 74 5b 6e 6c 5d |cpy(lpro|duct[nl]|
|00003c30| 2c 20 6c 70 2c 20 50 52 | 4f 44 55 43 54 4c 45 4e |, lp, PR|ODUCTLEN|
|00003c40| 20 2d 20 31 29 3b 0a 09 | 09 09 6c 70 72 6f 64 75 | - 1);..|..lprodu|
|00003c50| 63 74 5b 6e 6c 2b 2b 5d | 5b 50 52 4f 44 55 43 54 |ct[nl++]|[PRODUCT|
|00003c60| 4c 45 4e 20 2d 20 31 5d | 20 3d 20 30 3b 0a 09 09 |LEN - 1]| = 0;...|
|00003c70| 09 62 72 65 61 6b 3b 0a | 09 09 20 63 61 73 65 20 |.break;.|.. case |
|00003c80| 27 70 27 3a 0a 09 09 09 | 69 66 28 6e 70 20 3e 3d |'p':....|if(np >=|
|00003c90| 20 4e 50 52 4f 44 55 43 | 54 20 2d 20 31 29 20 7b | NPRODUC|T - 1) {|
|00003ca0| 0a 09 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |.....fpr|intf(std|
|00003cb0| 65 72 72 2c 0a 09 09 09 | 09 20 22 25 73 3a 20 54 |err,....|. "%s: T|
|00003cc0| 6f 6f 20 6d 61 6e 79 20 | 4c 57 2b 2d 6c 69 6b 65 |oo many |LW+-like|
|00003cd0| 20 70 72 6f 64 75 63 74 | 20 6e 61 6d 65 73 5c 6e | product| names\n|
|00003ce0| 22 2c 0a 09 09 09 09 20 | 6d 79 6e 61 6d 65 29 3b |",..... |myname);|
|00003cf0| 0a 09 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |.....exi|t(1);...|
|00003d00| 09 7d 0a 09 09 09 69 66 | 28 28 2a 61 72 67 76 29 |.}....if|((*argv)|
|00003d10| 5b 32 5d 29 0a 09 09 09 | 09 70 70 20 3d 20 26 28 |[2])....|.pp = &(|
|00003d20| 2a 61 72 67 76 29 5b 32 | 5d 3b 0a 09 09 09 65 6c |*argv)[2|];....el|
|00003d30| 73 65 20 7b 0a 09 09 09 | 09 69 66 28 61 72 67 63 |se {....|.if(argc|
|00003d40| 20 3c 20 32 29 20 7b 0a | 09 09 09 09 09 66 70 72 | < 2) {.|.....fpr|
|00003d50| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 0a 09 09 09 |intf(std|err,....|
|00003d60| 09 09 20 22 25 73 3a 20 | 4e 6f 20 61 72 67 75 6d |.. "%s: |No argum|
|00003d70| 65 6e 74 20 66 6f 72 20 | 2d 70 5c 6e 22 2c 20 6d |ent for |-p\n", m|
|00003d80| 79 6e 61 6d 65 29 3b 0a | 09 09 09 09 09 65 78 69 |yname);.|.....exi|
|00003d90| 74 28 31 29 3b 0a 09 09 | 09 09 7d 0a 09 09 09 09 |t(1);...|..}.....|
|00003da0| 61 72 67 63 2d 2d 3b 0a | 09 09 09 09 61 72 67 76 |argc--;.|....argv|
|00003db0| 2b 2b 3b 0a 09 09 09 09 | 70 70 20 3d 20 2a 61 72 |++;.....|pp = *ar|
|00003dc0| 67 76 3b 0a 09 09 09 7d | 0a 09 09 09 73 74 72 6e |gv;....}|....strn|
|00003dd0| 63 70 79 28 70 70 72 6f | 64 75 63 74 5b 6e 70 5d |cpy(ppro|duct[np]|
|00003de0| 2c 20 70 70 2c 20 50 52 | 4f 44 55 43 54 4c 45 4e |, pp, PR|ODUCTLEN|
|00003df0| 20 2d 20 31 29 3b 0a 09 | 09 09 70 70 72 6f 64 75 | - 1);..|..pprodu|
|00003e00| 63 74 5b 6e 70 2b 2b 5d | 5b 50 52 4f 44 55 43 54 |ct[np++]|[PRODUCT|
|00003e10| 4c 45 4e 20 2d 20 31 5d | 20 3d 20 30 3b 0a 09 09 |LEN - 1]| = 0;...|
|00003e20| 09 62 72 65 61 6b 3b 0a | 09 09 7d 0a 09 7d 0a 09 |.break;.|..}..}..|
|00003e30| 69 66 28 61 72 67 63 20 | 3e 20 31 29 0a 09 09 75 |if(argc |> 1)...u|
|00003e40| 73 61 67 65 28 29 3b 0a | 09 69 66 28 61 72 67 63 |sage();.|.if(argc|
|00003e50| 20 3e 20 30 20 26 26 20 | 66 72 65 6f 70 65 6e 28 | > 0 && |freopen(|
|00003e60| 2a 61 72 67 76 2c 20 22 | 72 22 2c 20 73 74 64 69 |*argv, "|r", stdi|
|00003e70| 6e 29 20 3d 3d 20 4e 55 | 4c 4c 29 20 7b 0a 09 09 |n) == NU|LL) {...|
|00003e80| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00003e90| 22 25 73 3a 20 63 61 6e | 27 74 20 6f 70 65 6e 20 |"%s: can|'t open |
|00003ea0| 25 73 5c 6e 22 2c 20 6d | 79 6e 61 6d 65 2c 20 2a |%s\n", m|yname, *|
|00003eb0| 61 72 67 76 29 3b 0a 09 | 09 65 78 69 74 28 31 29 |argv);..|.exit(1)|
|00003ec0| 3b 0a 09 7d 0a 09 6d 6b | 74 65 6d 70 28 74 65 6d |;..}..mk|temp(tem|
|00003ed0| 70 6e 61 6d 65 29 3b 0a | 09 69 66 28 28 74 70 20 |pname);.|.if((tp |
|00003ee0| 3d 20 66 6f 70 65 6e 28 | 74 65 6d 70 6e 61 6d 65 |= fopen(|tempname|
|00003ef0| 2c 20 22 77 2b 22 29 29 | 20 3d 3d 20 4e 55 4c 4c |, "w+"))| == NULL|
|00003f00| 29 20 7b 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |) {...fp|rintf(st|
|00003f10| 64 65 72 72 2c 20 22 25 | 73 3a 20 63 61 6e 27 74 |derr, "%|s: can't|
|00003f20| 20 63 72 65 61 74 65 20 | 74 65 6d 70 20 66 69 6c | create |temp fil|
|00003f30| 65 20 25 73 5c 6e 22 2c | 0a 09 09 20 6d 79 6e 61 |e %s\n",|... myna|
|00003f40| 6d 65 2c 20 74 65 6d 70 | 6e 61 6d 65 29 3b 0a 09 |me, temp|name);..|
|00003f50| 09 65 78 69 74 28 31 29 | 3b 0a 09 7d 0a 09 75 6e |.exit(1)|;..}..un|
|00003f60| 6c 69 6e 6b 28 74 65 6d | 70 6e 61 6d 65 29 3b 0a |link(tem|pname);.|
|00003f70| 09 69 66 28 46 67 65 74 | 73 28 62 75 66 2c 20 42 |.if(Fget|s(buf, B|
|00003f80| 49 47 42 55 46 53 49 5a | 45 2c 20 73 74 64 69 6e |IGBUFSIZ|E, stdin|
|00003f90| 29 20 3d 3d 20 4e 55 4c | 4c 29 20 7b 0a 09 09 66 |) == NUL|L) {...f|
|00003fa0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00003fb0| 25 73 3a 20 4e 75 6c 6c | 20 69 6e 70 75 74 5c 6e |%s: Null| input\n|
|00003fc0| 22 2c 20 6d 79 6e 61 6d | 65 29 3b 0a 09 09 65 78 |", mynam|e);...ex|
|00003fd0| 69 74 28 31 29 3b 0a 09 | 7d 0a 09 66 6f 72 28 20 |it(1);..|}..for( |
|00003fe0| 3b 20 3b 20 29 20 7b 0a | 09 09 69 66 28 73 74 72 |; ; ) {.|..if(str|
|00003ff0| 6e 63 6d 70 28 62 75 66 | 2c 20 22 25 20 5c 32 35 |ncmp(buf|, "% \25|
|00004000| 31 22 2c 20 33 29 20 3d | 3d 20 30 29 20 7b 0a 09 |1", 3) =|= 0) {..|
|00004010| 09 09 66 70 75 74 73 28 | 22 25 20 22 2c 20 74 70 |..fputs(|"% ", tp|
|00004020| 29 3b 0a 09 09 09 62 75 | 66 5b 30 5d 20 3d 20 27 |);....bu|f[0] = '|
|00004030| 28 27 3b 0a 09 09 09 62 | 75 66 5b 31 5d 20 3d 20 |(';....b|uf[1] = |
|00004040| 27 43 27 3b 0a 09 09 09 | 62 75 66 5b 32 5d 20 3d |'C';....|buf[2] =|
|00004050| 20 27 29 27 3b 0a 09 09 | 7d 20 65 6c 73 65 20 69 | ')';...|} else i|
|00004060| 66 28 73 74 72 6e 63 6d | 70 28 62 75 66 2c 20 22 |f(strncm|p(buf, "|
|00004070| 25 25 42 65 67 69 6e 50 | 72 6f 63 53 65 74 3a 22 |%%BeginP|rocSet:"|
|00004080| 2c 20 31 35 29 20 3d 3d | 20 30 29 20 7b 0a 09 09 |, 15) ==| 0) {...|
|00004090| 09 46 70 75 74 73 28 62 | 75 66 2c 20 73 74 64 6f |.Fputs(b|uf, stdo|
|000040a0| 75 74 29 3b 0a 09 09 09 | 66 73 65 65 6b 28 74 70 |ut);....|fseek(tp|
|000040b0| 2c 20 30 4c 2c 20 30 29 | 3b 0a 09 09 09 77 68 69 |, 0L, 0)|;....whi|
|000040c0| 6c 65 28 28 69 20 3d 20 | 66 72 65 61 64 28 62 75 |le((i = |fread(bu|
|000040d0| 66 2c 20 31 2c 20 42 49 | 47 42 55 46 53 49 5a 45 |f, 1, BI|GBUFSIZE|
|000040e0| 2c 20 74 70 29 29 20 3e | 20 30 29 0a 09 09 09 09 |, tp)) >| 0).....|
|000040f0| 66 77 72 69 74 65 28 62 | 75 66 2c 20 31 2c 20 69 |fwrite(b|uf, 1, i|
|00004100| 2c 20 73 74 64 6f 75 74 | 29 3b 0a 09 09 09 66 63 |, stdout|);....fc|
|00004110| 6c 6f 73 65 28 74 70 29 | 3b 0a 09 09 09 62 72 65 |lose(tp)|;....bre|
|00004120| 61 6b 3b 0a 09 09 7d 0a | 09 09 46 70 75 74 73 28 |ak;...}.|..Fputs(|
|00004130| 62 75 66 2c 20 74 70 29 | 3b 0a 09 09 69 66 28 46 |buf, tp)|;...if(F|
|00004140| 67 65 74 73 28 62 75 66 | 2c 20 42 49 47 42 55 46 |gets(buf|, BIGBUF|
|00004150| 53 49 5a 45 2c 20 73 74 | 64 69 6e 29 20 3d 3d 20 |SIZE, st|din) == |
|00004160| 4e 55 4c 4c 29 20 7b 0a | 09 09 09 66 70 72 69 6e |NULL) {.|...fprin|
|00004170| 74 66 28 73 74 64 65 72 | 72 2c 20 22 25 73 3a 20 |tf(stder|r, "%s: |
|00004180| 4e 6f 20 42 65 67 69 6e | 50 72 6f 63 53 65 74 5c |No Begin|ProcSet\|
|00004190| 6e 22 2c 0a 09 09 09 20 | 6d 79 6e 61 6d 65 29 3b |n",.... |myname);|
|000041a0| 0a 09 09 09 65 78 69 74 | 28 31 29 3b 0a 09 09 7d |....exit|(1);...}|
|000041b0| 0a 09 7d 0a 09 77 68 69 | 6c 65 28 46 67 65 74 73 |..}..whi|le(Fgets|
|000041c0| 28 62 75 66 2c 20 42 49 | 47 42 55 46 53 49 5a 45 |(buf, BI|GBUFSIZE|
|000041d0| 2c 20 73 74 64 69 6e 29 | 29 20 7b 0a 09 09 69 66 |, stdin)|) {...if|
|000041e0| 28 28 6e 6c 20 7c 7c 20 | 6e 70 29 20 26 26 20 73 |((nl || |np) && s|
|000041f0| 74 72 6e 63 6d 70 28 62 | 75 66 2c 20 22 2f 4c 57 |trncmp(b|uf, "/LW|
|00004200| 7b 22 2c 20 34 29 20 3d | 3d 20 30 29 20 7b 0a 09 |{", 4) =|= 0) {..|
|00004210| 09 09 46 70 75 74 73 28 | 62 75 66 2c 20 73 74 64 |..Fputs(|buf, std|
|00004220| 6f 75 74 29 3b 0a 09 09 | 09 69 66 28 21 46 67 65 |out);...|.if(!Fge|
|00004230| 74 73 28 62 75 66 2c 20 | 42 49 47 42 55 46 53 49 |ts(buf, |BIGBUFSI|
|00004240| 5a 45 2c 20 73 74 64 69 | 6e 29 29 20 7b 0a 09 09 |ZE, stdi|n)) {...|
|00004250| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00004260| 2c 0a 09 09 09 20 22 25 | 73 3a 20 55 6e 65 78 70 |,.... "%|s: Unexp|
|00004270| 65 63 74 65 64 20 45 4f | 46 20 77 68 69 6c 65 20 |ected EO|F while |
|00004280| 61 64 64 69 6e 67 20 70 | 72 6f 64 75 63 74 20 6e |adding p|roduct n|
|00004290| 61 6d 65 73 5c 6e 22 2c | 0a 09 09 09 09 20 6d 79 |ames\n",|..... my|
|000042a0| 6e 61 6d 65 29 3b 0a 09 | 09 09 09 65 78 69 74 28 |name);..|...exit(|
|000042b0| 31 29 3b 0a 09 09 09 7d | 0a 09 09 09 46 70 75 74 |1);....}|....Fput|
|000042c0| 73 28 62 75 66 2c 20 73 | 74 64 6f 75 74 29 3b 0a |s(buf, s|tdout);.|
|000042d0| 09 09 09 66 6f 72 28 69 | 20 3d 20 30 20 3b 20 69 |...for(i| = 0 ; i|
|000042e0| 20 3c 20 6e 6c 20 3b 20 | 69 2b 2b 29 0a 09 09 09 | < nl ; |i++)....|
|000042f0| 09 70 72 69 6e 74 66 28 | 22 4c 57 20 30 20 65 71 |.printf(|"LW 0 eq|
|00004300| 20 7b 2f 4c 57 7b 73 61 | 76 65 20 73 74 61 74 75 | {/LW{sa|ve statu|
|00004310| 73 64 69 63 74 2f 70 72 | 6f 64 75 63 74 20 67 65 |sdict/pr|oduct ge|
|00004320| 74 28 25 73 29 61 6e 63 | 68 6f 72 73 65 61 72 63 |t(%s)anc|horsearc|
|00004330| 68 20 65 78 63 68 20 70 | 6f 70 20 7b 70 6f 70 20 |h exch p|op {pop |
|00004340| 31 7d 7b 30 7d 69 66 65 | 6c 73 65 20 65 78 63 68 |1}{0}ife|lse exch|
|00004350| 20 72 65 73 74 6f 72 65 | 7d 62 69 6e 64 20 64 65 | restore|}bind de|
|00004360| 66 7d 69 66 5c 6e 22 2c | 0a 09 09 09 09 20 6c 70 |f}if\n",|..... lp|
|00004370| 72 6f 64 75 63 74 5b 69 | 5d 29 3b 0a 09 09 09 66 |roduct[i|]);....f|
|00004380| 6f 72 28 69 20 3d 20 30 | 20 3b 20 69 20 3c 20 6e |or(i = 0| ; i < n|
|00004390| 70 20 3b 20 69 2b 2b 29 | 0a 09 09 09 09 70 72 69 |p ; i++)|.....pri|
|000043a0| 6e 74 66 28 22 4c 57 20 | 30 20 65 71 20 7b 2f 4c |ntf("LW |0 eq {/L|
|000043b0| 57 7b 73 61 76 65 20 73 | 74 61 74 75 73 64 69 63 |W{save s|tatusdic|
|000043c0| 74 2f 70 72 6f 64 75 63 | 74 20 67 65 74 28 25 73 |t/produc|t get(%s|
|000043d0| 29 61 6e 63 68 6f 72 73 | 65 61 72 63 68 20 65 78 |)anchors|earch ex|
|000043e0| 63 68 20 70 6f 70 20 7b | 70 6f 70 20 32 7d 7b 30 |ch pop {|pop 2}{0|
|000043f0| 7d 69 66 65 6c 73 65 20 | 65 78 63 68 20 72 65 73 |}ifelse |exch res|
|00004400| 74 6f 72 65 7d 62 69 6e | 64 20 64 65 66 7d 69 66 |tore}bin|d def}if|
|00004410| 5c 6e 22 2c 0a 09 09 09 | 09 20 70 70 72 6f 64 75 |\n",....|. pprodu|
|00004420| 63 74 5b 69 5d 29 3b 0a | 09 09 09 63 6f 6e 74 69 |ct[i]);.|...conti|
|00004430| 6e 75 65 3b 0a 09 09 7d | 20 65 6c 73 65 20 69 66 |nue;...}| else if|
|00004440| 28 6d 61 74 63 68 28 62 | 75 66 2c 20 22 73 65 74 |(match(b|uf, "set|
|00004450| 64 65 66 61 75 6c 74 74 | 69 6d 65 6f 75 74 73 22 |defaultt|imeouts"|
|00004460| 29 0a 09 09 20 7c 7c 20 | 6d 61 74 63 68 28 62 75 |)... || |match(bu|
|00004470| 66 2c 20 22 73 65 74 73 | 63 63 69 6e 74 65 72 61 |f, "sets|ccintera|
|00004480| 63 74 69 76 65 22 29 29 | 0a 09 09 09 70 75 74 63 |ctive"))|....putc|
|00004490| 68 61 72 28 27 25 27 29 | 3b 0a 09 09 65 6c 73 65 |har('%')|;...else|
|000044a0| 20 69 66 28 6d 61 74 63 | 68 28 62 75 66 2c 20 22 | if(matc|h(buf, "|
|000044b0| 65 65 78 65 63 22 29 29 | 20 7b 0a 09 09 09 69 66 |eexec"))| {....if|
|000044c0| 28 6d 61 74 63 68 28 62 | 75 66 2c 20 22 2f 73 74 |(match(b|uf, "/st|
|000044d0| 72 65 74 63 68 22 29 29 | 20 7b 0a 09 09 09 09 65 |retch"))| {.....e|
|000044e0| 65 78 65 63 28 22 73 74 | 72 65 74 63 68 22 2c 20 |exec("st|retch", |
|000044f0| 62 75 66 29 3b 0a 09 09 | 09 09 63 6f 6e 74 69 6e |buf);...|..contin|
|00004500| 75 65 3b 0a 09 09 09 7d | 20 65 6c 73 65 20 69 66 |ue;....}| else if|
|00004510| 28 6d 61 74 63 68 28 62 | 75 66 2c 20 22 2f 73 6d |(match(b|uf, "/sm|
|00004520| 6f 6f 74 68 34 22 29 29 | 20 7b 0a 09 09 09 09 65 |ooth4"))| {.....e|
|00004530| 65 78 65 63 28 22 73 6d | 6f 6f 74 68 34 22 2c 20 |exec("sm|ooth4", |
|00004540| 62 75 66 29 3b 0a 09 09 | 09 09 63 6f 6e 74 69 6e |buf);...|..contin|
|00004550| 75 65 3b 0a 09 09 09 7d | 0a 09 09 7d 20 65 6c 73 |ue;....}|...} els|
|00004560| 65 20 69 66 28 73 74 72 | 6e 63 6d 70 28 62 75 66 |e if(str|ncmp(buf|
|00004570| 2c 20 22 25 25 45 6e 64 | 50 72 6f 63 53 65 74 22 |, "%%End|ProcSet"|
|00004580| 2c 20 31 32 29 20 3d 3d | 20 30 29 20 7b 0a 09 09 |, 12) ==| 0) {...|
|00004590| 09 46 70 75 74 73 28 62 | 75 66 2c 20 73 74 64 6f |.Fputs(b|uf, stdo|
|000045a0| 75 74 29 3b 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |ut);....|break;..|
|000045b0| 09 7d 0a 09 09 46 70 75 | 74 73 28 62 75 66 2c 20 |.}...Fpu|ts(buf, |
|000045c0| 73 74 64 6f 75 74 29 3b | 0a 09 7d 0a 09 65 78 69 |stdout);|..}..exi|
|000045d0| 74 28 30 29 3b 0a 7d 0a | 0a 63 68 61 72 20 2a 6d |t(0);.}.|.char *m|
|000045e0| 61 74 63 68 28 73 74 72 | 31 2c 20 73 74 72 32 29 |atch(str|1, str2)|
|000045f0| 0a 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a |.registe|r char *|
|00004600| 73 74 72 31 2c 20 2a 73 | 74 72 32 3b 0a 7b 0a 09 |str1, *s|tr2;.{..|
|00004610| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 66 69 72 |register| int fir|
|00004620| 73 74 63 68 61 72 20 3d | 20 2a 73 74 72 32 3b 0a |stchar =| *str2;.|
|00004630| 09 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 6c 65 |.registe|r int le|
|00004640| 6e 20 3d 20 73 74 72 6c | 65 6e 28 73 74 72 32 29 |n = strl|en(str2)|
|00004650| 3b 0a 0a 09 77 68 69 6c | 65 28 2a 73 74 72 31 29 |;...whil|e(*str1)|
|00004660| 20 7b 0a 09 09 69 66 28 | 2a 73 74 72 31 20 3d 3d | {...if(|*str1 ==|
|00004670| 20 66 69 72 73 74 63 68 | 61 72 20 26 26 20 73 74 | firstch|ar && st|
|00004680| 72 6e 63 6d 70 28 73 74 | 72 31 2c 20 73 74 72 32 |rncmp(st|r1, str2|
|00004690| 2c 20 6c 65 6e 29 20 3d | 3d 20 30 29 0a 09 09 09 |, len) =|= 0)....|
|000046a0| 72 65 74 75 72 6e 28 73 | 74 72 31 29 3b 0a 09 09 |return(s|tr1);...|
|000046b0| 73 74 72 31 2b 2b 3b 0a | 09 7d 0a 09 72 65 74 75 |str1++;.|.}..retu|
|000046c0| 72 6e 28 4e 55 4c 4c 29 | 3b 0a 7d 0a 0a 65 65 78 |rn(NULL)|;.}..eex|
|000046d0| 65 63 28 6e 61 6d 65 2c | 20 62 75 66 29 0a 63 68 |ec(name,| buf).ch|
|000046e0| 61 72 20 2a 6e 61 6d 65 | 3b 0a 72 65 67 69 73 74 |ar *name|;.regist|
|000046f0| 65 72 20 63 68 61 72 20 | 2a 62 75 66 3b 0a 7b 0a |er char |*buf;.{.|
|00004700| 09 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 6c 65 |.registe|r int le|
|00004710| 6e 3b 0a 09 72 65 67 69 | 73 74 65 72 20 63 68 61 |n;..regi|ster cha|
|00004720| 72 20 2a 62 70 3b 0a 0a | 09 69 66 28 21 46 67 65 |r *bp;..|.if(!Fge|
|00004730| 74 73 28 62 75 66 2c 20 | 42 49 47 42 55 46 53 49 |ts(buf, |BIGBUFSI|
|00004740| 5a 45 2c 20 73 74 64 69 | 6e 29 29 20 7b 0a 09 09 |ZE, stdi|n)) {...|
|00004750| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00004760| 22 25 73 3a 20 45 4f 46 | 20 64 75 72 69 6e 67 20 |"%s: EOF| during |
|00004770| 72 65 61 64 69 6e 67 20 | 65 65 78 65 63 5c 6e 22 |reading |eexec\n"|
|00004780| 2c 20 6d 79 6e 61 6d 65 | 29 3b 0a 09 09 65 78 69 |, myname|);...exi|
|00004790| 74 28 31 29 3b 0a 09 7d | 0a 09 6c 65 6e 20 3d 20 |t(1);..}|..len = |
|000047a0| 73 74 72 6c 65 6e 28 62 | 70 20 3d 20 62 75 66 29 |strlen(b|p = buf)|
|000047b0| 20 2d 20 31 3b 0a 09 70 | 72 69 6e 74 66 28 22 6f | - 1;..p|rintf("o|
|000047c0| 6b 20 75 73 65 72 64 69 | 63 74 2f 25 73 20 6b 6e |k userdi|ct/%s kn|
|000047d0| 6f 77 6e 20 6e 6f 74 20 | 61 6e 64 7b 63 75 72 72 |own not |and{curr|
|000047e0| 65 6e 74 66 69 6c 65 20 | 65 65 78 65 63 7d 7b 25 |entfile |eexec}{%|
|000047f0| 64 7b 63 75 72 72 65 6e | 74 66 69 6c 65 20 72 65 |d{curren|tfile re|
|00004800| 61 64 20 70 6f 70 20 70 | 6f 70 7d 72 65 70 65 61 |ad pop p|op}repea|
|00004810| 74 7d 69 66 65 6c 73 65 | 5c 6e 22 2c 0a 09 20 6e |t}ifelse|\n",.. n|
|00004820| 61 6d 65 2c 20 6c 65 6e | 20 2b 20 28 6c 65 6e 20 |ame, len| + (len |
|00004830| 2f 20 45 45 58 45 43 4c | 45 4e 29 20 2b 20 28 6c |/ EEXECL|EN) + (l|
|00004840| 65 6e 20 25 20 45 45 58 | 45 43 4c 45 4e 20 3f 20 |en % EEX|ECLEN ? |
|00004850| 31 20 3a 20 30 29 20 2b | 20 45 58 54 52 41 29 3b |1 : 0) +| EXTRA);|
|00004860| 0a 09 77 68 69 6c 65 28 | 6c 65 6e 20 3e 3d 20 38 |..while(|len >= 8|
|00004870| 30 29 20 7b 0a 09 09 66 | 77 72 69 74 65 28 62 70 |0) {...f|write(bp|
|00004880| 2c 20 38 30 2c 20 31 2c | 20 73 74 64 6f 75 74 29 |, 80, 1,| stdout)|
|00004890| 3b 0a 09 09 70 75 74 63 | 68 61 72 28 27 5c 6e 27 |;...putc|har('\n'|
|000048a0| 29 3b 0a 09 09 62 70 20 | 2b 3d 20 38 30 3b 0a 09 |);...bp |+= 80;..|
|000048b0| 09 6c 65 6e 20 2d 3d 20 | 38 30 3b 0a 09 7d 0a 09 |.len -= |80;..}..|
|000048c0| 69 66 28 6c 65 6e 20 3e | 20 30 29 20 7b 0a 09 09 |if(len >| 0) {...|
|000048d0| 66 77 72 69 74 65 28 62 | 70 2c 20 6c 65 6e 2c 20 |fwrite(b|p, len, |
|000048e0| 31 2c 20 73 74 64 6f 75 | 74 29 3b 0a 09 09 70 75 |1, stdou|t);...pu|
|000048f0| 74 63 68 61 72 28 27 5c | 6e 27 29 3b 0a 09 7d 0a |tchar('\|n');..}.|
|00004900| 09 66 6f 72 28 20 3b 20 | 3b 20 29 20 7b 0a 09 09 |.for( ; |; ) {...|
|00004910| 69 66 28 46 67 65 74 73 | 28 62 75 66 2c 20 42 49 |if(Fgets|(buf, BI|
|00004920| 47 42 55 46 53 49 5a 45 | 2c 20 73 74 64 69 6e 29 |GBUFSIZE|, stdin)|
|00004930| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0a 09 09 09 66 | == NULL|) {....f|
|00004940| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00004950| 25 73 3a 20 45 4f 46 20 | 72 65 61 63 68 65 64 20 |%s: EOF |reached |
|00004960| 62 65 66 6f 72 65 20 63 | 6c 65 61 72 74 6f 6d 61 |before c|leartoma|
|00004970| 72 6b 5c 6e 22 2c 0a 09 | 09 09 20 6d 79 6e 61 6d |rk\n",..|.. mynam|
|00004980| 65 29 3b 0a 09 09 09 65 | 78 69 74 28 31 29 3b 0a |e);....e|xit(1);.|
|00004990| 09 09 7d 0a 09 09 69 66 | 28 73 74 72 6e 63 6d 70 |..}...if|(strncmp|
|000049a0| 28 62 75 66 2c 20 22 63 | 6c 65 61 72 74 6f 6d 61 |(buf, "c|leartoma|
|000049b0| 72 6b 22 2c 20 31 31 29 | 20 3d 3d 20 30 29 20 7b |rk", 11)| == 0) {|
|000049c0| 0a 09 09 09 46 70 75 74 | 73 28 62 75 66 2c 20 73 |....Fput|s(buf, s|
|000049d0| 74 64 6f 75 74 29 3b 0a | 09 09 09 72 65 74 75 72 |tdout);.|...retur|
|000049e0| 6e 3b 0a 09 09 7d 0a 09 | 09 46 70 75 74 73 28 62 |n;...}..|.Fputs(b|
|000049f0| 75 66 2c 20 73 74 64 6f | 75 74 29 3b 0a 09 7d 0a |uf, stdo|ut);..}.|
|00004a00| 7d 0a 0a 75 73 61 67 65 | 28 29 0a 7b 0a 09 66 70 |}..usage|().{..fp|
|00004a10| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 55 |rintf(st|derr, "U|
|00004a20| 73 61 67 65 3a 20 25 73 | 20 5b 2d 6c 20 4c 57 5f |sage: %s| [-l LW_|
|00004a30| 6e 61 6d 65 5d 20 5b 2d | 70 20 4c 57 2b 5f 6e 61 |name] [-|p LW+_na|
|00004a40| 6d 65 5d 20 5b 66 69 6c | 65 5d 5c 6e 22 2c 0a 09 |me] [fil|e]\n",..|
|00004a50| 20 6d 79 6e 61 6d 65 29 | 3b 0a 09 66 70 72 69 6e | myname)|;..fprin|
|00004a60| 74 66 28 73 74 64 65 72 | 72 2c 20 22 20 20 20 20 |tf(stder|r, " |
|00004a70| 20 20 20 25 73 20 2d 68 | 65 6c 70 5c 6e 22 2c 20 | %s -h|elp\n", |
|00004a80| 6d 79 6e 61 6d 65 29 3b | 0a 09 65 78 69 74 28 31 |myname);|..exit(1|
|00004a90| 29 3b 0a 7d 0a 52 41 5a | 5a 4c 45 21 44 41 5a 5a |);.}.RAZ|ZLE!DAZZ|
|00004aa0| 4c 45 0a 66 69 09 23 20 | 45 6e 64 20 70 72 65 70 |LE.fi.# |End prep|
|00004ab0| 66 69 78 2e 63 0a 69 66 | 20 74 65 73 74 20 2d 66 |fix.c.if| test -f|
|00004ac0| 20 75 63 62 77 68 69 63 | 68 2e 68 0a 74 68 65 6e | ucbwhic|h.h.then|
|00004ad0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|00004ae0| 6c 20 6e 6f 74 20 6f 76 | 65 72 77 72 69 74 65 20 |l not ov|erwrite |
|00004af0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00004b00| 75 63 62 77 68 69 63 68 | 2e 68 27 22 0a 65 6c 73 |ucbwhich|.h'".els|
|00004b10| 65 0a 65 63 68 6f 20 27 | 78 20 2d 20 75 63 62 77 |e.echo '|x - ucbw|
|00004b20| 68 69 63 68 2e 68 27 0a | 63 61 74 20 3c 3c 20 5c |hich.h'.|cat << \|
|00004b30| 52 41 5a 5a 4c 45 21 44 | 41 5a 5a 4c 45 20 3e 20 |RAZZLE!D|AZZLE > |
|00004b40| 75 63 62 77 68 69 63 68 | 2e 68 0a 2f 2a 0a 20 2a |ucbwhich|.h./*. *|
|00004b50| 20 43 6f 70 79 72 69 67 | 68 74 20 28 63 29 20 31 | Copyrig|ht (c) 1|
|00004b60| 39 38 38 2c 20 54 68 65 | 20 54 72 75 73 74 65 65 |988, The| Trustee|
|00004b70| 73 20 6f 66 20 74 68 65 | 20 55 6e 69 76 65 72 73 |s of the| Univers|
|00004b80| 69 74 79 20 6f 66 20 43 | 61 6c 69 66 6f 72 6e 69 |ity of C|aliforni|
|00004b90| 61 2e 0a 20 2a 20 45 64 | 77 61 72 64 20 4d 6f 79 |a.. * Ed|ward Moy|
|00004ba0| 2c 20 57 6f 72 6b 73 74 | 61 74 69 6f 6e 20 53 6f |, Workst|ation So|
|00004bb0| 66 74 77 61 72 65 20 53 | 75 70 70 6f 72 74 20 47 |ftware S|upport G|
|00004bc0| 72 6f 75 70 2c 20 57 6f | 72 6b 73 74 61 74 69 6f |roup, Wo|rkstatio|
|00004bd0| 6e 20 53 75 70 70 6f 72 | 74 20 53 65 72 69 63 65 |n Suppor|t Serice|
|00004be0| 73 2c 0a 20 2a 20 49 6e | 66 6f 72 6d 61 74 69 6f |s,. * In|formatio|
|00004bf0| 6e 20 53 79 73 74 65 6d | 73 20 61 6e 64 20 54 65 |n System|s and Te|
|00004c00| 63 68 6e 6f 6c 6f 67 79 | 2e 0a 20 2a 0a 20 2a 20 |chnology|.. *. * |
|00004c10| 50 65 72 6d 69 73 73 69 | 6f 6e 20 69 73 20 67 72 |Permissi|on is gr|
|00004c20| 61 6e 74 65 64 20 74 6f | 20 61 6e 79 20 69 6e 64 |anted to| any ind|
|00004c30| 69 76 69 64 75 61 6c 20 | 6f 72 20 69 6e 73 74 69 |ividual |or insti|
|00004c40| 74 75 74 69 6f 6e 20 74 | 6f 20 75 73 65 2c 20 63 |tution t|o use, c|
|00004c50| 6f 70 79 2c 0a 20 2a 20 | 6f 72 20 72 65 64 69 73 |opy,. * |or redis|
|00004c60| 74 72 69 62 75 74 65 20 | 74 68 69 73 20 73 6f 66 |tribute |this sof|
|00004c70| 74 77 61 72 65 20 73 6f | 20 6c 6f 6e 67 20 61 73 |tware so| long as|
|00004c80| 20 69 74 20 69 73 20 6e | 6f 74 20 73 6f 6c 64 20 | it is n|ot sold |
|00004c90| 66 6f 72 20 70 72 6f 66 | 69 74 2c 0a 20 2a 20 70 |for prof|it,. * p|
|00004ca0| 72 6f 76 69 64 65 64 20 | 74 68 61 74 20 74 68 69 |rovided |that thi|
|00004cb0| 73 20 6e 6f 74 69 63 65 | 20 61 6e 64 20 74 68 65 |s notice| and the|
|00004cc0| 20 6f 72 69 67 69 6e 61 | 6c 20 63 6f 70 79 72 69 | origina|l copyri|
|00004cd0| 67 68 74 20 6e 6f 74 69 | 63 65 73 20 61 72 65 0a |ght noti|ces are.|
|00004ce0| 20 2a 20 72 65 74 61 69 | 6e 65 64 2e 20 20 54 68 | * retai|ned. Th|
|00004cf0| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |e Univer|sity of |
|00004d00| 43 61 6c 69 66 6f 72 6e | 69 61 20 6d 61 6b 65 73 |Californ|ia makes|
|00004d10| 20 6e 6f 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 | no repr|esentati|
|00004d20| 6f 6e 73 20 61 62 6f 75 | 74 20 74 68 65 0a 20 2a |ons abou|t the. *|
|00004d30| 20 73 75 69 74 61 62 69 | 6c 69 74 79 20 6f 66 20 | suitabi|lity of |
|00004d40| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 66 6f |this sof|tware fo|
|00004d50| 72 20 61 6e 79 20 70 75 | 72 70 6f 73 65 2e 20 20 |r any pu|rpose. |
|00004d60| 49 74 20 69 73 20 70 72 | 6f 76 69 64 65 64 20 22 |It is pr|ovided "|
|00004d70| 61 73 20 69 73 22 0a 20 | 2a 20 77 69 74 68 6f 75 |as is". |* withou|
|00004d80| 74 20 65 78 70 72 65 73 | 73 20 6f 72 20 69 6d 70 |t expres|s or imp|
|00004d90| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 2e 0a 20 |lied war|ranty.. |
|00004da0| 2a 2f 0a 0a 2f 2a 0a 20 | 2a 20 53 43 43 53 69 64 |*/../*. |* SCCSid|
|00004db0| 20 3d 20 22 40 28 23 29 | 75 63 62 77 68 69 63 68 | = "@(#)|ucbwhich|
|00004dc0| 2e 68 09 31 2e 31 20 39 | 2f 31 39 2f 38 38 22 0a |.h.1.1 9|/19/88".|
|00004dd0| 20 2a 2f 0a 0a 23 64 65 | 66 69 6e 65 09 55 43 42 | */..#de|fine.UCB|
|00004de0| 4d 41 58 50 41 54 48 4c | 45 4e 09 31 32 38 0a 23 |MAXPATHL|EN.128.#|
|00004df0| 64 65 66 69 6e 65 09 55 | 43 42 53 54 41 4e 44 41 |define.U|CBSTANDA|
|00004e00| 52 44 09 22 2f 75 73 72 | 2f 75 63 62 22 0a 0a 65 |RD."/usr|/ucb"..e|
|00004e10| 78 74 65 72 6e 20 63 68 | 61 72 20 75 63 62 6c 69 |xtern ch|ar ucbli|
|00004e20| 62 5b 5d 3b 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |b[];.ext|ern int |
|00004e30| 75 63 62 61 6c 74 65 72 | 6e 61 74 65 3b 0a 65 78 |ucbalter|nate;.ex|
|00004e40| 74 65 72 6e 20 63 68 61 | 72 20 75 63 62 70 61 74 |tern cha|r ucbpat|
|00004e50| 68 5b 5d 3b 0a 52 41 5a | 5a 4c 45 21 44 41 5a 5a |h[];.RAZ|ZLE!DAZZ|
|00004e60| 4c 45 0a 66 69 09 23 20 | 45 6e 64 20 75 63 62 77 |LE.fi.# |End ucbw|
|00004e70| 68 69 63 68 2e 68 0a 69 | 66 20 74 65 73 74 20 2d |hich.h.i|f test -|
|00004e80| 66 20 6d 61 63 70 73 2e | 63 6f 6e 66 69 67 0a 74 |f macps.|config.t|
|00004e90| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00004ea0| 77 69 6c 6c 20 6e 6f 74 | 20 6f 76 65 72 77 72 69 |will not| overwri|
|00004eb0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00004ec0| 20 22 27 6d 61 63 70 73 | 2e 63 6f 6e 66 69 67 27 | "'macps|.config'|
|00004ed0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 27 78 20 2d |".else.e|cho 'x -|
|00004ee0| 20 6d 61 63 70 73 2e 63 | 6f 6e 66 69 67 27 0a 63 | macps.c|onfig'.c|
|00004ef0| 61 74 20 3c 3c 20 5c 52 | 41 5a 5a 4c 45 21 44 41 |at << \R|AZZLE!DA|
|00004f00| 5a 5a 4c 45 20 3e 20 6d | 61 63 70 73 2e 63 6f 6e |ZZLE > m|acps.con|
|00004f10| 66 69 67 0a 23 20 54 68 | 69 73 20 69 73 20 74 68 |fig.# Th|is is th|
|00004f20| 65 20 63 6f 6e 66 69 67 | 20 66 69 6c 65 20 72 65 |e config| file re|
|00004f30| 61 64 20 62 79 20 6d 61 | 63 70 73 2e 0a 23 0a 23 |ad by ma|cps..#.#|
|00004f40| 20 45 61 63 68 20 6c 69 | 6e 65 20 69 73 20 63 6f | Each li|ne is co|
|00004f50| 6d 70 6f 73 65 64 20 6f | 66 20 74 68 65 20 25 25 |mposed o|f the %%|
|00004f60| 49 6e 63 6c 75 64 65 50 | 72 6f 63 53 65 74 20 69 |IncludeP|rocSet i|
|00004f70| 64 2c 20 61 20 74 61 62 | 20 61 6e 64 20 74 68 65 |d, a tab| and the|
|00004f80| 20 66 69 6c 65 0a 23 20 | 63 6f 6e 74 61 69 6e 69 | file.# |containi|
|00004f90| 6e 67 20 74 68 65 20 50 | 72 6f 63 53 65 74 2e 20 |ng the P|rocSet. |
|00004fa0| 20 49 66 20 74 68 65 20 | 66 69 6c 65 20 64 6f 65 | If the |file doe|
|00004fb0| 73 6e 27 74 20 62 65 67 | 69 6e 20 77 69 74 68 20 |sn't beg|in with |
|00004fc0| 61 20 73 6c 61 73 68 2c | 20 74 68 65 0a 23 20 74 |a slash,| the.# t|
|00004fd0| 68 65 20 6e 61 6d 65 20 | 69 73 20 74 61 6b 65 6e |he name |is taken|
|00004fe0| 20 74 6f 20 62 65 20 72 | 65 6c 61 74 69 76 65 20 | to be r|elative |
|00004ff0| 74 6f 20 74 68 65 20 64 | 69 72 65 63 74 6f 72 79 |to the d|irectory|
|00005000| 20 69 6e 20 77 68 69 63 | 68 20 74 68 69 73 20 63 | in whic|h this c|
|00005010| 6f 6e 66 69 67 20 66 69 | 6c 65 0a 23 20 72 65 73 |onfig fi|le.# res|
|00005020| 69 64 65 73 2e 0a 0a 41 | 6c 64 75 73 44 69 63 74 |ides...A|ldusDict|
|00005030| 32 20 32 30 39 20 31 09 | 50 72 6f 63 53 65 74 73 |2 209 1.|ProcSets|
|00005040| 2f 41 6c 64 75 73 50 72 | 65 70 32 2e 30 0a 41 64 |/AldusPr|ep2.0.Ad|
|00005050| 6f 62 65 5f 49 6c 6c 75 | 73 74 72 61 74 6f 72 5f |obe_Illu|strator_|
|00005060| 31 2e 31 20 30 20 30 09 | 50 72 6f 63 53 65 74 73 |1.1 0 0.|ProcSets|
|00005070| 2f 49 6c 6c 75 73 74 72 | 61 74 6f 72 31 2e 31 0a |/Illustr|ator1.1.|
|00005080| 28 46 75 6c 6c 57 72 69 | 74 65 50 72 6f 63 53 65 |(FullWri|teProcSe|
|00005090| 74 29 20 31 2e 30 20 31 | 09 50 72 6f 63 53 65 74 |t) 1.0 1|.ProcSet|
|000050a0| 73 2f 46 75 6c 6c 57 72 | 69 74 65 31 2e 30 0a 22 |s/FullWr|ite1.0."|
|000050b0| 28 41 70 70 6c 65 44 69 | 63 74 20 6d 64 29 22 20 |(AppleDi|ct md)" |
|000050c0| 36 35 20 30 09 50 72 6f | 63 53 65 74 73 2f 4c 61 |65 0.Pro|cSets/La|
|000050d0| 73 65 72 50 72 65 70 34 | 2e 30 0a 22 28 41 70 70 |serPrep4|.0."(App|
|000050e0| 6c 65 44 69 63 74 20 6d | 64 29 22 20 36 36 09 50 |leDict m|d)" 66.P|
|000050f0| 72 6f 63 53 65 74 73 2f | 4c 61 73 65 72 50 72 65 |rocSets/|LaserPre|
|00005100| 70 35 2e 30 0a 22 28 41 | 70 70 6c 65 44 69 63 74 |p5.0."(A|ppleDict|
|00005110| 20 6d 64 29 22 20 36 37 | 20 30 09 50 72 6f 63 53 | md)" 67| 0.ProcS|
|00005120| 65 74 73 2f 4c 61 73 65 | 72 50 72 65 70 35 2e 31 |ets/Lase|rPrep5.1|
|00005130| 0a 22 28 41 70 70 6c 65 | 44 69 63 74 20 6d 64 29 |."(Apple|Dict md)|
|00005140| 22 20 36 38 20 30 09 50 | 72 6f 63 53 65 74 73 2f |" 68 0.P|rocSets/|
|00005150| 4c 61 73 65 72 50 72 65 | 70 35 2e 32 0a 52 41 5a |LaserPre|p5.2.RAZ|
|00005160| 5a 4c 45 21 44 41 5a 5a | 4c 45 0a 66 69 09 23 20 |ZLE!DAZZ|LE.fi.# |
|00005170| 45 6e 64 20 6d 61 63 70 | 73 2e 63 6f 6e 66 69 67 |End macp|s.config|
|00005180| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 6d 61 63 70 |.if test| -f macp|
|00005190| 73 2e 31 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |s.1.then|..echo s|
|000051a0| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|000051b0| 65 72 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |erwrite |existing|
|000051c0| 20 66 69 6c 65 20 22 27 | 6d 61 63 70 73 2e 31 27 | file "'|macps.1'|
|000051d0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 27 78 20 2d |".else.e|cho 'x -|
|000051e0| 20 6d 61 63 70 73 2e 31 | 27 0a 63 61 74 20 3c 3c | macps.1|'.cat <<|
|000051f0| 20 5c 52 41 5a 5a 4c 45 | 21 44 41 5a 5a 4c 45 20 | \RAZZLE|!DAZZLE |
|00005200| 3e 20 6d 61 63 70 73 2e | 31 0a 2e 54 48 20 4d 41 |> macps.|1..TH MA|
|00005210| 43 50 53 20 31 20 22 31 | 39 20 53 65 70 74 20 31 |CPS 1 "1|9 Sept 1|
|00005220| 39 38 38 22 0a 2e 55 43 | 20 34 0a 2e 53 48 20 4e |988"..UC| 4..SH N|
|00005230| 41 4d 45 0a 6d 61 63 70 | 73 20 5c 2d 20 70 72 69 |AME.macp|s \- pri|
|00005240| 6e 74 20 4d 61 63 69 6e | 74 6f 73 68 2d 63 72 65 |nt Macin|tosh-cre|
|00005250| 61 74 65 64 20 50 6f 73 | 74 53 63 72 69 70 74 20 |ated Pos|tScript |
|00005260| 66 69 6c 65 20 6f 6e 20 | 55 6e 69 78 0a 2e 53 48 |file on |Unix..SH|
|00005270| 20 53 59 4e 4f 50 53 49 | 53 0a 2e 42 20 6d 61 63 | SYNOPSI|S..B mac|
|00005280| 70 73 0a 5b 0a 66 69 6c | 65 0a 5d 0a 2e 53 48 20 |ps.[.fil|e.]..SH |
|00005290| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 2e 49 20 4d |DESCRIPT|ION..I M|
|000052a0| 61 63 70 73 0a 74 61 6b | 65 73 20 74 68 65 20 63 |acps.tak|es the c|
|000052b0| 6f 6d 6d 61 6e 64 2d 6c | 69 6e 65 20 66 69 6c 65 |ommand-l|ine file|
|000052c0| 20 28 6f 72 20 74 68 65 | 20 73 74 61 6e 64 61 72 | (or the| standar|
|000052d0| 64 20 69 6e 70 75 74 20 | 69 66 20 6e 6f 20 66 69 |d input |if no fi|
|000052e0| 6c 65 6e 61 6d 65 20 69 | 73 20 67 69 76 65 6e 29 |lename i|s given)|
|000052f0| 2c 0a 61 6e 64 20 70 72 | 65 70 65 6e 64 73 20 74 |,.and pr|epends t|
|00005300| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 4d |he appro|priate M|
|00005310| 61 63 69 6e 74 6f 73 68 | 20 4c 61 73 65 72 50 72 |acintosh| LaserPr|
|00005320| 65 70 20 66 69 6c 65 20 | 28 65 2e 67 2e 2c 20 74 |ep file |(e.g., t|
|00005330| 68 6f 73 65 20 67 65 6e | 65 72 61 74 65 64 0a 62 |hose gen|erated.b|
|00005340| 79 0a 2e 49 52 20 70 72 | 65 70 66 69 78 20 28 31 |y..IR pr|epfix (1|
|00005350| 29 29 2e 0a 54 68 65 20 | 73 74 61 6e 64 61 72 64 |))..The |standard|
|00005360| 20 6f 75 74 70 75 74 20 | 63 61 6e 20 74 68 65 6e | output |can then|
|00005370| 20 62 65 20 64 69 72 65 | 63 74 65 64 20 74 6f 20 | be dire|cted to |
|00005380| 61 20 50 6f 73 74 53 63 | 72 69 70 74 20 70 72 69 |a PostSc|ript pri|
|00005390| 6e 74 65 72 2c 20 76 69 | 61 0a 2e 49 52 20 6c 70 |nter, vi|a..IR lp|
|000053a0| 72 20 28 31 29 2c 0a 66 | 6f 72 20 65 78 61 6d 70 |r (1),.f|or examp|
|000053b0| 6c 65 2e 0a 2e 50 50 0a | 54 68 65 20 69 6e 70 75 |le...PP.|The inpu|
|000053c0| 74 20 50 6f 73 74 53 63 | 72 69 70 74 20 66 69 6c |t PostSc|ript fil|
|000053d0| 65 20 69 73 20 67 65 6e | 65 72 61 74 65 64 20 6f |e is gen|erated o|
|000053e0| 6e 20 61 20 4d 61 63 69 | 6e 74 6f 73 68 20 62 79 |n a Maci|ntosh by|
|000053f0| 20 74 79 70 69 6e 67 20 | 28 61 6e 64 20 68 6f 6c | typing |(and hol|
|00005400| 64 69 6e 67 29 0a 63 6f | 6d 6d 61 6e 64 2d 46 20 |ding).co|mmand-F |
|00005410| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 61 66 74 65 |immediat|ely afte|
|00005420| 72 20 63 6c 69 63 6b 69 | 6e 67 20 74 68 65 20 4f |r clicki|ng the O|
|00005430| 4b 20 62 75 74 74 6f 6e | 20 6f 66 20 74 68 65 20 |K button| of the |
|00005440| 4c 61 73 65 72 57 72 69 | 74 65 72 20 70 72 69 6e |LaserWri|ter prin|
|00005450| 74 65 72 0a 64 69 61 6c | 6f 67 20 62 6f 78 2e 0a |ter.dial|og box..|
|00005460| 41 6e 6f 74 68 65 72 20 | 64 69 61 6c 6f 67 20 77 |Another |dialog w|
|00005470| 69 6c 6c 20 61 70 70 65 | 61 72 2c 20 63 6f 6e 66 |ill appe|ar, conf|
|00005480| 69 72 6d 69 6e 67 20 74 | 68 61 74 20 61 20 66 69 |irming t|hat a fi|
|00005490| 6c 65 20 6e 61 6d 65 64 | 20 60 60 50 6f 73 74 53 |le named| ``PostS|
|000054a0| 63 72 69 70 74 27 27 20 | 69 73 0a 62 65 69 6e 67 |cript'' |is.being|
|000054b0| 20 63 72 65 61 74 65 64 | 20 28 74 68 65 20 63 6f | created| (the co|
|000054c0| 6d 6d 61 6e 64 2d 46 20 | 6b 65 79 73 20 63 61 6e |mmand-F |keys can|
|000054d0| 20 62 65 20 72 65 6c 65 | 61 73 65 64 20 6e 6f 77 | be rele|ased now|
|000054e0| 29 2e 0a 54 68 69 73 20 | 66 69 6c 65 20 63 61 6e |)..This |file can|
|000054f0| 20 74 68 65 6e 20 62 65 | 20 75 70 6c 6f 61 64 65 | then be| uploade|
|00005500| 64 20 76 69 61 20 73 6f | 6d 65 20 66 69 6c 65 20 |d via so|me file |
|00005510| 74 72 61 6e 73 66 65 72 | 20 70 72 6f 67 72 61 6d |transfer| program|
|00005520| 2c 20 73 75 63 68 20 61 | 73 0a 4d 61 63 54 65 72 |, such a|s.MacTer|
|00005530| 6d 69 6e 61 6c 2f 56 65 | 72 73 61 54 65 72 6d 20 |minal/Ve|rsaTerm |
|00005540| 61 6e 64 0a 2e 49 52 20 | 6d 61 63 67 65 74 20 28 |and..IR |macget (|
|00005550| 31 29 0a 6f 72 20 4d 61 | 63 4b 65 72 6d 69 74 2f |1).or Ma|cKermit/|
|00005560| 52 65 64 20 52 79 64 65 | 72 20 61 6e 64 0a 2e 49 |Red Ryde|r and..I|
|00005570| 52 20 6b 65 72 6d 69 74 | 20 28 31 29 2e 0a 2e 53 |R kermit| (1)...S|
|00005580| 48 20 46 49 4c 45 53 0a | 2e 54 50 20 22 5c 77 27 |H FILES.|.TP "\w'|
|00005590| 6c 69 62 2f 6d 61 63 70 | 73 2e 63 6f 6e 66 69 67 |lib/macp|s.config|
|000055a0| 20 20 20 27 75 22 0a 6c | 69 62 2f 6d 61 63 70 73 | 'u".l|ib/macps|
|000055b0| 2e 63 6f 6e 66 69 67 0a | 4d 61 70 73 20 50 72 6f |.config.|Maps Pro|
|000055c0| 63 53 65 74 20 69 64 73 | 20 74 6f 20 50 72 6f 63 |cSet ids| to Proc|
|000055d0| 53 65 74 20 66 69 6c 65 | 6e 61 6d 65 73 0a 2e 53 |Set file|names..S|
|000055e0| 48 20 22 53 45 45 20 41 | 4c 53 4f 22 0a 6c 70 72 |H "SEE A|LSO".lpr|
|000055f0| 28 31 29 2c 20 6d 61 63 | 67 65 74 28 31 29 2c 20 |(1), mac|get(1), |
|00005600| 6b 65 72 6d 69 74 28 31 | 29 2c 20 70 72 65 70 66 |kermit(1|), prepf|
|00005610| 69 78 28 31 29 0a 2e 53 | 48 20 42 55 47 53 0a 2e |ix(1)..S|H BUGS..|
|00005620| 49 20 4d 61 63 70 73 0a | 6f 6e 6c 79 20 77 6f 72 |I Macps.|only wor|
|00005630| 6b 73 20 77 69 74 68 20 | 76 65 72 73 69 6f 6e 20 |ks with |version |
|00005640| 34 2e 30 20 61 6e 64 20 | 75 70 20 6f 66 20 74 68 |4.0 and |up of th|
|00005650| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 4c 61 73 65 |e Macint|osh Lase|
|00005660| 72 50 72 65 70 20 66 69 | 6c 65 73 2c 20 61 73 0a |rPrep fi|les, as.|
|00005670| 77 65 6c 6c 20 61 73 20 | 41 6c 64 75 73 20 50 61 |well as |Aldus Pa|
|00005680| 67 65 4d 61 6b 65 72 2c | 20 41 64 6f 62 65 20 49 |geMaker,| Adobe I|
|00005690| 6c 6c 75 73 74 72 61 74 | 6f 72 20 61 6e 64 20 46 |llustrat|or and F|
|000056a0| 75 6c 6c 57 72 69 74 65 | 20 50 72 6f 66 65 73 73 |ullWrite| Profess|
|000056b0| 69 6f 6e 61 6c 0a 4c 61 | 73 65 72 50 72 65 70 20 |ional.La|serPrep |
|000056c0| 66 69 6c 65 73 2e 0a 42 | 65 63 61 75 73 65 20 6f |files..B|ecause o|
|000056d0| 66 20 74 68 65 20 77 61 | 79 20 62 69 74 20 73 6d |f the wa|y bit sm|
|000056e0| 6f 6f 74 68 69 6e 67 20 | 69 73 20 69 6d 70 6c 69 |oothing |is impli|
|000056f0| 6d 65 6e 74 65 64 20 62 | 79 20 74 68 65 20 4c 61 |mented b|y the La|
|00005700| 73 65 72 57 72 69 74 65 | 72 20 64 72 69 76 65 72 |serWrite|r driver|
|00005710| 2c 0a 6d 61 6e 79 20 50 | 6f 73 74 53 63 72 69 70 |,.many P|ostScrip|
|00005720| 74 20 70 72 69 6e 74 65 | 72 73 20 6f 74 68 65 72 |t printe|rs other|
|00005730| 20 74 68 61 6e 20 74 68 | 65 20 41 70 70 6c 65 20 | than th|e Apple |
|00005740| 4c 61 73 65 72 57 72 69 | 74 65 72 73 20 77 69 6c |LaserWri|ters wil|
|00005750| 6c 20 6e 6f 74 20 62 65 | 20 61 62 6c 65 20 74 6f |l not be| able to|
|00005760| 0a 62 69 74 20 73 6d 6f | 6f 74 68 2e 0a 52 41 5a |.bit smo|oth..RAZ|
|00005770| 5a 4c 45 21 44 41 5a 5a | 4c 45 0a 66 69 09 23 20 |ZLE!DAZZ|LE.fi.# |
|00005780| 45 6e 64 20 6d 61 63 70 | 73 2e 31 0a 69 66 20 74 |End macp|s.1.if t|
|00005790| 65 73 74 20 2d 66 20 70 | 72 65 70 66 69 78 2e 31 |est -f p|repfix.1|
|000057a0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000057b0| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 77 |: will n|ot overw|
|000057c0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000057d0| 6c 65 20 22 27 70 72 65 | 70 66 69 78 2e 31 27 22 |le "'pre|pfix.1'"|
|000057e0| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 27 78 20 2d 20 |.else.ec|ho 'x - |
|000057f0| 70 72 65 70 66 69 78 2e | 31 27 0a 63 61 74 20 3c |prepfix.|1'.cat <|
|00005800| 3c 20 5c 52 41 5a 5a 4c | 45 21 44 41 5a 5a 4c 45 |< \RAZZL|E!DAZZLE|
|00005810| 20 3e 20 70 72 65 70 66 | 69 78 2e 31 0a 2e 54 48 | > prepf|ix.1..TH|
|00005820| 20 50 52 45 50 46 49 58 | 20 31 20 22 31 39 20 53 | PREPFIX| 1 "19 S|
|00005830| 65 70 74 20 31 39 38 38 | 22 0a 2e 55 43 20 34 0a |ept 1988|"..UC 4.|
|00005840| 2e 53 48 20 4e 41 4d 45 | 0a 70 72 65 70 66 69 78 |.SH NAME|.prepfix|
|00005850| 20 5c 2d 20 63 6f 6e 76 | 65 72 74 73 20 41 70 70 | \- conv|erts App|
|00005860| 6c 65 20 4c 61 73 65 72 | 50 72 65 70 20 66 69 6c |le Laser|Prep fil|
|00005870| 65 73 20 74 6f 20 66 6f | 72 6d 20 75 73 65 61 62 |es to fo|rm useab|
|00005880| 6c 65 20 6f 6e 20 55 6e | 69 78 0a 2e 53 48 20 53 |le on Un|ix..SH S|
|00005890| 59 4e 4f 50 53 49 53 0a | 2e 42 20 70 72 65 70 66 |YNOPSIS.|.B prepf|
|000058a0| 69 78 0a 5b 0a 2e 42 20 | 5c 2d 6c 0a 6c 77 5f 6e |ix.[..B |\-l.lw_n|
|000058b0| 61 6d 65 0a 5d 0a 5b 0a | 2e 42 20 5c 2d 70 0a 6c |ame.].[.|.B \-p.l|
|000058c0| 77 2b 5f 6e 61 6d 65 0a | 5d 0a 5b 0a 66 69 6c 65 |w+_name.|].[.file|
|000058d0| 0a 5d 0a 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |.]..SH D|ESCRIPTI|
|000058e0| 4f 4e 0a 2e 49 20 50 72 | 65 70 66 69 78 0a 74 61 |ON..I Pr|epfix.ta|
|000058f0| 6b 65 73 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 2d |kes the |command-|
|00005900| 6c 69 6e 65 20 4c 61 73 | 65 72 50 72 65 70 20 66 |line Las|erPrep f|
|00005910| 69 6c 65 20 28 6f 72 20 | 74 68 65 20 73 74 61 6e |ile (or |the stan|
|00005920| 64 61 72 64 20 69 6e 70 | 75 74 20 69 66 20 6e 6f |dard inp|ut if no|
|00005930| 20 66 69 6c 65 6e 61 6d | 65 20 69 73 0a 67 69 76 | filenam|e is.giv|
|00005940| 65 6e 29 2c 20 61 6e 64 | 20 63 6f 6e 76 65 72 74 |en), and| convert|
|00005950| 73 20 69 74 20 69 6e 74 | 6f 20 61 20 66 6f 72 6d |s it int|o a form|
|00005960| 20 74 68 61 74 20 69 73 | 20 75 73 65 61 62 6c 65 | that is| useable|
|00005970| 20 6f 6e 20 55 6e 69 78 | 20 77 69 74 68 20 74 68 | on Unix| with th|
|00005980| 65 0a 2e 49 52 20 6d 61 | 63 70 73 20 28 31 29 2c |e..IR ma|cps (1),|
|00005990| 0a 61 6e 64 20 69 73 20 | 65 76 65 6e 20 65 6c 65 |.and is |even ele|
|000059a0| 63 74 72 6f 6e 69 63 61 | 6c 6c 79 20 6d 61 69 6c |ctronica|lly mail|
|000059b0| 61 62 6c 65 2e 0a 2e 50 | 50 0a 54 6f 20 75 73 65 |able...P|P.To use|
|000059c0| 0a 2e 49 52 20 70 72 65 | 70 66 69 78 20 2c 0a 63 |..IR pre|pfix ,.c|
|000059d0| 72 65 61 74 65 20 74 68 | 65 20 69 6e 70 75 74 20 |reate th|e input |
|000059e0| 4c 61 73 65 72 50 72 65 | 70 20 66 69 6c 65 20 6f |LaserPre|p file o|
|000059f0| 6e 20 61 20 4d 61 63 69 | 6e 74 6f 73 68 20 62 79 |n a Maci|ntosh by|
|00005a00| 20 6f 70 65 6e 69 6e 67 | 20 61 6e 20 65 6d 70 74 | opening| an empt|
|00005a10| 79 0a 64 6f 63 75 6d 65 | 6e 74 20 69 6e 20 73 6f |y.docume|nt in so|
|00005a20| 6d 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2c 20 |me appli|cation, |
|00005a30| 73 65 6c 65 63 74 69 6e | 67 0a 2e 42 20 50 72 69 |selectin|g..B Pri|
|00005a40| 6e 74 0a 66 72 6f 6d 20 | 74 68 65 0a 2e 42 20 46 |nt.from |the..B F|
|00005a50| 69 6c 65 0a 6d 65 6e 75 | 20 61 6e 64 20 74 68 65 |ile.menu| and the|
|00005a60| 6e 20 74 79 70 69 6e 67 | 20 28 61 6e 64 20 68 6f |n typing| (and ho|
|00005a70| 6c 64 69 6e 67 29 20 63 | 6f 6d 6d 61 6e 64 2d 4b |lding) c|ommand-K|
|00005a80| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 20 61 66 74 | immedia|tely aft|
|00005a90| 65 72 20 63 6c 69 63 6b | 69 6e 67 20 74 68 65 0a |er click|ing the.|
|00005aa0| 2e 42 20 4f 4b 0a 62 75 | 74 74 6f 6e 20 6f 66 20 |.B OK.bu|tton of |
|00005ab0| 74 68 65 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |the Lase|rWriter |
|00005ac0| 70 72 69 6e 74 65 72 20 | 64 69 61 6c 6f 67 20 62 |printer |dialog b|
|00005ad0| 6f 78 2e 0a 41 6e 6f 74 | 68 65 72 20 64 69 61 6c |ox..Anot|her dial|
|00005ae0| 6f 67 20 77 69 6c 6c 20 | 61 70 70 65 61 72 2c 20 |og will |appear, |
|00005af0| 63 6f 6e 66 69 72 6d 69 | 6e 67 20 74 68 61 74 20 |confirmi|ng that |
|00005b00| 61 20 66 69 6c 65 20 6e | 61 6d 65 64 20 60 60 50 |a file n|amed ``P|
|00005b10| 6f 73 74 53 63 72 69 70 | 74 27 27 20 69 73 0a 62 |ostScrip|t'' is.b|
|00005b20| 65 69 6e 67 20 63 72 65 | 61 74 65 64 20 28 74 68 |eing cre|ated (th|
|00005b30| 65 20 63 6f 6d 6d 61 6e | 64 2d 4b 20 6b 65 79 73 |e comman|d-K keys|
|00005b40| 20 63 61 6e 20 62 65 20 | 72 65 6c 65 61 73 65 64 | can be |released|
|00005b50| 20 6e 6f 77 29 2e 0a 54 | 68 69 73 20 66 69 6c 65 | now)..T|his file|
|00005b60| 20 63 61 6e 20 74 68 65 | 6e 20 62 65 20 75 70 6c | can the|n be upl|
|00005b70| 6f 61 64 65 64 20 76 69 | 61 20 73 6f 6d 65 20 66 |oaded vi|a some f|
|00005b80| 69 6c 65 20 74 72 61 6e | 73 66 65 72 20 70 72 6f |ile tran|sfer pro|
|00005b90| 67 72 61 6d 2c 20 73 75 | 63 68 20 61 73 0a 4d 61 |gram, su|ch as.Ma|
|00005ba0| 63 54 65 72 6d 69 6e 61 | 6c 2f 56 65 72 73 61 54 |cTermina|l/VersaT|
|00005bb0| 65 72 6d 20 61 6e 64 0a | 2e 49 52 20 6d 61 63 67 |erm and.|.IR macg|
|00005bc0| 65 74 20 28 31 29 0a 6f | 72 20 4d 61 63 4b 65 72 |et (1).o|r MacKer|
|00005bd0| 6d 69 74 2f 52 65 64 20 | 52 79 64 65 72 20 61 6e |mit/Red |Ryder an|
|00005be0| 64 0a 2e 49 52 20 6b 65 | 72 6d 69 74 20 28 31 29 |d..IR ke|rmit (1)|
|00005bf0| 2e 0a 2e 50 50 0a 4e 6f | 72 6d 61 6c 6c 79 2c 20 |...PP.No|rmally, |
|00005c00| 6f 6e 6c 79 20 41 70 70 | 6c 65 20 4c 61 73 65 72 |only App|le Laser|
|00005c10| 57 72 69 74 65 72 73 20 | 63 61 6e 20 74 61 6b 65 |Writers |can take|
|00005c20| 20 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 74 68 | advanta|ge of th|
|00005c30| 65 20 62 69 74 20 73 6d | 6f 6f 74 68 69 6e 67 0a |e bit sm|oothing.|
|00005c40| 66 65 61 74 75 72 65 20 | 6f 66 20 74 68 65 20 4c |feature |of the L|
|00005c50| 61 73 65 72 50 72 65 70 | 20 66 69 6c 65 2e 0a 48 |aserPrep| file..H|
|00005c60| 6f 77 65 76 65 72 2c 20 | 6f 74 68 65 72 20 50 6f |owever, |other Po|
|00005c70| 73 74 53 63 72 69 70 74 | 20 6c 61 73 65 72 20 70 |stScript| laser p|
|00005c80| 72 69 6e 74 65 72 20 75 | 73 69 6e 67 20 74 68 65 |rinter u|sing the|
|00005c90| 20 4d 6f 74 6f 72 6f 6c | 61 20 36 38 30 78 30 20 | Motorol|a 680x0 |
|00005ca0| 70 72 6f 63 65 73 73 6f | 72 0a 61 6e 64 20 74 68 |processo|r.and th|
|00005cb0| 65 20 41 64 6f 62 65 20 | 50 6f 73 74 53 63 72 69 |e Adobe |PostScri|
|00005cc0| 70 74 20 66 69 72 6d 77 | 61 72 65 20 63 61 6e 20 |pt firmw|are can |
|00005cd0| 62 65 20 6d 61 64 65 20 | 74 6f 20 64 6f 20 62 69 |be made |to do bi|
|00005ce0| 74 20 73 6d 6f 6f 74 68 | 69 6e 67 20 62 79 0a 73 |t smooth|ing by.s|
|00005cf0| 70 65 63 69 66 79 69 6e | 67 20 66 6f 72 20 65 61 |pecifyin|g for ea|
|00005d00| 63 68 20 70 72 69 6e 74 | 65 72 20 65 69 74 68 65 |ch print|er eithe|
|00005d10| 72 20 74 68 65 0a 2e 42 | 20 5c 2d 6c 0a 6f 72 0a |r the..B| \-l.or.|
|00005d20| 2e 42 20 5c 2d 70 0a 6f | 70 74 69 6f 6e 73 20 66 |.B \-p.o|ptions f|
|00005d30| 6f 72 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 61 |or Laser|Writer a|
|00005d40| 6e 64 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 50 |nd Laser|Writer P|
|00005d50| 6c 75 73 20 63 6c 61 73 | 73 20 6d 61 63 68 69 6e |lus clas|s machin|
|00005d60| 65 73 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |es, resp|ectively|
|00005d70| 2e 0a 54 68 65 20 6f 70 | 74 69 6f 6e 20 61 72 67 |..The op|tion arg|
|00005d80| 75 6d 65 6e 74 20 69 73 | 20 74 68 65 20 66 69 72 |ument is| the fir|
|00005d90| 73 74 20 36 33 20 63 68 | 61 72 61 63 74 65 72 73 |st 63 ch|aracters|
|00005da0| 20 6f 66 20 74 68 65 20 | 70 72 69 6e 74 65 72 27 | of the |printer'|
|00005db0| 73 20 6e 61 6d 65 20 28 | 61 73 0a 72 65 74 75 72 |s name (|as.retur|
|00005dc0| 6e 65 64 20 62 79 20 74 | 68 65 0a 2e 42 20 70 72 |ned by t|he..B pr|
|00005dd0| 6f 64 75 63 74 0a 63 6f | 6d 6d 61 6e 64 20 69 6e |oduct.co|mmand in|
|00005de0| 0a 2e 42 52 20 73 65 72 | 76 65 72 64 69 63 74 20 |..BR ser|verdict |
|00005df0| 29 2e 0a 54 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |)..The r|esulting|
|00005e00| 20 4c 61 73 65 72 50 72 | 65 70 20 66 69 6c 65 20 | LaserPr|ep file |
|00005e10| 77 69 6c 6c 20 62 65 20 | 6d 6f 64 69 66 69 65 64 |will be |modified|
|00005e20| 20 73 6f 20 74 68 61 74 | 20 66 6f 72 20 4c 61 73 | so that| for Las|
|00005e30| 65 72 57 72 69 74 65 72 | 73 20 61 6e 64 20 66 6f |erWriter|s and fo|
|00005e40| 72 0a 70 72 69 6e 74 65 | 72 73 20 73 70 65 63 69 |r.printe|rs speci|
|00005e50| 66 69 65 64 20 69 6e 20 | 74 68 65 0a 2e 42 20 5c |fied in |the..B \|
|00005e60| 2d 6c 0a 61 6e 64 0a 2e | 42 20 5c 2d 70 0a 6f 70 |-l.and..|B \-p.op|
|00005e70| 74 69 6f 6e 73 2c 20 62 | 69 74 20 73 6d 6f 6f 74 |tions, b|it smoot|
|00005e80| 68 69 6e 67 20 77 69 6c | 6c 20 62 65 20 61 6c 6c |hing wil|l be all|
|00005e90| 6f 77 65 64 20 28 73 6d | 6f 6f 74 68 69 6e 67 20 |owed (sm|oothing |
|00005ea0| 6d 75 73 74 20 73 74 69 | 6c 6c 20 62 65 20 73 65 |must sti|ll be se|
|00005eb0| 6c 65 63 74 65 64 20 69 | 6e 20 74 68 65 0a 50 72 |lected i|n the.Pr|
|00005ec0| 69 6e 74 20 44 69 61 6c | 6f 67 20 62 6f 78 20 77 |int Dial|og box w|
|00005ed0| 68 65 6e 20 73 61 76 69 | 6e 67 20 74 68 65 20 50 |hen savi|ng the P|
|00005ee0| 6f 73 74 53 63 72 69 70 | 74 20 74 6f 20 64 69 73 |ostScrip|t to dis|
|00005ef0| 6b 29 2e 0a 2e 53 48 20 | 22 53 45 45 20 41 4c 53 |k)...SH |"SEE ALS|
|00005f00| 4f 22 0a 6d 61 63 70 73 | 28 31 29 2c 20 6d 61 63 |O".macps|(1), mac|
|00005f10| 67 65 74 28 31 29 2c 20 | 6b 65 72 6d 69 74 28 31 |get(1), |kermit(1|
|00005f20| 29 0a 2e 53 48 20 42 55 | 47 53 0a 2e 49 20 50 72 |)..SH BU|GS..I Pr|
|00005f30| 65 70 66 69 78 0a 6f 6e | 6c 79 20 77 6f 72 6b 73 |epfix.on|ly works|
|00005f40| 20 77 69 74 68 20 76 65 | 72 73 69 6f 6e 20 34 2e | with ve|rsion 4.|
|00005f50| 30 20 61 6e 64 20 75 70 | 20 6f 66 20 74 68 65 20 |0 and up| of the |
|00005f60| 4d 61 63 69 6e 74 6f 73 | 68 20 4c 61 73 65 72 50 |Macintos|h LaserP|
|00005f70| 72 65 70 20 66 69 6c 65 | 73 2e 0a 4f 6e 6c 79 20 |rep file|s..Only |
|00005f80| 31 36 20 6f 66 20 65 61 | 63 68 20 6f 66 20 74 68 |16 of ea|ch of th|
|00005f90| 65 0a 2e 42 20 5c 2d 6c | 0a 61 6e 64 0a 2e 42 20 |e..B \-l|.and..B |
|00005fa0| 5c 2d 70 0a 70 72 69 6e | 74 65 72 20 6e 61 6d 65 |\-p.prin|ter name|
|00005fb0| 73 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 73 |s is cur|rently s|
|00005fc0| 75 70 70 6f 72 74 65 64 | 2e 0a 52 41 5a 5a 4c 45 |upported|..RAZZLE|
|00005fd0| 21 44 41 5a 5a 4c 45 0a | 66 69 09 23 20 45 6e 64 |!DAZZLE.|fi.# End|
|00005fe0| 20 70 72 65 70 66 69 78 | 2e 31 0a 65 63 68 6f 20 | prepfix|.1.echo |
|00005ff0| 27 2a 2a 2a 2a 2a 20 45 | 6e 64 20 6f 66 27 20 6d |'***** E|nd of' m|
|00006000| 61 63 70 73 2e 73 68 61 | 72 20 27 2a 2a 2a 2a 2a |acps.sha|r '*****|
|00006010| 27 0a 65 78 69 74 0a | |'.exit. | |
+--------+-------------------------+-------------------------+--------+--------+