home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / unix / volume25 / macps < prev    next >
SHell self-extracting ARchive  |  1991-12-13  |  41.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file makefile script, 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)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 76 32 35 69 30 33 30 |Subject:| v25i030|
|00000010| 3a 20 6d 61 63 70 73 20 | 2d 20 75 74 69 6c 69 74 |: macps |- utilit|
|00000020| 69 65 73 20 74 6f 20 68 | 65 6c 70 20 70 72 69 6e |ies to h|elp prin|
|00000030| 74 20 41 70 70 6c 65 20 | 22 4c 61 73 65 72 50 72 |t Apple |"LaserPr|
|00000040| 65 70 22 20 66 69 6c 65 | 73 0a 4e 65 77 73 67 72 |ep" file|s.Newsgr|
|00000050| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 73 6f 75 72 63 |oups: co|mp.sourc|
|00000060| 65 73 2e 75 6e 69 78 0a | 41 70 70 72 6f 76 65 64 |es.unix.|Approved|
|00000070| 3a 20 76 69 78 69 65 40 | 70 61 2e 64 65 63 2e 63 |: vixie@|pa.dec.c|
|00000080| 6f 6d 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 42 79 |om..Subm|itted-By|
|00000090| 3a 20 45 64 20 4d 6f 79 | 20 3c 65 64 6d 6f 79 40 |: Ed Moy| <edmoy@|
|000000a0| 76 69 6f 6c 65 74 2e 62 | 65 72 6b 65 6c 65 79 2e |violet.b|erkeley.|
|000000b0| 65 64 75 3e 0a 50 6f 73 | 74 69 6e 67 2d 4e 75 6d |edu>.Pos|ting-Num|
|000000c0| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 32 35 2c 20 |ber: Vol|ume 25, |
|000000d0| 49 73 73 75 65 20 33 30 | 0a 41 72 63 68 69 76 65 |Issue 30|.Archive|
|000000e0| 2d 4e 61 6d 65 3a 20 6d | 61 63 70 73 0a 0a 4d 61 |-Name: m|acps..Ma|
|000000f0| 63 70 73 20 69 73 20 61 | 20 55 6e 69 78 20 70 72 |cps is a| Unix pr|
|00000100| 6f 67 72 61 6d 20 74 68 | 61 74 20 74 61 6b 65 73 |ogram th|at takes|
|00000110| 20 61 6e 20 75 70 6c 6f | 61 64 65 64 20 50 6f 73 | an uplo|aded Pos|
|00000120| 74 53 63 72 69 70 74 20 | 66 69 6c 65 20 63 72 65 |tScript |file cre|
|00000130| 61 74 65 64 0a 6f 6e 20 | 61 20 4d 61 63 69 6e 74 |ated.on |a Macint|
|00000140| 6f 73 68 20 28 62 79 20 | 74 79 70 69 6e 67 20 43 |osh (by |typing C|
|00000150| 6f 6d 6d 61 6e 64 2d 46 | 20 61 74 20 74 68 65 20 |ommand-F| at the |
|00000160| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 69 61 6c |LaserWri|ter dial|
|00000170| 6f 67 20 62 6f 78 3b 20 | 73 65 65 0a 6d 61 63 70 |og box; |see.macp|
|00000180| 73 2e 31 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |s.1 for |more det|
|00000190| 61 69 6c 73 29 20 61 6e | 64 20 69 6e 63 6c 75 64 |ails) an|d includ|
|000001a0| 65 73 20 61 6e 20 61 70 | 70 72 6f 70 72 69 61 74 |es an ap|propriat|
|000001b0| 65 6c 79 20 6d 6f 64 69 | 66 69 65 64 0a 4c 61 73 |ely modi|fied.Las|
|000001c0| 65 72 50 72 65 70 20 66 | 69 6c 65 20 73 6f 20 74 |erPrep f|ile so t|
|000001d0| 68 61 74 20 74 68 65 20 | 72 65 73 75 6c 74 20 63 |hat the |result c|
|000001e0| 61 6e 20 62 65 20 73 65 | 6e 74 20 74 6f 20 61 20 |an be se|nt to a |
|000001f0| 50 6f 73 74 53 63 72 69 | 70 74 20 70 72 69 6e 74 |PostScri|pt print|
|00000200| 65 72 0a 58 3e 46 72 6f | 6d 20 55 6e 69 78 2e 20 |er.X>Fro|m Unix. |
|00000210| 20 54 68 65 20 4c 61 73 | 65 72 50 72 65 70 20 66 | The Las|erPrep f|
|00000220| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 6d 61 63 |ile cont|ains mac|
|00000230| 72 6f 73 20 75 73 65 64 | 20 62 79 20 74 68 65 20 |ros used| by the |
|00000240| 50 6f 73 74 53 63 72 69 | 70 74 0a 67 65 6e 65 72 |PostScri|pt.gener|
|00000250| 61 74 6f 72 20 6f 6e 20 | 74 68 65 20 4d 61 63 69 |ator on |the Maci|
|00000260| 6e 74 6f 73 68 2e 0a 0a | 23 21 20 2f 62 69 6e 2f |ntosh...|#! /bin/|
|00000270| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|00000280| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|00000290| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|000002a0| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|000002b0| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|000002c0| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|000002d0| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|000002e0| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|000002f0| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|00000300| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|00000310| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|00000320| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|00000330| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|00000340| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|00000350| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|00000360| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|00000370| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|00000380| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|00000390| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|000003a0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|000003b0| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|000003c0| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|000003d0| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 20 28 |d of arc|hive 1 (|
|000003e0| 6f 66 20 31 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 1).".|# Conten|
|000003f0| 74 73 3a 20 20 49 6e 73 | 74 61 6c 6c 61 74 69 6f |ts: Ins|tallatio|
|00000400| 6e 20 4d 41 4e 49 46 45 | 53 54 20 4d 61 6b 65 66 |n MANIFE|ST Makef|
|00000410| 69 6c 65 20 52 65 61 64 | 4d 65 20 6d 61 63 61 75 |ile Read|Me macau|
|00000420| 78 2e 63 20 6d 61 63 70 | 73 2e 31 0a 23 20 20 20 |x.c macp|s.1.# |
|00000430| 6d 61 63 70 73 2e 63 20 | 6d 61 63 70 73 2e 63 6f |macps.c |macps.co|
|00000440| 6e 66 69 67 20 70 72 65 | 70 66 69 78 2e 31 20 70 |nfig pre|pfix.1 p|
|00000450| 72 65 70 66 69 78 2e 63 | 20 73 74 72 2e 68 20 75 |repfix.c| str.h u|
|00000460| 63 62 77 68 69 63 68 2e | 63 0a 23 20 20 20 75 63 |cbwhich.|c.# uc|
|00000470| 62 77 68 69 63 68 2e 68 | 0a 23 20 57 72 61 70 70 |bwhich.h|.# Wrapp|
|00000480| 65 64 20 62 79 20 76 69 | 78 69 65 40 63 6f 67 6e |ed by vi|xie@cogn|
|00000490| 69 74 69 6f 6e 2e 70 61 | 2e 64 65 63 2e 63 6f 6d |ition.pa|.dec.com|
|000004a0| 20 6f 6e 20 46 72 69 20 | 44 65 63 20 31 33 20 31 | on Fri |Dec 13 1|
|000004b0| 34 3a 35 33 3a 32 31 20 | 31 39 39 31 0a 50 41 54 |4:53:21 |1991.PAT|
|000004c0| 48 3d 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |H=/bin:/|usr/bin:|
|000004d0| 2f 75 73 72 2f 75 63 62 | 20 3b 20 65 78 70 6f 72 |/usr/ucb| ; expor|
|000004e0| 74 20 50 41 54 48 0a 69 | 66 20 74 65 73 74 20 2d |t PATH.i|f test -|
|000004f0| 66 20 27 49 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 27 |f 'Insta|llation'|
|00000500| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00000510| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00000520| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00000530| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00000540| 67 20 66 69 6c 65 20 5c | 22 27 49 6e 73 74 61 6c |g file \|"'Instal|
|00000550| 6c 61 74 69 6f 6e 27 5c | 22 0a 65 6c 73 65 0a 65 |lation'\|".else.e|
|00000560| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00000570| 74 69 6e 67 20 5c 22 27 | 49 6e 73 74 61 6c 6c 61 |ting \"'|Installa|
|00000580| 74 69 6f 6e 27 5c 22 20 | 5c 28 33 34 38 35 20 63 |tion'\" |\(3485 c|
|00000590| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|000005a0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 49 6e 73 74 61 |"s/^X//"| >'Insta|
|000005b0| 6c 6c 61 74 69 6f 6e 27 | 20 3c 3c 27 45 4e 44 5f |llation'| <<'END_|
|000005c0| 4f 46 5f 46 49 4c 45 27 | 0a 49 6e 73 74 61 6c 6c |OF_FILE'|.Install|
|000005d0| 61 74 69 6f 6e 20 49 6e | 73 74 72 75 63 74 69 6f |ation In|structio|
|000005e0| 6e 73 20 28 53 43 43 53 | 69 64 20 3d 20 22 40 28 |ns (SCCS|id = "@(|
|000005f0| 23 29 49 6e 73 74 61 6c | 6c 61 74 69 6f 6e 09 32 |#)Instal|lation.2|
|00000600| 2e 32 20 31 30 2f 32 34 | 2f 38 39 22 29 0a 58 0a |.2 10/24|/89").X.|
|00000610| 58 31 29 20 4c 6f 6f 6b | 20 61 74 20 74 68 65 20 |X1) Look| at the |
|00000620| 4d 61 6b 65 66 69 6c 65 | 2e 20 20 54 68 65 72 65 |Makefile|. There|
|00000630| 20 61 72 65 20 74 68 72 | 65 65 20 43 46 4c 41 47 | are thr|ee CFLAG|
|00000640| 53 20 6f 70 74 69 6f 6e | 73 20 74 68 61 74 20 79 |S option|s that y|
|00000650| 6f 75 20 63 61 6e 0a 75 | 73 65 2e 20 20 53 65 74 |ou can.u|se. Set|
|00000660| 74 69 6e 67 20 53 59 53 | 56 20 73 68 6f 75 6c 64 |ting SYS|V should|
|00000670| 20 61 6c 6c 6f 77 20 6d | 61 63 70 73 20 61 6e 64 | allow m|acps and|
|00000680| 20 70 72 65 70 66 69 78 | 20 74 6f 20 63 6f 6d 70 | prepfix| to comp|
|00000690| 69 6c 65 20 6f 6e 20 53 | 79 73 74 65 6d 0a 56 20 |ile on S|ystem.V |
|000006a0| 6d 61 63 68 69 6e 65 73 | 20 28 49 27 76 65 20 6f |machines| (I've o|
|000006b0| 6e 6c 79 20 74 72 69 65 | 64 20 69 74 20 75 6e 64 |nly trie|d it und|
|000006c0| 65 72 20 41 2f 55 58 29 | 2e 20 20 53 65 74 74 69 |er A/UX)|. Setti|
|000006d0| 6e 67 20 43 4f 4e 46 49 | 47 44 49 52 20 77 69 6c |ng CONFI|GDIR wil|
|000006e0| 6c 0a 63 61 75 73 65 20 | 6d 61 63 70 73 20 74 6f |l.cause |macps to|
|000006f0| 20 6c 6f 6f 6b 20 66 6f | 72 20 6d 61 63 70 73 2e | look fo|r macps.|
|00000700| 63 6f 6e 66 69 67 20 69 | 6e 20 74 68 61 74 20 64 |config i|n that d|
|00000710| 69 72 65 63 74 6f 72 79 | 2e 20 20 53 65 74 74 69 |irectory|. Setti|
|00000720| 6e 67 20 53 41 56 45 0a | 77 69 6c 6c 20 63 61 75 |ng SAVE.|will cau|
|00000730| 73 65 20 6d 61 63 70 73 | 20 74 6f 20 65 6e 63 6c |se macps| to encl|
|00000740| 6f 73 65 20 74 68 65 20 | 65 6e 74 69 72 65 20 70 |ose the |entire p|
|00000750| 72 69 6e 74 20 6a 6f 62 | 20 69 73 20 61 20 50 6f |rint job| is a Po|
|00000760| 73 74 53 63 72 69 70 74 | 0a 73 61 76 65 2f 72 65 |stScript|.save/re|
|00000770| 73 74 6f 72 65 20 63 6f | 6e 74 65 78 74 2e 20 20 |store co|ntext. |
|00000780| 4e 6f 72 6d 61 6c 6c 79 | 20 79 6f 75 20 64 6f 6e |Normally| you don|
|00000790| 27 74 20 6e 65 65 64 20 | 53 41 56 45 2c 20 73 69 |'t need |SAVE, si|
|000007a0| 6e 63 65 20 6d 6f 73 74 | 0a 73 70 6f 6f 6c 69 6e |nce most|.spoolin|
|000007b0| 67 20 73 6f 66 74 77 61 | 72 65 20 77 69 6c 6c 20 |g softwa|re will |
|000007c0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 64 6f |automati|cally do|
|000007d0| 20 61 6e 20 45 4f 46 20 | 62 65 74 77 65 65 6e 20 | an EOF |between |
|000007e0| 70 72 69 6e 74 20 6a 6f | 62 73 2c 20 77 68 69 63 |print jo|bs, whic|
|000007f0| 68 0a 65 66 66 65 63 74 | 69 76 65 6c 79 20 64 6f |h.effect|ively do|
|00000800| 65 73 20 61 20 72 65 73 | 74 6f 72 65 20 6f 66 20 |es a res|tore of |
|00000810| 6d 65 6d 6f 72 79 20 66 | 6f 72 20 79 6f 75 2c 20 |memory f|or you, |
|00000820| 62 75 74 20 73 6f 6d 65 | 20 73 70 6f 6f 6c 69 6e |but some| spoolin|
|00000830| 67 0a 73 6f 66 74 77 61 | 72 65 20 64 6f 65 73 20 |g.softwa|re does |
|00000840| 72 65 71 75 69 72 65 20 | 74 68 65 20 73 61 76 65 |require |the save|
|00000850| 2f 72 65 73 74 6f 72 65 | 2e 20 20 4e 6f 74 65 20 |/restore|. Note |
|00000860| 74 68 61 74 20 64 65 66 | 69 6e 69 6e 67 20 53 41 |that def|ining SA|
|00000870| 56 45 20 77 69 6c 6c 0a | 63 61 75 73 65 20 70 72 |VE will.|cause pr|
|00000880| 69 6e 74 69 6e 67 20 74 | 6f 20 66 61 69 6c 20 6f |inting t|o fail o|
|00000890| 6e 20 61 20 4e 65 58 54 | 20 6c 61 73 65 72 20 70 |n a NeXT| laser p|
|000008a0| 72 69 6e 74 65 72 2c 20 | 77 68 69 6c 65 20 69 74 |rinter, |while it|
|000008b0| 20 69 73 20 68 61 72 6d | 6c 65 73 73 20 6f 6e 0a | is harm|less on.|
|000008c0| 6d 6f 73 74 20 6f 74 68 | 65 72 20 73 79 73 74 65 |most oth|er syste|
|000008d0| 6d 73 2e 0a 58 0a 54 68 | 65 20 6f 70 74 69 6f 6e |ms..X.Th|e option|
|000008e0| 73 20 77 69 6c 6c 20 6c | 6f 6f 6b 20 73 6f 6d 65 |s will l|ook some|
|000008f0| 74 68 69 6e 67 20 6c 69 | 6b 65 3a 0a 58 0a 43 46 |thing li|ke:.X.CF|
|00000900| 4c 41 47 53 20 3d 20 2d | 4f 20 2d 44 53 59 53 56 |LAGS = -|O -DSYSV|
|00000910| 20 2d 44 43 4f 4e 46 49 | 47 44 49 52 3d 5c 22 2f | -DCONFI|GDIR=\"/|
|00000920| 75 73 72 2f 6e 65 77 2f | 6c 69 62 5c 22 20 2d 44 |usr/new/|lib\" -D|
|00000930| 53 41 56 45 0a 58 0a 69 | 66 20 79 6f 75 20 64 65 |SAVE.X.i|f you de|
|00000940| 66 69 6e 65 64 20 61 6c | 6c 20 74 68 65 20 6f 70 |fined al|l the op|
|00000950| 74 69 6f 6e 73 2e 0a 58 | 0a 58 32 29 20 54 79 70 |tions..X|.X2) Typ|
|00000960| 65 20 22 6d 61 6b 65 22 | 2e 20 20 49 66 20 61 6c |e "make"|. If al|
|00000970| 6c 20 67 6f 65 73 20 77 | 65 6c 6c 2c 20 6d 61 63 |l goes w|ell, mac|
|00000980| 70 73 20 61 6e 64 20 70 | 72 65 70 66 69 78 20 77 |ps and p|repfix w|
|00000990| 69 6c 6c 20 62 65 20 63 | 72 65 61 74 65 64 2e 0a |ill be c|reated..|
|000009a0| 58 0a 58 33 29 20 54 6f | 20 63 72 65 61 74 65 20 |X.X3) To| create |
|000009b0| 74 68 65 20 75 6e 70 72 | 6f 63 65 73 73 65 64 20 |the unpr|ocessed |
|000009c0| 4c 61 73 65 72 50 72 65 | 70 20 66 69 6c 65 20 6f |LaserPre|p file o|
|000009d0| 6e 20 74 68 65 20 4d 61 | 63 2c 20 61 73 20 77 65 |n the Ma|c, as we|
|000009e0| 6c 6c 20 61 73 0a 63 72 | 65 61 74 69 6e 67 20 74 |ll as.cr|eating t|
|000009f0| 68 65 20 72 61 77 20 50 | 6f 73 74 53 63 72 69 70 |he raw P|ostScrip|
|00000a00| 74 20 66 69 6c 65 73 20 | 74 68 61 74 20 79 6f 75 |t files |that you|
|00000a10| 20 77 61 6e 74 20 74 6f | 20 70 72 69 6e 74 2c 20 | want to| print, |
|00000a20| 6d 61 6b 65 20 73 75 72 | 65 0a 74 68 61 74 20 65 |make sur|e.that e|
|00000a30| 69 74 68 65 72 20 79 6f | 75 27 72 65 20 6e 6f 74 |ither yo|u're not|
|00000a40| 20 72 75 6e 6e 69 6e 67 | 20 4d 75 6c 74 69 46 69 | running| MultiFi|
|00000a50| 6e 64 65 72 2c 20 6f 72 | 20 69 66 20 79 6f 75 20 |nder, or| if you |
|00000a60| 61 72 65 2c 20 67 6f 20 | 74 6f 20 74 68 65 0a 43 |are, go |to the.C|
|00000a70| 68 6f 6f 73 65 72 20 75 | 6e 64 65 72 20 74 68 65 |hooser u|nder the|
|00000a80| 20 41 70 70 6c 65 20 6d | 65 6e 75 2c 20 63 6c 69 | Apple m|enu, cli|
|00000a90| 63 6b 20 6f 6e 20 74 68 | 65 20 4c 61 73 65 72 57 |ck on th|e LaserW|
|00000aa0| 72 69 74 65 72 20 69 63 | 6f 6e 20 61 6e 64 20 74 |riter ic|on and t|
|00000ab0| 68 65 6e 0a 74 75 72 6e | 20 6f 66 66 20 42 61 63 |hen.turn| off Bac|
|00000ac0| 6b 67 72 6f 75 6e 64 20 | 50 72 69 6e 74 69 6e 67 |kground |Printing|
|00000ad0| 2e 0a 58 0a 58 34 29 20 | 46 6f 72 20 65 61 63 68 |..X.X4) |For each|
|00000ae0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 4c 61 73 65 | version| of Lase|
|00000af0| 72 50 72 65 70 20 6f 6e | 20 74 68 65 20 4d 61 63 |rPrep on| the Mac|
|00000b00| 20 74 68 61 74 20 79 6f | 75 20 77 61 6e 74 20 74 | that yo|u want t|
|00000b10| 6f 20 69 6e 63 6c 75 64 | 65 2c 0a 69 6e 73 74 61 |o includ|e,.insta|
|00000b20| 6c 6c 20 74 68 61 74 20 | 76 65 72 73 69 6f 6e 20 |ll that |version |
|00000b30| 69 6e 20 74 68 65 20 53 | 79 73 74 65 6d 20 46 6f |in the S|ystem Fo|
|00000b40| 6c 64 65 72 2e 20 20 54 | 68 65 6e 2c 20 6f 70 65 |lder. T|hen, ope|
|00000b50| 6e 20 61 6e 20 65 6d 70 | 74 79 0a 64 6f 63 75 6d |n an emp|ty.docum|
|00000b60| 65 6e 74 20 69 6e 20 73 | 6f 6d 65 20 73 69 6d 70 |ent in s|ome simp|
|00000b70| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 28 |le appli|cation (|
|00000b80| 6f 6e 65 20 74 68 61 74 | 20 64 6f 65 73 6e 27 74 |one that| doesn't|
|00000b90| 20 68 61 76 65 20 69 74 | 73 0a 6f 77 6e 20 50 72 | have it|s.own Pr|
|00000ba0| 6f 63 53 65 74 20 74 6f | 20 64 6f 77 6e 6c 6f 61 |ocSet to| downloa|
|00000bb0| 64 29 2e 20 20 43 68 6f | 6f 73 65 20 50 72 69 6e |d). Cho|ose Prin|
|00000bc0| 74 20 66 72 6f 6d 20 74 | 68 65 20 46 69 6c 65 20 |t from t|he File |
|00000bd0| 6d 65 6e 75 20 61 6e 64 | 20 74 68 65 0a 4c 61 73 |menu and| the.Las|
|00000be0| 65 72 57 72 69 74 65 72 | 20 70 72 69 6e 74 20 64 |erWriter| print d|
|00000bf0| 69 61 6c 6f 67 20 77 69 | 6c 6c 20 61 70 70 65 61 |ialog wi|ll appea|
|00000c00| 72 2e 20 20 43 6c 69 63 | 6b 20 6f 6e 20 74 68 65 |r. Clic|k on the|
|00000c10| 20 4f 4b 20 62 75 74 74 | 6f 6e 20 61 6e 64 0a 49 | OK butt|on and.I|
|00000c20| 4d 4d 45 44 49 41 54 45 | 4c 59 20 70 72 65 73 73 |MMEDIATE|LY press|
|00000c30| 20 61 6e 64 20 68 6f 6c | 64 20 43 6f 6d 6d 61 6e | and hol|d Comman|
|00000c40| 64 2d 4b 2e 20 20 57 68 | 65 6e 20 61 20 64 69 61 |d-K. Wh|en a dia|
|00000c50| 6c 6f 67 20 62 6f 78 20 | 61 70 70 65 61 72 73 0a |log box |appears.|
|00000c60| 74 65 6c 6c 69 6e 67 20 | 79 6f 75 20 74 68 61 74 |telling |you that|
|00000c70| 20 69 74 20 69 73 20 63 | 72 65 61 74 69 6e 67 20 | it is c|reating |
|00000c80| 61 20 50 6f 73 74 53 63 | 72 69 70 74 20 66 69 6c |a PostSc|ript fil|
|00000c90| 65 2c 20 79 6f 75 20 63 | 61 6e 20 72 65 6c 65 61 |e, you c|an relea|
|00000ca0| 73 65 0a 43 6f 6d 6d 61 | 6e 64 2d 4b 2e 20 20 54 |se.Comma|nd-K. T|
|00000cb0| 68 65 20 75 6e 70 72 6f | 63 65 73 73 65 64 20 4c |he unpro|cessed L|
|00000cc0| 61 73 65 72 50 72 65 70 | 20 66 69 6c 65 20 77 69 |aserPrep| file wi|
|00000cd0| 6c 6c 20 75 73 75 61 6c | 6c 79 20 62 65 20 66 6f |ll usual|ly be fo|
|00000ce0| 75 6e 64 20 69 6e 20 6f | 6e 65 0a 6f 66 20 74 68 |und in o|ne.of th|
|00000cf0| 72 65 65 20 70 6c 61 63 | 65 73 2c 20 69 6e 20 74 |ree plac|es, in t|
|00000d00| 68 65 20 53 79 73 74 65 | 6d 20 46 6f 6c 64 65 72 |he Syste|m Folder|
|00000d10| 2c 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 66 6f |, in the| same fo|
|00000d20| 6c 64 65 72 20 61 73 20 | 74 68 65 0a 61 70 70 6c |lder as |the.appl|
|00000d30| 69 63 61 74 69 6f 6e 20 | 6f 72 20 61 74 20 74 68 |ication |or at th|
|00000d40| 65 20 74 6f 70 20 6c 65 | 76 65 6c 20 6f 66 20 74 |e top le|vel of t|
|00000d50| 68 65 20 64 69 73 6b 2e | 0a 58 0a 58 35 29 20 55 |he disk.|.X.X5) U|
|00000d60| 70 6c 6f 61 64 20 74 68 | 65 20 50 6f 73 74 53 63 |pload th|e PostSc|
|00000d70| 72 69 70 74 20 66 69 6c | 65 28 73 29 20 74 6f 20 |ript fil|e(s) to |
|00000d80| 55 6e 69 78 2c 20 75 73 | 69 6e 67 20 73 6f 6d 65 |Unix, us|ing some|
|00000d90| 20 66 69 6c 65 20 74 72 | 61 6e 73 66 65 72 0a 70 | file tr|ansfer.p|
|00000da0| 72 6f 67 72 61 6d 20 6c | 69 6b 65 20 4d 61 63 54 |rogram l|ike MacT|
|00000db0| 65 72 6d 69 6e 61 6c 2c | 20 56 65 72 73 61 74 65 |erminal,| Versate|
|00000dc0| 72 6d 2c 20 52 65 64 20 | 52 79 64 65 72 2c 20 4d |rm, Red |Ryder, M|
|00000dd0| 61 63 4b 65 72 6d 69 74 | 20 6f 72 20 4e 43 53 41 |acKermit| or NCSA|
|00000de0| 0a 54 65 6c 6e 65 74 20 | 28 69 66 20 79 6f 75 72 |.Telnet |(if your|
|00000df0| 20 66 69 6c 65 20 74 72 | 61 6e 73 66 65 72 20 70 | file tr|ansfer p|
|00000e00| 72 6f 67 72 61 6d 20 66 | 65 65 6c 73 20 6c 65 66 |rogram f|eels lef|
|00000e10| 74 20 6f 75 74 2c 20 66 | 65 65 6c 20 66 72 65 65 |t out, f|eel free|
|00000e20| 20 74 6f 20 61 64 64 0a | 69 74 20 74 6f 20 79 6f | to add.|it to yo|
|00000e30| 75 72 20 6c 69 73 74 29 | 2e 0a 58 0a 58 36 29 20 |ur list)|..X.X6) |
|00000e40| 52 75 6e 20 70 72 65 70 | 66 69 78 20 6f 6e 20 65 |Run prep|fix on e|
|00000e50| 61 63 68 20 75 6e 70 72 | 6f 63 65 73 73 65 64 20 |ach unpr|ocessed |
|00000e60| 66 69 6c 65 2c 20 64 69 | 76 65 72 74 69 6e 67 20 |file, di|verting |
|00000e70| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6f 75 74 |the stan|dard out|
|00000e80| 70 75 74 0a 74 6f 20 61 | 6e 20 61 70 70 72 6f 70 |put.to a|n approp|
|00000e90| 72 69 61 74 61 6c 79 20 | 6e 61 6d 65 64 20 66 69 |riataly |named fi|
|00000ea0| 6c 65 20 28 6c 69 6b 65 | 20 4c 61 73 65 72 50 72 |le (like| LaserPr|
|00000eb0| 65 70 35 2e 32 29 2e 20 | 20 49 66 20 79 6f 75 20 |ep5.2). | If you |
|00000ec0| 77 61 6e 74 20 74 6f 0a | 61 6c 6c 6f 77 20 62 69 |want to.|allow bi|
|00000ed0| 74 20 73 6d 6f 6f 74 68 | 69 6e 67 20 6f 6e 20 61 |t smooth|ing on a|
|00000ee0| 20 6e 6f 6e 2d 41 70 70 | 6c 65 20 50 6f 73 74 53 | non-App|le PostS|
|00000ef0| 63 72 69 70 74 20 70 72 | 69 6e 74 65 72 2c 20 73 |cript pr|inter, s|
|00000f00| 70 65 63 69 66 79 20 74 | 68 65 20 2d 6c 0a 6f 70 |pecify t|he -l.op|
|00000f10| 74 69 6f 6e 20 74 6f 20 | 70 72 65 70 66 69 78 20 |tion to |prepfix |
|00000f20| 28 79 6f 75 20 63 61 6e | 20 73 70 65 63 69 66 79 |(you can| specify|
|00000f30| 20 61 73 20 6d 61 6e 79 | 20 70 72 69 6e 74 65 72 | as many| printer|
|00000f40| 20 6e 61 6d 65 73 20 61 | 73 20 79 6f 75 20 77 61 | names a|s you wa|
|00000f50| 6e 74 2c 0a 65 61 63 68 | 20 77 69 74 68 20 61 20 |nt,.each| with a |
|00000f60| 73 65 70 61 72 61 74 65 | 20 2d 6c 20 66 6c 61 67 |separate| -l flag|
|00000f70| 29 2e 20 20 49 66 20 79 | 6f 75 20 61 72 65 6e 27 |). If y|ou aren'|
|00000f80| 74 20 73 75 72 65 20 74 | 68 65 20 79 6f 75 72 20 |t sure t|he your |
|00000f90| 70 72 69 6e 74 65 72 20 | 63 61 6e 0a 64 6f 20 73 |printer |can.do s|
|00000fa0| 6d 6f 6f 74 68 69 6e 67 | 2c 20 79 6f 75 20 63 61 |moothing|, you ca|
|00000fb0| 6e 20 74 72 79 20 69 74 | 20 61 6e 64 20 73 65 65 |n try it| and see|
|00000fc0| 20 69 66 20 69 74 20 77 | 6f 72 6b 73 20 28 69 66 | if it w|orks (if|
|00000fd0| 20 69 74 20 64 6f 65 73 | 6e 27 74 2c 20 79 6f 75 | it does|n't, you|
|00000fe0| 0a 63 61 6e 20 61 6c 77 | 61 79 73 20 72 65 2d 72 |.can alw|ays re-r|
|00000ff0| 75 6e 20 70 72 65 70 66 | 69 78 20 6f 6e 20 74 68 |un prepf|ix on th|
|00001000| 65 20 75 6e 70 72 6f 63 | 65 73 73 65 64 20 66 69 |e unproc|essed fi|
|00001010| 6c 65 28 73 29 2c 20 6c | 65 61 76 69 6e 67 20 6f |le(s), l|eaving o|
|00001020| 66 66 20 74 68 65 0a 70 | 72 69 6e 74 65 72 20 74 |ff the.p|rinter t|
|00001030| 68 61 74 20 64 6f 65 73 | 6e 27 74 20 77 6f 72 6b |hat does|n't work|
|00001040| 29 2e 20 20 49 66 20 79 | 6f 75 20 64 6f 6e 27 74 |). If y|ou don't|
|00001050| 20 6b 6e 6f 77 20 74 68 | 65 20 70 72 6f 64 75 63 | know th|e produc|
|00001060| 74 20 6e 61 6d 65 20 66 | 6f 72 20 79 6f 75 0a 70 |t name f|or you.p|
|00001070| 72 69 6e 74 65 72 2c 20 | 79 6f 75 20 63 61 6e 20 |rinter, |you can |
|00001080| 75 73 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |use the |followin|
|00001090| 67 20 50 6f 73 74 53 63 | 72 69 70 74 20 63 6f 64 |g PostSc|ript cod|
|000010a0| 65 20 74 6f 20 70 72 69 | 6e 74 20 69 74 3a 0a 58 |e to pri|nt it:.X|
|000010b0| 0a 58 25 21 0a 58 2f 69 | 6e 20 7b 37 32 20 6d 75 |.X%!.X/i|n {72 mu|
|000010c0| 6c 7d 20 64 65 66 0a 58 | 2f 43 6f 75 72 69 65 72 |l} def.X|/Courier|
|000010d0| 20 66 69 6e 64 66 6f 6e | 74 20 31 38 20 73 63 61 | findfon|t 18 sca|
|000010e0| 6c 65 66 6f 6e 74 20 73 | 65 74 66 6f 6e 74 0a 58 |lefont s|etfont.X|
|000010f0| 31 20 69 6e 20 38 20 69 | 6e 20 6d 6f 76 65 74 6f |1 in 8 i|n moveto|
|00001100| 0a 73 74 61 74 75 73 64 | 69 63 74 20 2f 70 72 6f |.statusd|ict /pro|
|00001110| 64 75 63 74 20 67 65 74 | 20 73 68 6f 77 0a 73 68 |duct get| show.sh|
|00001120| 6f 77 70 61 67 65 0a 58 | 0a 58 37 29 20 50 75 74 |owpage.X|.X7) Put|
|00001130| 20 74 68 65 20 6d 6f 64 | 69 66 69 65 64 20 4c 61 | the mod|ified La|
|00001140| 73 65 72 50 72 65 70 20 | 66 69 6c 65 28 73 29 20 |serPrep |file(s) |
|00001150| 69 6e 20 73 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |in some |director|
|00001160| 79 20 61 6e 64 20 6d 6f | 64 69 66 79 20 74 68 65 |y and mo|dify the|
|00001170| 0a 6d 61 63 70 73 2e 63 | 6f 6e 66 69 67 20 66 69 |.macps.c|onfig fi|
|00001180| 6c 65 20 74 6f 20 70 6f | 69 6e 74 20 74 6f 20 74 |le to po|int to t|
|00001190| 68 65 73 65 20 4c 61 73 | 65 72 50 72 65 70 20 66 |hese Las|erPrep f|
|000011a0| 69 6c 65 73 2e 20 20 54 | 68 65 6e 20 70 75 74 20 |iles. T|hen put |
|000011b0| 74 68 65 0a 6d 61 63 70 | 73 2e 63 6f 6e 66 69 67 |the.macp|s.config|
|000011c0| 20 66 69 6c 65 20 69 6e | 20 61 20 22 6c 69 62 22 | file in| a "lib"|
|000011d0| 20 73 75 62 64 69 72 65 | 63 74 6f 72 79 20 74 6f | subdire|ctory to|
|000011e0| 20 77 68 65 72 65 20 79 | 6f 75 20 69 6e 73 74 61 | where y|ou insta|
|000011f0| 6c 6c 20 6d 61 63 70 73 | 0a 58 28 6f 72 20 69 6e |ll macps|.X(or in|
|00001200| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 20 43 | the dir|ectory C|
|00001210| 4f 4e 46 49 47 44 49 52 | 20 69 66 20 79 6f 75 20 |ONFIGDIR| if you |
|00001220| 75 73 65 64 20 74 68 61 | 74 20 6f 70 74 69 6f 6e |used tha|t option|
|00001230| 29 2e 0a 58 0a 58 38 29 | 20 4e 6f 77 20 77 68 65 |)..X.X8)| Now whe|
|00001240| 6e 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 70 72 |n you wa|nt to pr|
|00001250| 69 6e 74 20 73 6f 6d 65 | 74 68 69 6e 67 2c 20 64 |int some|thing, d|
|00001260| 6f 20 74 68 65 20 73 61 | 6d 65 20 74 68 69 6e 67 |o the sa|me thing|
|00001270| 20 61 73 20 69 6e 20 73 | 74 65 70 20 34 0a 61 62 | as in s|tep 4.ab|
|00001280| 6f 76 65 20 77 69 74 68 | 20 74 68 65 20 4c 61 73 |ove with| the Las|
|00001290| 65 72 57 72 69 74 65 72 | 20 70 72 69 6e 74 20 64 |erWriter| print d|
|000012a0| 69 61 6c 6f 67 2c 20 65 | 78 63 65 70 74 20 70 72 |ialog, e|xcept pr|
|000012b0| 65 73 73 20 61 6e 64 20 | 68 6f 6c 64 0a 43 6f 6d |ess and |hold.Com|
|000012c0| 6d 61 6e 64 2d 46 20 28 | 74 68 69 73 20 63 61 75 |mand-F (|this cau|
|000012d0| 73 65 20 4c 61 73 65 72 | 50 72 65 70 20 6e 6f 74 |se Laser|Prep not|
|000012e0| 20 74 6f 20 62 65 20 69 | 6e 63 6c 75 64 65 64 20 | to be i|ncluded |
|000012f0| 69 6e 20 74 68 65 20 50 | 6f 73 74 53 63 72 69 70 |in the P|ostScrip|
|00001300| 74 0a 66 69 6c 65 29 2e | 0a 58 0a 58 39 29 20 55 |t.file).|.X.X9) U|
|00001310| 70 6c 6f 61 64 20 74 68 | 65 20 50 6f 73 74 53 63 |pload th|e PostSc|
|00001320| 72 69 70 74 20 66 69 6c | 65 20 61 6e 64 20 72 75 |ript fil|e and ru|
|00001330| 6e 20 6d 61 63 70 73 20 | 6f 6e 20 69 74 2c 20 73 |n macps |on it, s|
|00001340| 65 6e 64 69 6e 67 20 74 | 68 65 20 6f 75 74 70 75 |ending t|he outpu|
|00001350| 74 0a 74 6f 20 79 6f 75 | 72 20 70 72 69 6e 74 65 |t.to you|r printe|
|00001360| 72 2c 20 61 73 20 69 6e | 3a 0a 58 0a 58 09 25 20 |r, as in|:.X.X.% |
|00001370| 6d 61 63 70 73 20 70 73 | 66 69 6c 65 20 7c 20 6c |macps ps|file | l|
|00001380| 70 72 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |pr.END_O|F_FILE.i|
|00001390| 66 20 74 65 73 74 20 33 | 34 38 35 20 2d 6e 65 20 |f test 3|485 -ne |
|000013a0| 60 77 63 20 2d 63 20 3c | 27 49 6e 73 74 61 6c 6c |`wc -c <|'Install|
|000013b0| 61 74 69 6f 6e 27 60 3b | 20 74 68 65 6e 0a 20 20 |ation'`;| then. |
|000013c0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|000013d0| 49 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 27 5c 22 20 |Installa|tion'\" |
|000013e0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000013f0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00001400| 6e 64 20 6f 66 20 27 49 | 6e 73 74 61 6c 6c 61 74 |nd of 'I|nstallat|
|00001410| 69 6f 6e 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |ion'.fi.|if test |
|00001420| 2d 66 20 27 4d 41 4e 49 | 46 45 53 54 27 20 2d 61 |-f 'MANI|FEST' -a|
|00001430| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00001440| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00001450| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00001460| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00001470| 69 6c 65 20 5c 22 27 4d | 41 4e 49 46 45 53 54 27 |ile \"'M|ANIFEST'|
|00001480| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00001490| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000014a0| 27 4d 41 4e 49 46 45 53 | 54 27 5c 22 20 5c 28 35 |'MANIFES|T'\" \(5|
|000014b0| 31 37 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |17 chara|cters\).|
|000014c0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 4d |sed "s/^|X//" >'M|
|000014d0| 41 4e 49 46 45 53 54 27 | 20 3c 3c 27 45 4e 44 5f |ANIFEST'| <<'END_|
|000014e0| 4f 46 5f 46 49 4c 45 27 | 0a 58 20 20 20 46 69 6c |OF_FILE'|.X Fil|
|000014f0| 65 20 4e 61 6d 65 09 09 | 41 72 63 68 69 76 65 20 |e Name..|Archive |
|00001500| 23 09 44 65 73 63 72 69 | 70 74 69 6f 6e 0a 58 2d |#.Descri|ption.X-|
|00001510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 20 49 6e 73 |--------|--.X Ins|
|00001550| 74 61 6c 6c 61 74 69 6f | 6e 20 20 20 20 20 20 20 |tallatio|n |
|00001560| 20 20 20 20 20 20 20 20 | 31 09 0a 58 20 4d 41 4e | |1..X MAN|
|00001570| 49 46 45 53 54 20 20 20 | 20 20 20 20 20 20 20 20 |IFEST | |
|00001580| 20 20 20 20 20 20 20 20 | 31 09 54 68 69 73 20 73 | |1.This s|
|00001590| 68 69 70 70 69 6e 67 20 | 6c 69 73 74 0a 58 20 4d |hipping |list.X M|
|000015a0| 61 6b 65 66 69 6c 65 20 | 20 20 20 20 20 20 20 20 |akefile | |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 52 | | 1..X R|
|000015c0| 65 61 64 4d 65 20 20 20 | 20 20 20 20 20 20 20 20 |eadMe | |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 6d | | 1..X m|
|000015e0| 61 63 61 75 78 2e 63 20 | 20 20 20 20 20 20 20 20 |acaux.c | |
|000015f0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 6d | | 1..X m|
|00001600| 61 63 70 73 2e 31 20 20 | 20 20 20 20 20 20 20 20 |acps.1 | |
|00001610| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 6d | | 1..X m|
|00001620| 61 63 70 73 2e 63 20 20 | 20 20 20 20 20 20 20 20 |acps.c | |
|00001630| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 6d | | 1..X m|
|00001640| 61 63 70 73 2e 63 6f 6e | 66 69 67 20 20 20 20 20 |acps.con|fig |
|00001650| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 70 | | 1..X p|
|00001660| 72 65 70 66 69 78 2e 31 | 20 20 20 20 20 20 20 20 |repfix.1| |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 70 | | 1..X p|
|00001680| 72 65 70 66 69 78 2e 63 | 20 20 20 20 20 20 20 20 |repfix.c| |
|00001690| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 73 | | 1..X s|
|000016a0| 74 72 2e 68 20 20 20 20 | 20 20 20 20 20 20 20 20 |tr.h | |
|000016b0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 75 | | 1..X u|
|000016c0| 63 62 77 68 69 63 68 2e | 63 20 20 20 20 20 20 20 |cbwhich.|c |
|000016d0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 20 75 | | 1..X u|
|000016e0| 63 62 77 68 69 63 68 2e | 68 20 20 20 20 20 20 20 |cbwhich.|h |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 45 4e 44 | | 1..END|
|00001700| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00001710| 20 35 31 37 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 | 517 -ne| `wc -c |
|00001720| 3c 27 4d 41 4e 49 46 45 | 53 54 27 60 3b 20 74 68 |<'MANIFE|ST'`; th|
|00001730| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00001740| 3a 20 5c 22 27 4d 41 4e | 49 46 45 53 54 27 5c 22 |: \"'MAN|IFEST'\"|
|00001750| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00001760| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00001770| 65 6e 64 20 6f 66 20 27 | 4d 41 4e 49 46 45 53 54 |end of '|MANIFEST|
|00001780| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00001790| 27 4d 61 6b 65 66 69 6c | 65 27 20 2d 61 20 22 24 |'Makefil|e' -a "$|
|000017a0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000017b0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000017c0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000017d0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000017e0| 20 5c 22 27 4d 61 6b 65 | 66 69 6c 65 27 5c 22 0a | \"'Make|file'\".|
|000017f0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00001800| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 4d 61 |Extracti|ng \"'Ma|
|00001810| 6b 65 66 69 6c 65 27 5c | 22 20 5c 28 31 33 33 38 |kefile'\|" \(1338|
|00001820| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00001830| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 4d 61 6b |d "s/^X/|/" >'Mak|
|00001840| 65 66 69 6c 65 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |efile' <|<'END_OF|
|00001850| 5f 46 49 4c 45 27 0a 58 | 23 20 43 6f 70 79 72 69 |_FILE'.X|# Copyri|
|00001860| 67 68 74 20 28 63 29 20 | 31 39 38 38 2c 20 54 68 |ght (c) |1988, Th|
|00001870| 65 20 52 65 67 65 6e 74 | 73 20 6f 66 20 74 68 65 |e Regent|s of the|
|00001880| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00001890| 61 6c 69 66 6f 72 6e 69 | 61 2e 0a 58 23 20 45 64 |aliforni|a..X# Ed|
|000018a0| 77 61 72 64 20 4d 6f 79 | 2c 20 57 6f 72 6b 73 74 |ward Moy|, Workst|
|000018b0| 61 74 69 6f 6e 20 53 6f | 66 74 77 61 72 65 20 53 |ation So|ftware S|
|000018c0| 75 70 70 6f 72 74 20 47 | 72 6f 75 70 2c 20 57 6f |upport G|roup, Wo|
|000018d0| 72 6b 73 74 61 74 69 6f | 6e 20 53 75 70 70 6f 72 |rkstatio|n Suppor|
|000018e0| 74 20 53 65 72 69 63 65 | 73 2c 0a 58 23 20 49 6e |t Serice|s,.X# In|
|000018f0| 66 6f 72 6d 61 74 69 6f | 6e 20 53 79 73 74 65 6d |formatio|n System|
|00001900| 73 20 61 6e 64 20 54 65 | 63 68 6e 6f 6c 6f 67 79 |s and Te|chnology|
|00001910| 2e 0a 58 23 0a 58 23 20 | 50 65 72 6d 69 73 73 69 |..X#.X# |Permissi|
|00001920| 6f 6e 20 69 73 20 67 72 | 61 6e 74 65 64 20 74 6f |on is gr|anted to|
|00001930| 20 61 6e 79 20 69 6e 64 | 69 76 69 64 75 61 6c 20 | any ind|ividual |
|00001940| 6f 72 20 69 6e 73 74 69 | 74 75 74 69 6f 6e 20 74 |or insti|tution t|
|00001950| 6f 20 75 73 65 2c 20 63 | 6f 70 79 2c 0a 58 23 20 |o use, c|opy,.X# |
|00001960| 6f 72 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |or redis|tribute |
|00001970| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 73 6f |this sof|tware so|
|00001980| 20 6c 6f 6e 67 20 61 73 | 20 69 74 20 69 73 20 6e | long as| it is n|
|00001990| 6f 74 20 73 6f 6c 64 20 | 66 6f 72 20 70 72 6f 66 |ot sold |for prof|
|000019a0| 69 74 2c 0a 58 23 20 70 | 72 6f 76 69 64 65 64 20 |it,.X# p|rovided |
|000019b0| 74 68 61 74 20 74 68 69 | 73 20 6e 6f 74 69 63 65 |that thi|s notice|
|000019c0| 20 61 6e 64 20 74 68 65 | 20 6f 72 69 67 69 6e 61 | and the| origina|
|000019d0| 6c 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |l copyri|ght noti|
|000019e0| 63 65 73 20 61 72 65 0a | 58 23 20 72 65 74 61 69 |ces are.|X# retai|
|000019f0| 6e 65 64 2e 20 20 54 68 | 65 20 55 6e 69 76 65 72 |ned. Th|e Univer|
|00001a00| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00001a10| 69 61 20 6d 61 6b 65 73 | 20 6e 6f 20 72 65 70 72 |ia makes| no repr|
|00001a20| 65 73 65 6e 74 61 74 69 | 6f 6e 73 20 61 62 6f 75 |esentati|ons abou|
|00001a30| 74 20 74 68 65 0a 58 23 | 20 73 75 69 74 61 62 69 |t the.X#| suitabi|
|00001a40| 6c 69 74 79 20 6f 66 20 | 74 68 69 73 20 73 6f 66 |lity of |this sof|
|00001a50| 74 77 61 72 65 20 66 6f | 72 20 61 6e 79 20 70 75 |tware fo|r any pu|
|00001a60| 72 70 6f 73 65 2e 20 20 | 49 74 20 69 73 20 70 72 |rpose. |It is pr|
|00001a70| 6f 76 69 64 65 64 20 22 | 61 73 20 69 73 22 0a 58 |ovided "|as is".X|
|00001a80| 23 20 77 69 74 68 6f 75 | 74 20 65 78 70 72 65 73 |# withou|t expres|
|00001a90| 73 20 6f 72 20 69 6d 70 | 6c 69 65 64 20 77 61 72 |s or imp|lied war|
|00001aa0| 72 61 6e 74 79 2e 0a 58 | 23 0a 58 23 20 53 43 43 |ranty..X|#.X# SCC|
|00001ab0| 53 69 64 20 3d 20 22 40 | 28 23 29 4d 61 6b 65 66 |Sid = "@|(#)Makef|
|00001ac0| 69 6c 65 09 32 2e 32 20 | 31 30 2f 32 34 2f 38 39 |ile.2.2 |10/24/89|
|00001ad0| 22 0a 58 23 0a 58 23 20 | 46 6f 72 20 53 79 73 74 |".X#.X# |For Syst|
|00001ae0| 65 6d 20 56 2c 20 69 6e | 63 6c 75 64 65 20 2d 44 |em V, in|clude -D|
|00001af0| 53 59 53 56 20 69 6e 20 | 43 46 4c 41 47 53 20 62 |SYSV in |CFLAGS b|
|00001b00| 65 6c 6f 77 2e 0a 58 23 | 20 54 6f 20 73 70 65 63 |elow..X#| To spec|
|00001b10| 69 66 79 20 61 20 66 69 | 78 65 64 20 70 61 74 68 |ify a fi|xed path|
|00001b20| 20 66 6f 72 20 6d 61 63 | 70 73 2e 63 6f 6e 66 69 | for mac|ps.confi|
|00001b30| 67 2c 20 69 6e 63 6c 75 | 64 65 20 2d 44 43 4f 4e |g, inclu|de -DCON|
|00001b40| 46 49 47 44 49 52 3d 5c | 22 70 61 74 68 5c 22 0a |FIGDIR=\|"path\".|
|00001b50| 58 23 20 69 6e 20 43 46 | 4c 41 47 53 20 62 65 6c |X# in CF|LAGS bel|
|00001b60| 6f 77 20 28 70 61 74 68 | 20 69 73 20 74 68 65 20 |ow (path| is the |
|00001b70| 66 75 6c 6c 20 70 61 74 | 68 6e 61 6d 65 20 6f 66 |full pat|hname of|
|00001b80| 20 74 68 65 20 64 69 72 | 65 63 74 6f 72 79 29 2e | the dir|ectory).|
|00001b90| 0a 58 23 20 54 6f 20 64 | 6f 20 73 61 76 65 2f 72 |.X# To d|o save/r|
|00001ba0| 65 73 74 6f 72 65 20 63 | 6f 6e 74 65 78 74 2c 20 |estore c|ontext, |
|00001bb0| 69 6e 63 6c 75 64 65 20 | 2d 44 53 41 56 45 20 69 |include |-DSAVE i|
|00001bc0| 6e 20 43 46 4c 41 47 53 | 20 62 65 6c 6f 77 2e 0a |n CFLAGS| below..|
|00001bd0| 58 23 0a 43 46 4c 41 47 | 53 20 3d 20 2d 4f 0a 4d |X#.CFLAG|S = -O.M|
|00001be0| 41 43 50 53 20 3d 20 6d | 61 63 70 73 2e 6f 20 6d |ACPS = m|acps.o m|
|00001bf0| 61 63 61 75 78 2e 6f 20 | 75 63 62 77 68 69 63 68 |acaux.o |ucbwhich|
|00001c00| 2e 6f 0a 50 52 45 50 46 | 49 58 20 3d 20 70 72 65 |.o.PREPF|IX = pre|
|00001c10| 70 66 69 78 2e 6f 20 6d | 61 63 61 75 78 2e 6f 0a |pfix.o m|acaux.o.|
|00001c20| 44 45 53 54 50 41 54 48 | 20 3d 20 2f 75 73 72 2f |DESTPATH| = /usr/|
|00001c30| 6c 6f 63 61 6c 0a 58 0a | 61 6c 6c 20 3a 20 6d 61 |local.X.|all : ma|
|00001c40| 63 70 73 20 70 72 65 70 | 66 69 78 0a 58 0a 69 6e |cps prep|fix.X.in|
|00001c50| 73 74 61 6c 6c 20 3a 0a | 58 09 69 6e 73 74 61 6c |stall :.|X.instal|
|00001c60| 6c 20 2d 63 20 6d 61 63 | 70 73 20 24 28 44 45 53 |l -c mac|ps $(DES|
|00001c70| 54 50 41 54 48 29 2f 62 | 69 6e 2f 6d 61 63 70 73 |TPATH)/b|in/macps|
|00001c80| 0a 58 09 69 6e 73 74 61 | 6c 6c 20 2d 63 20 6d 61 |.X.insta|ll -c ma|
|00001c90| 63 70 73 2e 31 20 24 28 | 44 45 53 54 50 41 54 48 |cps.1 $(|DESTPATH|
|00001ca0| 29 2f 6d 61 6e 2f 6d 61 | 6e 31 2f 6d 61 63 70 73 |)/man/ma|n1/macps|
|00001cb0| 2e 31 0a 58 09 69 6e 73 | 74 61 6c 6c 20 2d 63 20 |.1.X.ins|tall -c |
|00001cc0| 70 72 65 70 66 69 78 20 | 24 28 44 45 53 54 50 41 |prepfix |$(DESTPA|
|00001cd0| 54 48 29 2f 62 69 6e 2f | 70 72 65 70 66 69 78 0a |TH)/bin/|prepfix.|
|00001ce0| 58 09 69 6e 73 74 61 6c | 6c 20 2d 63 20 70 72 65 |X.instal|l -c pre|
|00001cf0| 70 66 69 78 2e 31 20 24 | 28 44 45 53 54 50 41 54 |pfix.1 $|(DESTPAT|
|00001d00| 48 29 2f 6d 61 6e 2f 6d | 61 6e 31 2f 70 72 65 70 |H)/man/m|an1/prep|
|00001d10| 66 69 78 2e 31 0a 58 0a | 6d 61 63 70 73 20 3a 20 |fix.1.X.|macps : |
|00001d20| 24 28 4d 41 43 50 53 29 | 0a 58 09 63 63 20 2d 6f |$(MACPS)|.X.cc -o|
|00001d30| 20 6d 61 63 70 73 20 24 | 28 43 46 4c 41 47 53 29 | macps $|(CFLAGS)|
|00001d40| 20 24 28 4d 41 43 50 53 | 29 0a 58 0a 70 72 65 70 | $(MACPS|).X.prep|
|00001d50| 66 69 78 20 3a 20 24 28 | 50 52 45 50 46 49 58 29 |fix : $(|PREPFIX)|
|00001d60| 0a 58 09 63 63 20 2d 6f | 20 70 72 65 70 66 69 78 |.X.cc -o| prepfix|
|00001d70| 20 24 28 43 46 4c 41 47 | 53 29 20 24 28 50 52 45 | $(CFLAG|S) $(PRE|
|00001d80| 50 46 49 58 29 0a 58 0a | 63 6c 65 61 6e 20 3a 0a |PFIX).X.|clean :.|
|00001d90| 58 09 2f 62 69 6e 2f 72 | 6d 20 2d 66 20 2a 2e 6f |X./bin/r|m -f *.o|
|00001da0| 20 6d 61 63 70 73 20 70 | 72 65 70 66 69 78 0a 45 | macps p|repfix.E|
|00001db0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00001dc0| 73 74 20 31 33 33 38 20 | 2d 6e 65 20 60 77 63 20 |st 1338 |-ne `wc |
|00001dd0| 2d 63 20 3c 27 4d 61 6b | 65 66 69 6c 65 27 60 3b |-c <'Mak|efile'`;|
|00001de0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001df0| 68 61 72 3a 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |har: \"'|Makefile|
|00001e00| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00001e10| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00001e20| 0a 23 20 65 6e 64 20 6f | 66 20 27 4d 61 6b 65 66 |.# end o|f 'Makef|
|00001e30| 69 6c 65 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |ile'.fi.|if test |
|00001e40| 2d 66 20 27 52 65 61 64 | 4d 65 27 20 2d 61 20 22 |-f 'Read|Me' -a "|
|00001e50| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00001e60| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00001e70| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00001e80| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00001e90| 65 20 5c 22 27 52 65 61 | 64 4d 65 27 5c 22 0a 65 |e \"'Rea|dMe'\".e|
|00001ea0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00001eb0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 52 65 61 |xtractin|g \"'Rea|
|00001ec0| 64 4d 65 27 5c 22 20 5c | 28 34 36 38 32 20 63 68 |dMe'\" \|(4682 ch|
|00001ed0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00001ee0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 52 65 61 64 4d 65 |s/^X//" |>'ReadMe|
|00001ef0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00001f00| 27 0a 43 4f 50 59 52 49 | 47 48 54 20 4e 4f 54 49 |'.COPYRI|GHT NOTI|
|00001f10| 43 45 20 28 53 43 43 53 | 69 64 20 3d 20 22 40 28 |CE (SCCS|id = "@(|
|00001f20| 23 29 52 65 61 64 4d 65 | 09 32 2e 32 20 31 30 2f |#)ReadMe|.2.2 10/|
|00001f30| 32 34 2f 38 39 22 29 0a | 58 0a 43 6f 70 79 72 69 |24/89").|X.Copyri|
|00001f40| 67 68 74 20 28 63 29 20 | 31 39 38 38 2c 20 54 68 |ght (c) |1988, Th|
|00001f50| 65 20 52 65 67 65 6e 74 | 73 20 6f 66 20 74 68 65 |e Regent|s of the|
|00001f60| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 43 | Univers|ity of C|
|00001f70| 61 6c 69 66 6f 72 6e 69 | 61 2e 0a 58 45 64 77 61 |aliforni|a..XEdwa|
|00001f80| 72 64 20 4d 6f 79 2c 20 | 57 6f 72 6b 73 74 61 74 |rd Moy, |Workstat|
|00001f90| 69 6f 6e 20 53 6f 66 74 | 77 61 72 65 20 53 75 70 |ion Soft|ware Sup|
|00001fa0| 70 6f 72 74 20 47 72 6f | 75 70 2c 20 57 6f 72 6b |port Gro|up, Work|
|00001fb0| 73 74 61 74 69 6f 6e 20 | 53 75 70 70 6f 72 74 0a |station |Support.|
|00001fc0| 53 65 72 69 63 65 73 2c | 20 49 6e 66 6f 72 6d 61 |Serices,| Informa|
|00001fd0| 74 69 6f 6e 20 53 79 73 | 74 65 6d 73 20 61 6e 64 |tion Sys|tems and|
|00001fe0| 20 54 65 63 68 6e 6f 6c | 6f 67 79 2e 0a 58 0a 50 | Technol|ogy..X.P|
|00001ff0| 65 72 6d 69 73 73 69 6f | 6e 20 69 73 20 67 72 61 |ermissio|n is gra|
|00002000| 6e 74 65 64 20 74 6f 20 | 61 6e 79 20 69 6e 64 69 |nted to |any indi|
|00002010| 76 69 64 75 61 6c 20 6f | 72 20 69 6e 73 74 69 74 |vidual o|r instit|
|00002020| 75 74 69 6f 6e 20 74 6f | 20 75 73 65 2c 20 63 6f |ution to| use, co|
|00002030| 70 79 2c 20 6f 72 0a 72 | 65 64 69 73 74 72 69 62 |py, or.r|edistrib|
|00002040| 75 74 65 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |ute this| softwar|
|00002050| 65 20 73 6f 20 6c 6f 6e | 67 20 61 73 20 69 74 20 |e so lon|g as it |
|00002060| 69 73 20 6e 6f 74 20 73 | 6f 6c 64 20 66 6f 72 20 |is not s|old for |
|00002070| 70 72 6f 66 69 74 2c 0a | 70 72 6f 76 69 64 65 64 |profit,.|provided|
|00002080| 20 74 68 61 74 20 74 68 | 69 73 20 6e 6f 74 69 63 | that th|is notic|
|00002090| 65 20 61 6e 64 20 74 68 | 65 20 6f 72 69 67 69 6e |e and th|e origin|
|000020a0| 61 6c 20 63 6f 70 79 72 | 69 67 68 74 20 6e 6f 74 |al copyr|ight not|
|000020b0| 69 63 65 73 20 61 72 65 | 0a 72 65 74 61 69 6e 65 |ices are|.retaine|
|000020c0| 64 2e 20 20 54 68 65 20 | 55 6e 69 76 65 72 73 69 |d. The |Universi|
|000020d0| 74 79 20 6f 66 20 43 61 | 6c 69 66 6f 72 6e 69 61 |ty of Ca|lifornia|
|000020e0| 20 6d 61 6b 65 73 20 6e | 6f 20 72 65 70 72 65 73 | makes n|o repres|
|000020f0| 65 6e 74 61 74 69 6f 6e | 73 20 61 62 6f 75 74 0a |entation|s about.|
|00002100| 74 68 65 20 73 75 69 74 | 61 62 69 6c 69 74 79 20 |the suit|ability |
|00002110| 6f 66 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |of this |software|
|00002120| 20 66 6f 72 20 61 6e 79 | 20 70 75 72 70 6f 73 65 | for any| purpose|
|00002130| 2e 20 20 49 74 20 69 73 | 20 70 72 6f 76 69 64 65 |. It is| provide|
|00002140| 64 20 22 61 73 0a 69 73 | 22 20 77 69 74 68 6f 75 |d "as.is|" withou|
|00002150| 74 20 65 78 70 72 65 73 | 73 20 6f 72 20 69 6d 70 |t expres|s or imp|
|00002160| 6c 69 65 64 20 77 61 72 | 72 61 6e 74 79 2e 0a 58 |lied war|ranty..X|
|00002170| 0a 57 48 41 54 20 49 53 | 20 4d 41 43 50 53 3f 0a |.WHAT IS| MACPS?.|
|00002180| 58 0a 4d 61 63 70 73 20 | 69 73 20 61 20 55 6e 69 |X.Macps |is a Uni|
|00002190| 78 20 70 72 6f 67 72 61 | 6d 20 74 68 61 74 20 74 |x progra|m that t|
|000021a0| 61 6b 65 73 20 61 6e 20 | 75 70 6c 6f 61 64 65 64 |akes an |uploaded|
|000021b0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 66 69 6c 65 | PostScr|ipt file|
|000021c0| 20 63 72 65 61 74 65 64 | 0a 6f 6e 20 61 20 4d 61 | created|.on a Ma|
|000021d0| 63 69 6e 74 6f 73 68 20 | 28 62 79 20 74 79 70 69 |cintosh |(by typi|
|000021e0| 6e 67 20 43 6f 6d 6d 61 | 6e 64 2d 46 20 61 74 20 |ng Comma|nd-F at |
|000021f0| 74 68 65 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |the Lase|rWriter |
|00002200| 64 69 61 6c 6f 67 20 62 | 6f 78 3b 20 73 65 65 0a |dialog b|ox; see.|
|00002210| 6d 61 63 70 73 2e 31 20 | 66 6f 72 20 6d 6f 72 65 |macps.1 |for more|
|00002220| 20 64 65 74 61 69 6c 73 | 29 20 61 6e 64 20 69 6e | details|) and in|
|00002230| 63 6c 75 64 65 73 20 61 | 6e 20 61 70 70 72 6f 70 |cludes a|n approp|
|00002240| 72 69 61 74 65 6c 79 20 | 6d 6f 64 69 66 69 65 64 |riately |modified|
|00002250| 0a 4c 61 73 65 72 50 72 | 65 70 20 66 69 6c 65 20 |.LaserPr|ep file |
|00002260| 73 6f 20 74 68 61 74 20 | 74 68 65 20 72 65 73 75 |so that |the resu|
|00002270| 6c 74 20 63 61 6e 20 62 | 65 20 73 65 6e 74 20 74 |lt can b|e sent t|
|00002280| 6f 20 61 20 50 6f 73 74 | 53 63 72 69 70 74 20 70 |o a Post|Script p|
|00002290| 72 69 6e 74 65 72 0a 58 | 3e 46 72 6f 6d 20 55 6e |rinter.X|>From Un|
|000022a0| 69 78 2e 20 20 54 68 65 | 20 4c 61 73 65 72 50 72 |ix. The| LaserPr|
|000022b0| 65 70 20 66 69 6c 65 20 | 63 6f 6e 74 61 69 6e 73 |ep file |contains|
|000022c0| 20 6d 61 63 72 6f 73 20 | 75 73 65 64 20 62 79 20 | macros |used by |
|000022d0| 74 68 65 20 50 6f 73 74 | 53 63 72 69 70 74 0a 67 |the Post|Script.g|
|000022e0| 65 6e 65 72 61 74 6f 72 | 20 6f 6e 20 74 68 65 20 |enerator| on the |
|000022f0| 4d 61 63 69 6e 74 6f 73 | 68 2e 0a 58 0a 57 48 59 |Macintos|h..X.WHY|
|00002300| 20 49 53 20 4d 41 43 50 | 53 20 4e 45 45 44 45 44 | IS MACP|S NEEDED|
|00002310| 3f 0a 58 0a 54 68 69 73 | 20 69 73 20 68 6f 77 20 |?.X.This| is how |
|00002320| 4d 61 63 20 70 72 69 6e | 74 69 6e 67 20 77 6f 72 |Mac prin|ting wor|
|00002330| 6b 73 2e 20 20 57 68 65 | 6e 20 61 20 4d 61 63 20 |ks. Whe|n a Mac |
|00002340| 74 61 6c 6b 73 20 74 6f | 20 61 20 4c 61 73 65 72 |talks to| a Laser|
|00002350| 57 72 69 74 65 72 2c 20 | 69 74 0a 61 73 6b 73 20 |Writer, |it.asks |
|00002360| 69 66 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |if the L|aserWrit|
|00002370| 65 72 20 68 61 73 20 68 | 61 64 20 61 20 4c 61 73 |er has h|ad a Las|
|00002380| 65 72 50 72 65 70 20 66 | 69 6c 65 20 64 6f 77 6e |erPrep f|ile down|
|00002390| 6c 6f 61 64 65 64 20 74 | 6f 20 69 74 2e 20 20 41 |loaded t|o it. A|
|000023a0| 0a 4c 61 73 65 72 57 72 | 69 74 65 72 20 74 68 61 |.LaserWr|iter tha|
|000023b0| 74 20 69 73 20 66 69 72 | 73 74 20 70 6f 77 65 72 |t is fir|st power|
|000023c0| 65 64 20 75 70 2c 20 68 | 61 73 20 6e 6f 20 73 75 |ed up, h|as no su|
|000023d0| 63 68 20 4c 61 73 65 72 | 50 72 65 70 20 66 69 6c |ch Laser|Prep fil|
|000023e0| 65 2c 20 61 6e 64 0a 73 | 6f 20 74 68 65 20 4d 61 |e, and.s|o the Ma|
|000023f0| 63 20 64 6f 77 6e 6c 6f | 61 64 73 20 69 74 20 61 |c downlo|ads it a|
|00002400| 6e 64 20 6d 61 6b 65 73 | 20 74 68 65 20 4c 61 73 |nd makes| the Las|
|00002410| 65 72 50 72 65 70 20 66 | 69 6c 65 20 72 65 73 69 |erPrep f|ile resi|
|00002420| 64 65 6e 74 20 69 6e 0a | 6d 65 6d 6f 72 79 2e 20 |dent in.|memory. |
|00002430| 20 54 68 65 6e 20 74 68 | 65 20 61 63 74 75 61 6c | Then th|e actual|
|00002440| 20 70 72 69 6e 74 20 66 | 69 6c 65 20 69 73 20 73 | print f|ile is s|
|00002450| 65 6e 74 20 74 6f 20 74 | 68 65 20 4c 61 73 65 72 |ent to t|he Laser|
|00002460| 57 72 69 74 65 72 2e 0a | 53 75 62 73 65 71 75 65 |Writer..|Subseque|
|00002470| 6e 74 20 70 72 69 6e 74 | 20 72 65 71 75 65 73 74 |nt print| request|
|00002480| 73 20 6e 65 65 64 20 6e | 6f 74 20 64 6f 77 6e 6c |s need n|ot downl|
|00002490| 6f 61 64 20 74 68 65 20 | 4c 61 73 65 72 50 72 65 |oad the |LaserPre|
|000024a0| 70 20 66 69 6c 65 2c 20 | 75 6e 6c 65 73 73 0a 69 |p file, |unless.i|
|000024b0| 74 20 69 73 20 61 20 64 | 69 66 66 65 72 65 6e 74 |t is a d|ifferent|
|000024c0| 20 76 65 72 73 69 6f 6e | 2e 0a 58 0a 53 69 6e 63 | version|..X.Sinc|
|000024d0| 65 20 61 20 4c 61 73 65 | 72 57 72 69 74 65 72 20 |e a Lase|rWriter |
|000024e0| 63 6f 6e 6e 65 63 74 65 | 64 20 74 6f 20 61 20 55 |connecte|d to a U|
|000024f0| 6e 69 78 20 73 79 73 74 | 65 6d 20 75 73 75 61 6c |nix syst|em usual|
|00002500| 6c 79 20 64 6f 65 73 20 | 74 68 69 6e 67 73 0a 6f |ly does |things.o|
|00002510| 74 68 65 72 20 74 68 61 | 6e 20 4d 61 63 20 70 72 |ther tha|n Mac pr|
|00002520| 69 6e 74 69 6e 67 2c 20 | 69 74 20 69 73 20 75 6e |inting, |it is un|
|00002530| 77 69 73 65 20 74 6f 20 | 6d 61 6b 65 20 4c 61 73 |wise to |make Las|
|00002540| 65 72 50 72 65 70 20 66 | 69 6c 65 73 20 72 65 73 |erPrep f|iles res|
|00002550| 69 64 65 6e 74 0a 69 6e | 20 6d 65 6d 6f 72 79 20 |ident.in| memory |
|00002560| 73 6f 20 74 68 61 74 20 | 6f 74 68 65 72 20 50 6f |so that |other Po|
|00002570| 73 74 53 63 72 69 70 74 | 20 6a 6f 62 73 20 68 61 |stScript| jobs ha|
|00002580| 76 65 20 6c 65 73 73 20 | 6d 65 6d 6f 72 79 20 74 |ve less |memory t|
|00002590| 6f 20 77 6f 72 6b 20 77 | 69 74 68 2e 0a 57 68 61 |o work w|ith..Wha|
|000025a0| 74 20 70 72 65 70 66 69 | 78 20 64 6f 65 73 20 69 |t prepfi|x does i|
|000025b0| 73 20 74 6f 20 6d 6f 64 | 69 66 79 20 61 20 4c 61 |s to mod|ify a La|
|000025c0| 73 65 72 50 72 65 70 20 | 66 69 6c 65 20 73 6f 20 |serPrep |file so |
|000025d0| 74 68 61 74 2c 20 61 6d | 6f 6e 67 20 6f 74 68 65 |that, am|ong othe|
|000025e0| 72 0a 74 68 69 6e 67 73 | 2c 20 69 74 20 64 6f 65 |r.things|, it doe|
|000025f0| 73 20 6e 6f 74 20 6d 61 | 6b 65 20 69 74 73 65 6c |s not ma|ke itsel|
|00002600| 66 20 72 65 73 69 64 65 | 6e 74 20 69 6e 20 6d 65 |f reside|nt in me|
|00002610| 6d 6f 72 79 2e 20 20 54 | 68 75 73 2c 20 74 68 65 |mory. T|hus, the|
|00002620| 0a 4c 61 73 65 72 50 72 | 65 70 20 66 69 6c 65 20 |.LaserPr|ep file |
|00002630| 6d 75 73 74 20 62 65 20 | 64 6f 77 6e 6c 6f 61 64 |must be |download|
|00002640| 65 64 20 66 6f 72 20 65 | 61 63 68 20 4d 61 63 20 |ed for e|ach Mac |
|00002650| 70 72 69 6e 74 20 6a 6f | 62 2e 20 20 54 68 69 73 |print jo|b. This|
|00002660| 20 69 73 20 74 68 65 0a | 66 75 6e 63 74 69 6f 6e | is the.|function|
|00002670| 20 6f 66 20 6d 61 63 70 | 73 2c 20 74 6f 20 61 75 | of macp|s, to au|
|00002680| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 61 70 70 65 |tomatica|lly appe|
|00002690| 6e 64 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |nd the a|ppropria|
|000026a0| 74 65 20 4c 61 73 65 72 | 50 72 65 70 0a 66 69 6c |te Laser|Prep.fil|
|000026b0| 65 2e 0a 58 0a 57 48 49 | 43 48 20 56 45 52 53 49 |e..X.WHI|CH VERSI|
|000026c0| 4f 4e 20 4f 46 20 54 48 | 45 20 4c 41 53 45 52 50 |ON OF TH|E LASERP|
|000026d0| 52 45 50 20 57 49 4c 4c | 20 42 45 20 55 53 45 44 |REP WILL| BE USED|
|000026e0| 3f 0a 58 0a 4d 61 63 70 | 73 20 69 6e 74 65 72 70 |?.X.Macp|s interp|
|000026f0| 72 65 74 73 20 74 68 65 | 20 25 25 49 6e 63 6c 75 |rets the| %%Inclu|
|00002700| 64 65 50 72 6f 63 53 65 | 74 20 64 69 72 65 63 74 |deProcSe|t direct|
|00002710| 69 76 65 20 66 6f 75 6e | 64 20 69 6e 20 74 68 65 |ive foun|d in the|
|00002720| 20 50 6f 73 74 53 63 72 | 69 70 74 0a 67 65 6e 65 | PostScr|ipt.gene|
|00002730| 72 61 74 65 64 20 62 79 | 20 4c 61 73 65 72 57 72 |rated by| LaserWr|
|00002740| 69 74 65 72 20 64 72 69 | 76 65 72 20 34 2e 30 20 |iter dri|ver 4.0 |
|00002750| 61 6e 64 20 67 72 65 61 | 74 65 72 2e 20 20 49 74 |and grea|ter. It|
|00002760| 20 74 61 6b 65 73 20 74 | 68 65 20 50 72 6f 63 53 | takes t|he ProcS|
|00002770| 65 74 0a 69 64 20 61 6e | 64 20 6c 6f 6f 6b 73 20 |et.id an|d looks |
|00002780| 69 74 20 75 70 20 69 6e | 20 61 20 66 69 6c 65 20 |it up in| a file |
|00002790| 22 6d 61 63 70 73 2e 63 | 6f 6e 66 69 67 22 2c 20 |"macps.c|onfig", |
|000027a0| 74 6f 20 67 65 74 20 74 | 68 65 20 70 61 74 68 6e |to get t|he pathn|
|000027b0| 61 6d 65 20 6f 66 20 74 | 68 65 0a 70 72 65 70 20 |ame of t|he.prep |
|000027c0| 66 69 6c 65 2c 20 61 6e | 64 20 74 68 75 73 20 6d |file, an|d thus m|
|000027d0| 61 63 70 73 20 63 61 6e | 20 63 6f 6e 76 65 72 74 |acps can| convert|
|000027e0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 67 65 6e 65 | PostScr|ipt gene|
|000027f0| 72 61 74 65 64 20 62 79 | 20 64 69 66 66 65 72 65 |rated by| differe|
|00002800| 6e 74 0a 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 74 |nt.versi|ons of t|
|00002810| 68 65 20 4c 61 73 65 72 | 57 72 69 74 65 72 20 64 |he Laser|Writer d|
|00002820| 72 69 76 65 72 2e 0a 58 | 0a 48 4f 57 20 41 52 45 |river..X|.HOW ARE|
|00002830| 20 54 48 45 20 4c 41 53 | 45 52 50 52 45 50 20 46 | THE LAS|ERPREP F|
|00002840| 49 4c 45 53 20 47 45 4e | 45 52 41 54 45 44 3f 0a |ILES GEN|ERATED?.|
|00002850| 58 0a 53 69 6e 63 65 20 | 74 68 65 20 41 70 70 6c |X.Since |the Appl|
|00002860| 65 20 4c 61 73 65 72 50 | 72 65 70 20 66 69 6c 65 |e LaserP|rep file|
|00002870| 73 20 61 72 65 20 63 6f | 70 79 72 69 67 68 74 65 |s are co|pyrighte|
|00002880| 64 2c 20 49 27 76 65 20 | 69 6e 63 6c 75 64 65 64 |d, I've |included|
|00002890| 20 61 0a 70 72 6f 67 72 | 61 6d 2c 20 70 72 65 70 | a.progr|am, prep|
|000028a0| 66 69 78 2c 20 74 68 61 | 74 20 72 65 61 64 73 20 |fix, tha|t reads |
|000028b0| 76 65 72 73 69 6f 6e 20 | 34 2e 30 20 61 6e 64 20 |version |4.0 and |
|000028c0| 75 70 20 4c 61 73 65 72 | 50 72 65 70 20 66 69 6c |up Laser|Prep fil|
|000028d0| 65 73 2c 20 61 6e 64 0a | 65 64 69 74 73 20 74 68 |es, and.|edits th|
|000028e0| 65 6d 20 73 6f 20 74 68 | 61 74 20 74 68 65 79 20 |em so th|at they |
|000028f0| 61 72 65 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |are comp|atible w|
|00002900| 69 74 68 20 55 6e 69 78 | 2c 20 61 6e 64 20 61 72 |ith Unix|, and ar|
|00002910| 65 20 65 76 65 6e 0a 65 | 6c 65 63 74 72 6f 6e 69 |e even.e|lectroni|
|00002920| 63 61 6c 6c 79 20 6d 61 | 69 6c 61 62 6c 65 20 28 |cally ma|ilable (|
|00002930| 53 65 65 20 70 72 65 70 | 66 69 78 2e 31 20 66 6f |See prep|fix.1 fo|
|00002940| 72 20 6d 6f 72 65 20 64 | 65 74 61 69 6c 73 29 2e |r more d|etails).|
|00002950| 0a 58 0a 57 48 45 52 45 | 20 49 53 20 54 48 45 20 |.X.WHERE| IS THE |
|00002960| 4d 41 43 50 53 2e 43 4f | 4e 46 49 47 20 46 49 4c |MACPS.CO|NFIG FIL|
|00002970| 45 20 4c 4f 43 41 54 45 | 44 3f 0a 58 0a 4d 61 63 |E LOCATE|D?.X.Mac|
|00002980| 70 73 20 68 61 73 20 73 | 6f 6d 65 20 73 70 65 63 |ps has s|ome spec|
|00002990| 69 61 6c 20 63 6f 64 65 | 20 74 68 61 74 20 69 73 |ial code| that is|
|000029a0| 20 61 62 6c 65 20 74 6f | 20 66 69 67 75 72 65 20 | able to| figure |
|000029b0| 6f 75 74 20 66 72 6f 6d | 20 77 68 69 63 68 0a 64 |out from| which.d|
|000029c0| 69 72 65 63 74 6f 72 79 | 20 69 74 20 77 61 73 20 |irectory| it was |
|000029d0| 63 61 6c 6c 65 64 20 66 | 72 6f 6d 2e 20 20 49 74 |called f|rom. It|
|000029e0| 20 77 69 6c 6c 20 74 68 | 65 6e 20 6c 6f 6f 6b 20 | will th|en look |
|000029f0| 69 6e 20 61 20 22 6c 69 | 62 22 20 73 75 62 64 69 |in a "li|b" subdi|
|00002a00| 72 65 74 6f 72 79 0a 66 | 6f 72 20 74 68 65 20 6d |retory.f|or the m|
|00002a10| 61 63 70 73 2e 63 6f 6e | 66 69 67 20 66 69 6c 65 |acps.con|fig file|
|00002a20| 2e 0a 58 0a 57 48 41 54 | 20 41 42 4f 55 54 20 42 |..X.WHAT| ABOUT B|
|00002a30| 49 54 2d 53 4d 4f 4f 54 | 48 49 4e 47 20 4f 4e 20 |IT-SMOOT|HING ON |
|00002a40| 4e 4f 4e 2d 4c 41 53 45 | 52 57 52 49 54 45 52 20 |NON-LASE|RWRITER |
|00002a50| 50 52 49 4e 54 45 52 53 | 3f 0a 58 0a 58 46 6f 72 |PRINTERS|?.X.XFor|
|00002a60| 20 50 6f 73 74 53 63 72 | 69 70 74 20 70 72 69 6e | PostScr|ipt prin|
|00002a70| 74 65 72 73 20 75 73 69 | 6e 67 20 4d 6f 74 6f 72 |ters usi|ng Motor|
|00002a80| 6f 6c 61 20 36 38 30 78 | 30 20 70 72 6f 63 65 73 |ola 680x|0 proces|
|00002a90| 73 6f 72 73 20 61 6e 64 | 20 41 64 6f 62 65 0a 50 |sors and| Adobe.P|
|00002aa0| 6f 73 74 53 63 72 69 70 | 74 20 66 69 72 6d 77 61 |ostScrip|t firmwa|
|00002ab0| 72 65 20 6f 74 68 65 72 | 20 74 68 61 6e 20 4c 61 |re other| than La|
|00002ac0| 73 65 72 57 72 69 74 65 | 72 73 2c 20 74 68 65 72 |serWrite|rs, ther|
|00002ad0| 65 20 69 73 20 61 6e 20 | 6f 70 74 69 6f 6e 20 74 |e is an |option t|
|00002ae0| 68 61 74 0a 77 69 6c 6c | 20 61 6c 6c 6f 77 20 74 |hat.will| allow t|
|00002af0| 68 65 73 65 20 70 72 69 | 6e 74 65 72 73 20 74 6f |hese pri|nters to|
|00002b00| 20 64 6f 20 62 69 74 2d | 73 6d 6f 6f 74 68 69 6e | do bit-|smoothin|
|00002b10| 67 2c 20 6a 75 73 74 20 | 6c 69 6b 65 20 4c 61 73 |g, just |like Las|
|00002b20| 65 72 57 72 69 74 65 72 | 73 2e 0a 58 0a 43 48 41 |erWriter|s..X.CHA|
|00002b30| 4e 47 45 53 20 49 4e 20 | 56 45 52 53 49 4f 4e 20 |NGES IN |VERSION |
|00002b40| 32 2e 32 0a 58 0a 56 65 | 72 73 69 6f 6e 20 32 2e |2.2.X.Ve|rsion 2.|
|00002b50| 32 20 6f 66 20 70 72 65 | 70 66 69 78 20 6e 6f 77 |2 of pre|pfix now|
|00002b60| 20 73 75 70 70 6f 72 74 | 73 20 4c 61 73 65 72 50 | support|s LaserP|
|00002b70| 72 65 70 20 36 2e 30 2e | 20 20 54 68 65 20 50 6f |rep 6.0.| The Po|
|00002b80| 73 74 53 63 72 69 70 74 | 0a 73 61 76 65 2f 72 65 |stScript|.save/re|
|00002b90| 73 74 6f 72 65 20 63 6f | 6e 74 65 78 74 20 69 73 |store co|ntext is|
|00002ba0| 20 6e 6f 77 20 61 20 63 | 6f 6d 70 69 6c 65 2d 74 | now a c|ompile-t|
|00002bb0| 69 6d 65 20 6f 70 74 69 | 6f 6e 2c 20 73 69 6e 63 |ime opti|on, sinc|
|00002bc0| 65 20 69 74 20 63 61 75 | 73 65 64 0a 70 72 69 6e |e it cau|sed.prin|
|00002bd0| 74 69 6e 67 20 74 6f 20 | 66 61 69 6c 20 6f 6e 20 |ting to |fail on |
|00002be0| 61 20 4e 65 58 54 20 70 | 72 69 6e 74 65 72 20 28 |a NeXT p|rinter (|
|00002bf0| 74 68 6f 75 67 68 20 69 | 74 20 77 61 73 20 68 61 |though i|t was ha|
|00002c00| 72 6d 6c 65 73 73 20 6f | 6e 20 6d 6f 73 74 0a 6f |rmless o|n most.o|
|00002c10| 74 68 65 72 20 70 72 69 | 6e 74 65 72 73 29 2e 20 |ther pri|nters). |
|00002c20| 20 54 68 69 73 20 73 61 | 76 65 2f 72 65 73 74 6f | This sa|ve/resto|
|00002c30| 72 65 20 69 73 20 6e 6f | 77 20 6d 6f 72 65 20 69 |re is no|w more i|
|00002c40| 6e 74 65 6c 6c 69 67 65 | 6e 74 20 61 62 6f 75 74 |ntellige|nt about|
|00002c50| 0a 63 6c 65 61 72 69 6e | 67 20 74 68 65 20 73 74 |.clearin|g the st|
|00002c60| 61 63 6b 73 2e 0a 58 0a | 43 48 41 4e 47 45 53 20 |acks..X.|CHANGES |
|00002c70| 49 4e 20 56 45 52 53 49 | 4f 4e 20 32 2e 31 0a 58 |IN VERSI|ON 2.1.X|
|00002c80| 0a 56 65 72 73 69 6f 6e | 20 32 2e 31 20 6f 66 20 |.Version| 2.1 of |
|00002c90| 70 72 65 70 66 69 78 20 | 75 73 65 73 20 61 20 73 |prepfix |uses a s|
|00002ca0| 61 66 65 72 20 6d 65 74 | 68 6f 64 20 66 6f 72 20 |afer met|hod for |
|00002cb0| 74 75 72 6e 69 6e 67 20 | 6f 6e 20 62 69 74 2d 73 |turning |on bit-s|
|00002cc0| 6d 6f 6f 74 68 69 6e 67 | 0a 66 6f 72 20 6e 6f 6e |moothing|.for non|
|00002cd0| 2d 41 70 70 6c 65 20 70 | 72 69 6e 74 65 72 73 2e |-Apple p|rinters.|
|00002ce0| 20 20 54 68 69 73 20 73 | 68 6f 75 6c 64 20 67 65 | This s|hould ge|
|00002cf0| 74 20 61 72 6f 75 6e 64 | 20 73 6f 6d 65 20 6f 66 |t around| some of|
|00002d00| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 73 0a 70 65 | the pro|blems.pe|
|00002d10| 6f 70 6c 65 20 68 61 76 | 65 20 62 65 65 6e 20 68 |ople hav|e been h|
|00002d20| 61 76 69 6e 67 20 77 69 | 74 68 20 73 70 65 63 69 |aving wi|th speci|
|00002d30| 61 6c 69 7a 65 64 20 6d | 61 63 72 6f 73 20 69 6e |alized m|acros in|
|00002d40| 20 74 68 65 20 4c 61 73 | 65 72 50 72 65 70 73 20 | the Las|erPreps |
|00002d50| 74 68 61 74 0a 61 72 65 | 20 41 70 70 6c 65 20 70 |that.are| Apple p|
|00002d60| 72 69 6e 74 65 72 20 73 | 70 65 63 69 66 69 63 2e |rinter s|pecific.|
|00002d70| 20 20 54 68 65 20 2d 6c | 20 61 6e 64 20 2d 70 20 | The -l| and -p |
|00002d80| 6f 70 74 69 6f 6e 73 20 | 69 6e 20 76 65 72 73 69 |options |in versi|
|00002d90| 6f 6e 20 31 2e 31 20 68 | 61 76 65 0a 62 65 65 6e |on 1.1 h|ave.been|
|00002da0| 20 72 65 70 6c 61 63 65 | 64 20 77 69 74 68 20 74 | replace|d with t|
|00002db0| 68 65 20 73 69 6e 67 6c | 65 20 2d 6c 20 6f 70 74 |he singl|e -l opt|
|00002dc0| 69 6f 6e 2c 20 61 6e 64 | 20 74 68 65 20 6c 69 6d |ion, and| the lim|
|00002dd0| 69 74 20 6f 6e 20 74 68 | 65 20 6e 75 6d 62 65 72 |it on th|e number|
|00002de0| 0a 6f 66 20 70 72 69 6e | 74 65 72 73 20 79 6f 75 |.of prin|ters you|
|00002df0| 20 63 61 6e 20 73 70 65 | 63 69 66 79 20 68 61 73 | can spe|cify has|
|00002e00| 20 62 65 65 6e 20 72 65 | 6d 6f 76 65 64 2e 0a 58 | been re|moved..X|
|00002e10| 0a 41 6c 73 6f 2c 20 70 | 72 65 70 66 69 78 20 72 |.Also, p|repfix r|
|00002e20| 65 6d 6f 76 65 73 20 73 | 6f 6d 65 20 6f 74 68 65 |emoves s|ome othe|
|00002e30| 72 20 76 61 72 69 6f 75 | 73 20 6d 61 63 72 6f 73 |r variou|s macros|
|00002e40| 20 74 68 61 74 20 63 61 | 75 73 65 0a 75 6e 70 72 | that ca|use.unpr|
|00002e50| 65 64 69 63 74 61 62 6c | 65 20 70 72 6f 62 6c 65 |edictabl|e proble|
|00002e60| 6d 73 2c 20 61 6e 64 20 | 61 20 70 72 6f 62 6c 65 |ms, and |a proble|
|00002e70| 6d 20 77 69 74 68 20 41 | 70 70 6c 65 20 4c 61 73 |m with A|pple Las|
|00002e80| 65 72 57 72 69 74 65 72 | 20 49 49 2f 4e 54 73 0a |erWriter| II/NTs.|
|00002e90| 58 28 62 75 74 20 6e 6f | 74 20 6f 74 68 65 72 20 |X(but no|t other |
|00002ea0| 41 70 70 6c 65 20 70 72 | 69 6e 74 65 72 73 29 2e |Apple pr|inters).|
|00002eb0| 0a 58 0a 56 65 72 73 69 | 6f 6e 20 32 2e 31 20 6d |.X.Versi|on 2.1 m|
|00002ec0| 61 63 70 73 20 68 61 73 | 20 73 65 76 65 72 61 6c |acps has| several|
|00002ed0| 20 6e 65 77 20 6f 70 74 | 69 6f 6e 73 2e 20 20 54 | new opt|ions. T|
|00002ee0| 68 65 20 2d 63 20 6f 70 | 74 69 6f 6e 20 61 6c 6c |he -c op|tion all|
|00002ef0| 6f 77 20 79 6f 75 20 74 | 6f 0a 73 70 65 63 69 66 |ow you t|o.specif|
|00002f00| 79 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |y the nu|mber of |
|00002f10| 63 6f 70 69 65 73 20 74 | 6f 20 67 65 6e 65 72 61 |copies t|o genera|
|00002f20| 74 65 20 28 6f 76 65 72 | 72 69 64 69 6e 67 20 61 |te (over|riding a|
|00002f30| 6e 79 20 6d 75 6c 74 69 | 70 6c 65 20 63 6f 70 79 |ny multi|ple copy|
|00002f40| 0a 6f 70 74 69 6f 6e 20 | 74 68 61 74 20 77 61 73 |.option |that was|
|00002f50| 20 73 70 65 63 69 66 69 | 65 64 20 6f 6e 20 74 68 | specifi|ed on th|
|00002f60| 65 20 4d 61 63 69 6e 74 | 6f 73 68 29 2e 20 20 54 |e Macint|osh). T|
|00002f70| 68 65 20 2d 64 20 6f 70 | 74 69 6f 6e 20 61 6c 6c |he -d op|tion all|
|00002f80| 6f 77 73 20 61 6e 0a 61 | 6c 74 65 72 6e 61 74 65 |ows an.a|lternate|
|00002f90| 20 64 69 72 65 63 74 6f | 72 79 20 74 6f 20 6c 6f | directo|ry to lo|
|00002fa0| 6f 6b 20 66 6f 72 20 74 | 68 65 20 6d 61 63 70 73 |ok for t|he macps|
|00002fb0| 2e 63 6f 6e 66 69 67 20 | 66 69 6c 65 2e 20 20 46 |.config |file. F|
|00002fc0| 69 6e 61 6c 6c 79 2c 20 | 74 68 65 20 2d 72 0a 58 |inally, |the -r.X|
|00002fd0| 28 72 61 77 29 20 6f 70 | 74 69 6f 6e 20 73 75 70 |(raw) op|tion sup|
|00002fe0| 70 72 65 73 73 65 73 20 | 74 68 65 20 63 6f 6e 76 |presses |the conv|
|00002ff0| 65 72 73 69 6f 6e 20 6f | 66 20 38 2d 62 69 74 20 |ersion o|f 8-bit |
|00003000| 62 69 6e 61 72 79 20 69 | 6e 74 6f 20 41 53 43 49 |binary i|nto ASCI|
|00003010| 49 2c 20 61 6e 64 0a 69 | 73 20 75 73 65 66 75 6c |I, and.i|s useful|
|00003020| 20 66 6f 72 20 73 6f 6d | 65 20 67 72 61 70 68 69 | for som|e graphi|
|00003030| 63 73 20 70 72 6f 67 72 | 61 6d 73 20 74 68 61 74 |cs progr|ams that|
|00003040| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 67 72 61 79 | manipul|ate gray|
|00003050| 2d 73 63 61 6c 65 20 69 | 6d 61 67 65 73 2c 0a 61 |-scale i|mages,.a|
|00003060| 6e 64 20 70 72 6f 64 75 | 63 65 20 38 2d 62 69 74 |nd produ|ce 8-bit|
|00003070| 20 62 69 6e 61 72 79 20 | 50 6f 73 74 53 63 72 69 | binary |PostScri|
|00003080| 70 74 20 6f 75 74 70 75 | 74 2e 0a 58 0a 4d 61 63 |pt outpu|t..X.Mac|
|00003090| 70 73 20 77 69 6c 6c 20 | 65 76 65 6e 20 77 6f 72 |ps will |even wor|
|000030a0| 6b 20 77 69 74 68 20 61 | 20 4e 65 58 54 20 6c 61 |k with a| NeXT la|
|000030b0| 73 65 72 20 70 72 69 6e | 74 65 72 2c 20 62 75 74 |ser prin|ter, but|
|000030c0| 20 28 61 74 20 6c 65 61 | 73 74 20 74 68 65 20 30 | (at lea|st the 0|
|000030d0| 2e 38 0a 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |.8.versi|on of th|
|000030e0| 65 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |e operat|ing syst|
|000030f0| 65 6d 29 20 77 69 6c 6c | 20 6e 6f 74 20 64 6f 20 |em) will| not do |
|00003100| 62 69 74 20 73 6d 6f 6f | 74 68 69 6e 67 2e 20 20 |bit smoo|thing. |
|00003110| 42 65 77 61 72 65 2c 0a | 74 68 6f 75 67 68 2c 20 |Beware,.|though, |
|00003120| 74 68 61 74 20 69 66 20 | 79 6f 75 20 70 72 69 6e |that if |you prin|
|00003130| 74 20 4d 61 63 69 6e 74 | 6f 73 68 20 70 61 74 74 |t Macint|osh patt|
|00003140| 65 72 6e 73 20 61 74 20 | 34 30 30 20 64 70 69 2c |erns at |400 dpi,|
|00003150| 20 74 68 65 79 20 77 69 | 6c 6c 0a 6c 6f 6f 6b 20 | they wi|ll.look |
|00003160| 66 75 6e 6e 79 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |funny..E|ND_OF_FI|
|00003170| 4c 45 0a 69 66 20 74 65 | 73 74 20 34 36 38 32 20 |LE.if te|st 4682 |
|00003180| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 65 61 |-ne `wc |-c <'Rea|
|00003190| 64 4d 65 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |dMe'`; t|hen. |
|000031a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 65 |echo sha|r: \"'Re|
|000031b0| 61 64 4d 65 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |adMe'\" |unpacked|
|000031c0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|000031d0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 52 |!.fi.# e|nd of 'R|
|000031e0| 65 61 64 4d 65 27 0a 66 | 69 0a 69 66 20 74 65 73 |eadMe'.f|i.if tes|
|000031f0| 74 20 2d 66 20 27 6d 61 | 63 61 75 78 2e 63 27 20 |t -f 'ma|caux.c' |
|00003200| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00003210| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00003220| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00003230| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00003240| 20 66 69 6c 65 20 5c 22 | 27 6d 61 63 61 75 78 2e | file \"|'macaux.|
|00003250| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00003260| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00003270| 5c 22 27 6d 61 63 61 75 | 78 2e 63 27 5c 22 20 5c |\"'macau|x.c'\" \|
|00003280| 28 33 35 38 35 20 63 68 | 61 72 61 63 74 65 72 73 |(3585 ch|aracters|
|00003290| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000032a0| 3e 27 6d 61 63 61 75 78 | 2e 63 27 20 3c 3c 27 45 |>'macaux|.c' <<'E|
|000032b0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 0a |ND_OF_FI|LE'.X/*.|
|000032c0| 58 20 2a 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |X * Copy|right (c|
|000032d0| 29 20 31 39 38 38 2c 20 | 54 68 65 20 52 65 67 65 |) 1988, |The Rege|
|000032e0| 6e 74 73 20 6f 66 20 74 | 68 65 20 55 6e 69 76 65 |nts of t|he Unive|
|000032f0| 72 73 69 74 79 20 6f 66 | 20 43 61 6c 69 66 6f 72 |rsity of| Califor|
|00003300| 6e 69 61 2e 0a 58 20 2a | 20 45 64 77 61 72 64 20 |nia..X *| Edward |
|00003310| 4d 6f 79 2c 20 57 6f 72 | 6b 73 74 61 74 69 6f 6e |Moy, Wor|kstation|
|00003320| 20 53 6f 66 74 77 61 72 | 65 20 53 75 70 70 6f 72 | Softwar|e Suppor|
|00003330| 74 20 47 72 6f 75 70 2c | 20 57 6f 72 6b 73 74 61 |t Group,| Worksta|
|00003340| 74 69 6f 6e 20 53 75 70 | 70 6f 72 74 20 53 65 72 |tion Sup|port Ser|
|00003350| 69 63 65 73 2c 0a 58 20 | 2a 20 49 6e 66 6f 72 6d |ices,.X |* Inform|
|00003360| 61 74 69 6f 6e 20 53 79 | 73 74 65 6d 73 20 61 6e |ation Sy|stems an|
|00003370| 64 20 54 65 63 68 6e 6f | 6c 6f 67 79 2e 0a 58 20 |d Techno|logy..X |
|00003380| 2a 0a 58 20 2a 20 50 65 | 72 6d 69 73 73 69 6f 6e |*.X * Pe|rmission|
|00003390| 20 69 73 20 67 72 61 6e | 74 65 64 20 74 6f 20 61 | is gran|ted to a|
|000033a0| 6e 79 20 69 6e 64 69 76 | 69 64 75 61 6c 20 6f 72 |ny indiv|idual or|
|000033b0| 20 69 6e 73 74 69 74 75 | 74 69 6f 6e 20 74 6f 20 | institu|tion to |
|000033c0| 75 73 65 2c 20 63 6f 70 | 79 2c 0a 58 20 2a 20 6f |use, cop|y,.X * o|
|000033d0| 72 20 72 65 64 69 73 74 | 72 69 62 75 74 65 20 74 |r redist|ribute t|
|000033e0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 73 6f 20 |his soft|ware so |
|000033f0| 6c 6f 6e 67 20 61 73 20 | 69 74 20 69 73 20 6e 6f |long as |it is no|
|00003400| 74 20 73 6f 6c 64 20 66 | 6f 72 20 70 72 6f 66 69 |t sold f|or profi|
|00003410| 74 2c 0a 58 20 2a 20 70 | 72 6f 76 69 64 65 64 20 |t,.X * p|rovided |
|00003420| 74 68 61 74 20 74 68 69 | 73 20 6e 6f 74 69 63 65 |that thi|s notice|
|00003430| 20 61 6e 64 20 74 68 65 | 20 6f 72 69 67 69 6e 61 | and the| origina|
|00003440| 6c 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |l copyri|ght noti|
|00003450| 63 65 73 20 61 72 65 0a | 58 20 2a 20 72 65 74 61 |ces are.|X * reta|
|00003460| 69 6e 65 64 2e 20 20 54 | 68 65 20 55 6e 69 76 65 |ined. T|he Unive|
|00003470| 72 73 69 74 79 20 6f 66 | 20 43 61 6c 69 66 6f 72 |rsity of| Califor|
|00003480| 6e 69 61 20 6d 61 6b 65 | 73 20 6e 6f 20 72 65 70 |nia make|s no rep|
|00003490| 72 65 73 65 6e 74 61 74 | 69 6f 6e 73 20 61 62 6f |resentat|ions abo|
|000034a0| 75 74 20 74 68 65 0a 58 | 20 2a 20 73 75 69 74 61 |ut the.X| * suita|
|000034b0| 62 69 6c 69 74 79 20 6f | 66 20 74 68 69 73 20 73 |bility o|f this s|
|000034c0| 6f 66 74 77 61 72 65 20 | 66 6f 72 20 61 6e 79 20 |oftware |for any |
|000034d0| 70 75 72 70 6f 73 65 2e | 20 20 49 74 20 69 73 20 |purpose.| It is |
|000034e0| 70 72 6f 76 69 64 65 64 | 20 22 61 73 20 69 73 22 |provided| "as is"|
|000034f0| 0a 58 20 2a 20 77 69 74 | 68 6f 75 74 20 65 78 70 |.X * wit|hout exp|
|00003500| 72 65 73 73 20 6f 72 20 | 69 6d 70 6c 69 65 64 20 |ress or |implied |
|00003510| 77 61 72 72 61 6e 74 79 | 2e 0a 58 20 2a 2f 0a 58 |warranty|..X */.X|
|00003520| 0a 58 23 69 66 6e 64 65 | 66 20 6c 69 6e 74 0a 73 |.X#ifnde|f lint.s|
|00003530| 74 61 74 69 63 20 63 68 | 61 72 20 2a 53 43 43 53 |tatic ch|ar *SCCS|
|00003540| 69 64 20 3d 20 22 40 28 | 23 29 6d 61 63 61 75 78 |id = "@(|#)macaux|
|00003550| 2e 63 09 32 2e 32 20 31 | 30 2f 32 34 2f 38 39 22 |.c.2.2 1|0/24/89"|
|00003560| 3b 0a 58 23 65 6e 64 69 | 66 20 6c 69 6e 74 0a 58 |;.X#endi|f lint.X|
|00003570| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 63 74 79 70 |.X#inclu|de <ctyp|
|00003580| 65 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |e.h>.X#i|nclude <|
|00003590| 73 74 64 69 6f 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |stdio.h>|.X#inclu|
|000035a0| 64 65 20 22 73 74 72 2e | 68 22 0a 58 0a 58 23 64 |de "str.|h".X.X#d|
|000035b0| 65 66 69 6e 65 09 46 41 | 4c 53 45 09 09 30 0a 58 |efine.FA|LSE..0.X|
|000035c0| 23 64 65 66 69 6e 65 09 | 54 52 55 45 09 09 31 0a |#define.|TRUE..1.|
|000035d0| 58 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 6d |X.extern| char *m|
|000035e0| 79 6e 61 6d 65 3b 0a 69 | 6e 74 20 72 61 77 6d 6f |yname;.i|nt rawmo|
|000035f0| 64 65 20 3d 20 46 41 4c | 53 45 3b 0a 58 0a 53 54 |de = FAL|SE;.X.ST|
|00003600| 52 20 2a 0a 53 54 52 61 | 6c 6c 6f 63 28 29 0a 58 |R *.STRa|lloc().X|
|00003610| 7b 0a 58 09 72 65 67 69 | 73 74 65 72 20 53 54 52 |{.X.regi|ster STR|
|00003620| 20 2a 73 74 72 3b 0a 58 | 09 63 68 61 72 20 2a 6d | *str;.X|.char *m|
|00003630| 61 6c 6c 6f 63 28 29 3b | 0a 58 0a 58 09 69 66 28 |alloc();|.X.X.if(|
|00003640| 28 73 74 72 20 3d 20 28 | 53 54 52 20 2a 29 6d 61 |(str = (|STR *)ma|
|00003650| 6c 6c 6f 63 28 73 69 7a | 65 6f 66 28 53 54 52 29 |lloc(siz|eof(STR)|
|00003660| 29 29 20 3d 3d 20 4e 55 | 4c 4c 20 7c 7c 0a 58 09 |)) == NU|LL ||.X.|
|00003670| 20 28 73 74 72 2d 3e 62 | 75 66 70 74 72 20 3d 20 | (str->b|ufptr = |
|00003680| 28 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a |(unsigne|d char *|
|00003690| 29 6d 61 6c 6c 6f 63 28 | 53 54 52 53 49 5a 45 29 |)malloc(|STRSIZE)|
|000036a0| 29 20 3d 3d 20 4e 55 4c | 4c 29 20 7b 0a 58 09 09 |) == NUL|L) {.X..|
|000036b0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|000036c0| 22 25 73 3a 20 53 54 52 | 61 6c 6c 6f 63 3a 20 4f |"%s: STR|alloc: O|
|000036d0| 75 74 20 6f 66 20 6d 65 | 6d 6f 72 79 5c 6e 22 2c |ut of me|mory\n",|
|000036e0| 20 6d 79 6e 61 6d 65 29 | 3b 0a 58 09 09 65 78 69 | myname)|;.X..exi|
|000036f0| 74 28 31 29 3b 0a 58 09 | 7d 0a 58 09 73 74 72 2d |t(1);.X.|}.X.str-|
|00003700| 3e 63 75 72 65 6e 64 70 | 74 72 20 3d 20 73 74 72 |>curendp|tr = str|
|00003710| 2d 3e 62 75 66 70 74 72 | 3b 0a 58 09 73 74 72 2d |->bufptr|;.X.str-|
|00003720| 3e 72 65 61 6c 65 6e 64 | 70 74 72 20 3d 20 73 74 |>realend|ptr = st|
|00003730| 72 2d 3e 62 75 66 70 74 | 72 20 2b 20 53 54 52 53 |r->bufpt|r + STRS|
|00003740| 49 5a 45 3b 0a 58 09 72 | 65 74 75 72 6e 28 73 74 |IZE;.X.r|eturn(st|
|00003750| 72 29 3b 0a 58 7d 0a 58 | 0a 53 54 52 66 72 65 65 |r);.X}.X|.STRfree|
|00003760| 28 73 74 72 29 0a 53 54 | 52 20 2a 73 74 72 3b 0a |(str).ST|R *str;.|
|00003770| 58 7b 0a 58 09 66 72 65 | 65 28 28 63 68 61 72 20 |X{.X.fre|e((char |
|00003780| 2a 29 73 74 72 2d 3e 62 | 75 66 70 74 72 29 3b 0a |*)str->b|ufptr);.|
|00003790| 58 09 66 72 65 65 28 28 | 63 68 61 72 20 2a 29 73 |X.free((|char *)s|
|000037a0| 74 72 29 3b 0a 58 7d 0a | 58 0a 53 54 52 65 78 70 |tr);.X}.|X.STRexp|
|000037b0| 61 6e 64 28 73 74 72 29 | 0a 72 65 67 69 73 74 65 |and(str)|.registe|
|000037c0| 72 20 53 54 52 20 2a 73 | 74 72 3b 0a 58 7b 0a 58 |r STR *s|tr;.X{.X|
|000037d0| 09 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 63 75 |.registe|r int cu|
|000037e0| 72 65 6e 64 2c 20 72 65 | 61 6c 65 6e 64 3b 0a 58 |rend, re|alend;.X|
|000037f0| 09 63 68 61 72 20 2a 72 | 65 61 6c 6c 6f 63 28 29 |.char *r|ealloc()|
|00003800| 3b 0a 58 0a 58 09 63 75 | 72 65 6e 64 20 3d 20 73 |;.X.X.cu|rend = s|
|00003810| 74 72 2d 3e 63 75 72 65 | 6e 64 70 74 72 20 2d 20 |tr->cure|ndptr - |
|00003820| 73 74 72 2d 3e 62 75 66 | 70 74 72 3b 0a 58 09 72 |str->buf|ptr;.X.r|
|00003830| 65 61 6c 65 6e 64 20 3d | 20 28 73 74 72 2d 3e 72 |ealend =| (str->r|
|00003840| 65 61 6c 65 6e 64 70 74 | 72 20 2d 20 73 74 72 2d |ealendpt|r - str-|
|00003850| 3e 62 75 66 70 74 72 29 | 20 2b 20 53 54 52 53 49 |>bufptr)| + STRSI|
|00003860| 5a 45 44 45 4c 54 41 3b | 0a 58 09 69 66 28 28 73 |ZEDELTA;|.X.if((s|
|00003870| 74 72 2d 3e 62 75 66 70 | 74 72 20 3d 20 28 75 6e |tr->bufp|tr = (un|
|00003880| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 29 72 65 |signed c|har *)re|
|00003890| 61 6c 6c 6f 63 28 28 63 | 68 61 72 20 2a 29 73 74 |alloc((c|har *)st|
|000038a0| 72 2d 3e 62 75 66 70 74 | 72 2c 0a 58 09 20 72 65 |r->bufpt|r,.X. re|
|000038b0| 61 6c 65 6e 64 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |alend)) |== NULL)|
|000038c0| 20 7b 0a 58 09 09 66 70 | 72 69 6e 74 66 28 73 74 | {.X..fp|rintf(st|
|000038d0| 64 65 72 72 2c 20 22 25 | 73 3a 20 53 54 52 65 78 |derr, "%|s: STRex|
|000038e0| 70 61 6e 64 3a 20 4f 75 | 74 20 6f 66 20 6d 65 6d |pand: Ou|t of mem|
|000038f0| 6f 72 79 5c 6e 22 2c 20 | 6d 79 6e 61 6d 65 29 3b |ory\n", |myname);|
|00003900| 0a 58 09 09 65 78 69 74 | 28 31 29 3b 0a 58 09 7d |.X..exit|(1);.X.}|
|00003910| 0a 58 09 73 74 72 2d 3e | 63 75 72 65 6e 64 70 74 |.X.str->|curendpt|
|00003920| 72 20 3d 20 73 74 72 2d | 3e 62 75 66 70 74 72 20 |r = str-|>bufptr |
|00003930| 2b 20 63 75 72 65 6e 64 | 3b 0a 58 09 73 74 72 2d |+ curend|;.X.str-|
|00003940| 3e 72 65 61 6c 65 6e 64 | 70 74 72 20 3d 20 73 74 |>realend|ptr = st|
|00003950| 72 2d 3e 62 75 66 70 74 | 72 20 2b 20 72 65 61 6c |r->bufpt|r + real|
|00003960| 65 6e 64 3b 0a 58 7d 0a | 58 0a 53 54 52 67 65 74 |end;.X}.|X.STRget|
|00003970| 73 28 73 74 72 2c 20 66 | 70 29 0a 72 65 67 69 73 |s(str, f|p).regis|
|00003980| 74 65 72 20 53 54 52 20 | 2a 73 74 72 3b 0a 72 65 |ter STR |*str;.re|
|00003990| 67 69 73 74 65 72 20 46 | 49 4c 45 20 2a 66 70 3b |gister F|ILE *fp;|
|000039a0| 0a 58 7b 0a 58 09 72 65 | 67 69 73 74 65 72 20 69 |.X{.X.re|gister i|
|000039b0| 6e 74 20 63 3b 0a 58 0a | 58 09 73 74 72 2d 3e 63 |nt c;.X.|X.str->c|
|000039c0| 75 72 65 6e 64 70 74 72 | 20 3d 20 73 74 72 2d 3e |urendptr| = str->|
|000039d0| 62 75 66 70 74 72 3b 0a | 58 09 66 6f 72 28 20 3b |bufptr;.|X.for( ;|
|000039e0| 20 3b 20 29 20 7b 0a 58 | 09 09 69 66 28 28 63 20 | ; ) {.X|..if((c |
|000039f0| 3d 20 67 65 74 63 28 66 | 70 29 29 20 3d 3d 20 45 |= getc(f|p)) == E|
|00003a00| 4f 46 29 0a 58 09 09 09 | 72 65 74 75 72 6e 28 73 |OF).X...|return(s|
|00003a10| 74 72 2d 3e 63 75 72 65 | 6e 64 70 74 72 20 3e 20 |tr->cure|ndptr > |
|00003a20| 73 74 72 2d 3e 62 75 66 | 70 74 72 29 3b 0a 58 09 |str->buf|ptr);.X.|
|00003a30| 09 69 66 28 73 74 72 2d | 3e 63 75 72 65 6e 64 70 |.if(str-|>curendp|
|00003a40| 74 72 20 3e 3d 20 73 74 | 72 2d 3e 72 65 61 6c 65 |tr >= st|r->reale|
|00003a50| 6e 64 70 74 72 29 0a 58 | 09 09 09 53 54 52 65 78 |ndptr).X|...STRex|
|00003a60| 70 61 6e 64 28 73 74 72 | 29 3b 0a 58 09 09 2a 73 |pand(str|);.X..*s|
|00003a70| 74 72 2d 3e 63 75 72 65 | 6e 64 70 74 72 2b 2b 20 |tr->cure|ndptr++ |
|00003a80| 3d 20 63 3b 0a 58 09 09 | 69 66 28 63 20 3d 3d 20 |= c;.X..|if(c == |
|00003a90| 27 5c 6e 27 20 7c 7c 20 | 63 20 3d 3d 20 27 5c 72 |'\n' || |c == '\r|
|00003aa0| 27 29 0a 58 09 09 09 72 | 65 74 75 72 6e 28 54 52 |').X...r|eturn(TR|
|00003ab0| 55 45 29 3b 0a 58 09 7d | 0a 58 7d 0a 58 0a 53 54 |UE);.X.}|.X}.X.ST|
|00003ac0| 52 70 75 74 73 70 74 72 | 28 73 74 72 2c 20 63 70 |Rputsptr|(str, cp|
|00003ad0| 2c 20 66 70 29 0a 72 65 | 67 69 73 74 65 72 20 53 |, fp).re|gister S|
|00003ae0| 54 52 20 2a 73 74 72 3b | 0a 72 65 67 69 73 74 65 |TR *str;|.registe|
|00003af0| 72 20 75 6e 73 69 67 6e | 65 64 20 63 68 61 72 20 |r unsign|ed char |
|00003b00| 2a 63 70 3b 0a 72 65 67 | 69 73 74 65 72 20 46 49 |*cp;.reg|ister FI|
|00003b10| 4c 45 20 2a 66 70 3b 0a | 58 7b 0a 58 09 69 66 28 |LE *fp;.|X{.X.if(|
|00003b20| 72 61 77 6d 6f 64 65 29 | 20 7b 0a 58 09 09 66 6f |rawmode)| {.X..fo|
|00003b30| 72 28 20 3b 20 63 70 20 | 3c 20 73 74 72 2d 3e 63 |r( ; cp |< str->c|
|00003b40| 75 72 65 6e 64 70 74 72 | 20 3b 20 63 70 2b 2b 29 |urendptr| ; cp++)|
|00003b50| 0a 58 09 09 09 70 75 74 | 63 28 2a 63 70 2c 20 66 |.X...put|c(*cp, f|
|00003b60| 70 29 3b 0a 58 09 09 72 | 65 74 75 72 6e 3b 0a 58 |p);.X..r|eturn;.X|
|00003b70| 09 7d 0a 58 09 66 6f 72 | 28 20 3b 20 63 70 20 3c |.}.X.for|( ; cp <|
|00003b80| 20 73 74 72 2d 3e 63 75 | 72 65 6e 64 70 74 72 20 | str->cu|rendptr |
|00003b90| 3b 20 63 70 2b 2b 29 20 | 7b 0a 58 09 09 69 66 28 |; cp++) |{.X..if(|
|00003ba0| 21 69 73 61 73 63 69 69 | 28 2a 63 70 29 29 0a 58 |!isascii|(*cp)).X|
|00003bb0| 09 09 09 66 70 72 69 6e | 74 66 28 66 70 2c 20 22 |...fprin|tf(fp, "|
|00003bc0| 5c 5c 25 30 33 6f 22 2c | 20 2a 63 70 29 3b 0a 58 |\\%03o",| *cp);.X|
|00003bd0| 09 09 65 6c 73 65 20 69 | 66 28 69 73 70 72 69 6e |..else i|f(isprin|
|00003be0| 74 28 2a 63 70 29 29 0a | 58 09 09 09 70 75 74 63 |t(*cp)).|X...putc|
|00003bf0| 28 2a 63 70 2c 20 66 70 | 29 3b 0a 58 09 09 65 6c |(*cp, fp|);.X..el|
|00003c00| 73 65 20 7b 0a 58 09 09 | 09 73 77 69 74 63 68 28 |se {.X..|.switch(|
|00003c10| 2a 63 70 29 20 7b 0a 58 | 09 09 09 20 63 61 73 65 |*cp) {.X|... case|
|00003c20| 20 27 5c 6e 27 3a 0a 58 | 09 09 09 20 63 61 73 65 | '\n':.X|... case|
|00003c30| 20 27 5c 72 27 3a 0a 58 | 09 09 09 09 70 75 74 63 | '\r':.X|....putc|
|00003c40| 28 27 5c 6e 27 2c 20 66 | 70 29 3b 0a 58 09 09 09 |('\n', f|p);.X...|
|00003c50| 09 63 6f 6e 74 69 6e 75 | 65 3b 0a 58 09 09 09 20 |.continu|e;.X... |
|00003c60| 63 61 73 65 20 27 5c 74 | 27 3a 0a 58 09 09 09 09 |case '\t|':.X....|
|00003c70| 70 75 74 63 28 27 5c 74 | 27 2c 20 66 70 29 3b 0a |putc('\t|', fp);.|
|00003c80| 58 09 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0a 58 |X....con|tinue;.X|
|00003c90| 09 09 09 20 64 65 66 61 | 75 6c 74 3a 0a 58 09 09 |... defa|ult:.X..|
|00003ca0| 09 09 66 70 72 69 6e 74 | 66 28 66 70 2c 20 22 5c |..fprint|f(fp, "\|
|00003cb0| 5c 25 30 33 6f 22 2c 20 | 2a 73 74 72 29 3b 0a 58 |\%03o", |*str);.X|
|00003cc0| 09 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0a 58 09 |....cont|inue;.X.|
|00003cd0| 09 09 7d 0a 58 09 09 7d | 0a 58 09 7d 0a 58 7d 0a |..}.X..}|.X.}.X}.|
|00003ce0| 58 0a 53 54 52 63 6f 6d | 70 61 72 65 70 74 72 28 |X.STRcom|pareptr(|
|00003cf0| 73 74 72 2c 20 63 70 2c | 20 73 70 29 0a 72 65 67 |str, cp,| sp).reg|
|00003d00| 69 73 74 65 72 20 53 54 | 52 20 2a 73 74 72 3b 0a |ister ST|R *str;.|
|00003d10| 72 65 67 69 73 74 65 72 | 20 75 6e 73 69 67 6e 65 |register| unsigne|
|00003d20| 64 20 63 68 61 72 20 2a | 63 70 2c 20 2a 73 70 3b |d char *|cp, *sp;|
|00003d30| 0a 58 7b 0a 58 09 72 65 | 67 69 73 74 65 72 20 69 |.X{.X.re|gister i|
|00003d40| 6e 74 20 63 6f 6d 70 3b | 0a 58 0a 58 09 66 6f 72 |nt comp;|.X.X.for|
|00003d50| 28 20 3b 20 3b 20 29 20 | 7b 0a 58 09 09 69 66 28 |( ; ; ) |{.X..if(|
|00003d60| 2a 73 70 20 3d 3d 20 30 | 29 0a 58 09 09 09 72 65 |*sp == 0|).X...re|
|00003d70| 74 75 72 6e 28 63 70 20 | 3e 3d 20 73 74 72 2d 3e |turn(cp |>= str->|
|00003d80| 63 75 72 65 6e 64 70 74 | 72 20 3f 20 30 20 3a 20 |curendpt|r ? 0 : |
|00003d90| 31 29 3b 0a 58 09 09 69 | 66 28 63 70 20 3e 3d 20 |1);.X..i|f(cp >= |
|00003da0| 73 74 72 2d 3e 63 75 72 | 65 6e 64 70 74 72 29 0a |str->cur|endptr).|
|00003db0| 58 09 09 09 72 65 74 75 | 72 6e 28 2d 31 29 3b 0a |X...retu|rn(-1);.|
|00003dc0| 58 09 09 69 66 28 2a 73 | 70 20 3d 3d 20 27 5c 6e |X..if(*s|p == '\n|
|00003dd0| 27 29 20 7b 0a 58 09 09 | 09 69 66 28 2a 63 70 20 |') {.X..|.if(*cp |
|00003de0| 21 3d 20 27 5c 6e 27 20 | 26 26 20 2a 63 70 20 21 |!= '\n' |&& *cp !|
|00003df0| 3d 20 27 5c 72 27 29 0a | 58 09 09 09 09 72 65 74 |= '\r').|X....ret|
|00003e00| 75 72 6e 28 28 69 6e 74 | 29 2a 63 70 20 2d 20 28 |urn((int|)*cp - (|
|00003e10| 69 6e 74 29 2a 73 70 29 | 3b 0a 58 09 09 7d 20 65 |int)*sp)|;.X..} e|
|00003e20| 6c 73 65 20 69 66 28 28 | 63 6f 6d 70 20 3d 20 28 |lse if((|comp = (|
|00003e30| 69 6e 74 29 2a 63 70 20 | 2d 20 28 69 6e 74 29 2a |int)*cp |- (int)*|
|00003e40| 73 70 29 20 21 3d 20 30 | 29 0a 58 09 09 09 72 65 |sp) != 0|).X...re|
|00003e50| 74 75 72 6e 28 63 6f 6d | 70 29 3b 0a 58 09 09 63 |turn(com|p);.X..c|
|00003e60| 70 2b 2b 3b 0a 58 09 09 | 73 70 2b 2b 3b 0a 58 09 |p++;.X..|sp++;.X.|
|00003e70| 7d 0a 58 7d 0a 58 0a 53 | 54 52 68 65 61 64 63 6d |}.X}.X.S|TRheadcm|
|00003e80| 70 70 74 72 28 73 74 72 | 2c 20 63 70 2c 20 73 70 |pptr(str|, cp, sp|
|00003e90| 29 0a 72 65 67 69 73 74 | 65 72 20 53 54 52 20 2a |).regist|er STR *|
|00003ea0| 73 74 72 3b 0a 72 65 67 | 69 73 74 65 72 20 75 6e |str;.reg|ister un|
|00003eb0| 73 69 67 6e 65 64 20 63 | 68 61 72 20 2a 63 70 2c |signed c|har *cp,|
|00003ec0| 20 2a 73 70 3b 0a 58 7b | 0a 58 09 72 65 67 69 73 | *sp;.X{|.X.regis|
|00003ed0| 74 65 72 20 69 6e 74 20 | 63 6f 6d 70 3b 0a 58 0a |ter int |comp;.X.|
|00003ee0| 58 09 66 6f 72 28 20 3b | 20 3b 20 29 20 7b 0a 58 |X.for( ;| ; ) {.X|
|00003ef0| 09 09 69 66 28 2a 73 70 | 20 3d 3d 20 30 29 0a 58 |..if(*sp| == 0).X|
|00003f00| 09 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0a 58 09 |...retur|n(0);.X.|
|00003f10| 09 69 66 28 63 70 20 3e | 3d 20 73 74 72 2d 3e 63 |.if(cp >|= str->c|
|00003f20| 75 72 65 6e 64 70 74 72 | 29 0a 58 09 09 09 72 65 |urendptr|).X...re|
|00003f30| 74 75 72 6e 28 2d 31 29 | 3b 0a 58 09 09 69 66 28 |turn(-1)|;.X..if(|
|00003f40| 2a 73 70 20 3d 3d 20 27 | 5c 6e 27 29 20 7b 0a 58 |*sp == '|\n') {.X|
|00003f50| 09 09 09 69 66 28 2a 63 | 70 20 21 3d 20 27 5c 6e |...if(*c|p != '\n|
|00003f60| 27 20 26 26 20 2a 63 70 | 20 21 3d 20 27 5c 72 27 |' && *cp| != '\r'|
|00003f70| 29 0a 58 09 09 09 09 72 | 65 74 75 72 6e 28 28 69 |).X....r|eturn((i|
|00003f80| 6e 74 29 2a 63 70 20 2d | 20 28 69 6e 74 29 2a 73 |nt)*cp -| (int)*s|
|00003f90| 70 29 3b 0a 58 09 09 7d | 20 65 6c 73 65 20 69 66 |p);.X..}| else if|
|00003fa0| 28 28 63 6f 6d 70 20 3d | 20 28 69 6e 74 29 2a 63 |((comp =| (int)*c|
|00003fb0| 70 20 2d 20 28 69 6e 74 | 29 2a 73 70 29 20 21 3d |p - (int|)*sp) !=|
|00003fc0| 20 30 29 0a 58 09 09 09 | 72 65 74 75 72 6e 28 63 | 0).X...|return(c|
|00003fd0| 6f 6d 70 29 3b 0a 58 09 | 09 63 70 2b 2b 3b 0a 58 |omp);.X.|.cp++;.X|
|00003fe0| 09 09 73 70 2b 2b 3b 0a | 58 09 7d 0a 58 7d 0a 58 |..sp++;.|X.}.X}.X|
|00003ff0| 0a 75 6e 73 69 67 6e 65 | 64 20 63 68 61 72 20 2a |.unsigne|d char *|
|00004000| 0a 53 54 52 6d 61 74 63 | 68 28 73 74 72 2c 20 73 |.STRmatc|h(str, s|
|00004010| 70 29 0a 72 65 67 69 73 | 74 65 72 20 53 54 52 20 |p).regis|ter STR |
|00004020| 2a 73 74 72 3b 0a 72 65 | 67 69 73 74 65 72 20 75 |*str;.re|gister u|
|00004030| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 2a 73 70 |nsigned |char *sp|
|00004040| 3b 0a 58 7b 0a 58 09 72 | 65 67 69 73 74 65 72 20 |;.X{.X.r|egister |
|00004050| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 20 2a 6d |unsigned| char *m|
|00004060| 70 2c 20 2a 6c 61 73 74 | 3b 0a 58 09 72 65 67 69 |p, *last|;.X.regi|
|00004070| 73 74 65 72 20 69 6e 74 | 20 66 69 72 73 74 63 68 |ster int| firstch|
|00004080| 61 72 3b 0a 58 0a 58 09 | 66 69 72 73 74 63 68 61 |ar;.X.X.|firstcha|
|00004090| 72 20 3d 20 2a 73 70 3b | 0a 58 09 6c 61 73 74 20 |r = *sp;|.X.last |
|000040a0| 3d 20 73 74 72 2d 3e 63 | 75 72 65 6e 64 70 74 72 |= str->c|urendptr|
|000040b0| 20 2d 20 73 74 72 6c 65 | 6e 28 73 70 29 3b 0a 58 | - strle|n(sp);.X|
|000040c0| 09 6d 70 20 3d 20 73 74 | 72 2d 3e 62 75 66 70 74 |.mp = st|r->bufpt|
|000040d0| 72 3b 0a 58 09 77 68 69 | 6c 65 28 6d 70 20 3c 3d |r;.X.whi|le(mp <=|
|000040e0| 20 6c 61 73 74 29 20 7b | 0a 58 09 09 69 66 28 2a | last) {|.X..if(*|
|000040f0| 6d 70 20 3d 3d 20 66 69 | 72 73 74 63 68 61 72 20 |mp == fi|rstchar |
|00004100| 26 26 20 53 54 52 68 65 | 61 64 63 6d 70 70 74 72 |&& STRhe|adcmpptr|
|00004110| 28 73 74 72 2c 20 6d 70 | 2c 20 73 70 29 20 3d 3d |(str, mp|, sp) ==|
|00004120| 20 30 29 0a 58 09 09 09 | 72 65 74 75 72 6e 28 6d | 0).X...|return(m|
|00004130| 70 29 3b 0a 58 09 09 6d | 70 2b 2b 3b 0a 58 09 7d |p);.X..m|p++;.X.}|
|00004140| 0a 58 09 72 65 74 75 72 | 6e 28 4e 55 4c 4c 29 3b |.X.retur|n(NULL);|
|00004150| 0a 58 7d 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |.X}.END_|OF_FILE.|
|00004160| 69 66 20 74 65 73 74 20 | 33 35 38 35 20 2d 6e 65 |if test |3585 -ne|
|00004170| 20 60 77 63 20 2d 63 20 | 3c 27 6d 61 63 61 75 78 | `wc -c |<'macaux|
|00004180| 2e 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.c'`; th|en. e|
|00004190| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 6d 61 63 |cho shar|: \"'mac|
|000041a0| 61 75 78 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |aux.c'\"| unpacke|
|000041b0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|000041c0| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|000041d0| 6d 61 63 61 75 78 2e 63 | 27 0a 66 69 0a 69 66 20 |macaux.c|'.fi.if |
|000041e0| 74 65 73 74 20 2d 66 20 | 27 6d 61 63 70 73 2e 31 |test -f |'macps.1|
|000041f0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004200| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004210| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004220| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00004230| 6e 67 20 66 69 6c 65 20 | 5c 22 27 6d 61 63 70 73 |ng file |\"'macps|
|00004240| 2e 31 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.1'\".el|se.echo |
|00004250| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00004260| 20 5c 22 27 6d 61 63 70 | 73 2e 31 27 5c 22 20 5c | \"'macp|s.1'\" \|
|00004270| 28 32 35 39 32 20 63 68 | 61 72 61 63 74 65 72 73 |(2592 ch|aracters|
|00004280| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00004290| 3e 27 6d 61 63 70 73 2e | 31 27 20 3c 3c 27 45 4e |>'macps.|1' <<'EN|
|000042a0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2e 5c 22 20 |D_OF_FIL|E'.X.\" |
|000042b0| 53 43 43 53 69 64 20 3d | 20 22 40 28 23 29 6d 61 |SCCSid =| "@(#)ma|
|000042c0| 63 70 73 2e 31 09 32 2e | 32 20 31 30 2f 32 34 2f |cps.1.2.|2 10/24/|
|000042d0| 38 39 22 0a 58 2e 54 48 | 20 4d 41 43 50 53 20 31 |89".X.TH| MACPS 1|
|000042e0| 20 22 32 34 20 4f 63 74 | 20 31 39 38 39 22 0a 58 | "24 Oct| 1989".X|
|000042f0| 2e 55 43 20 34 0a 58 2e | 53 48 20 4e 41 4d 45 0a |.UC 4.X.|SH NAME.|
|00004300| 6d 61 63 70 73 20 5c 2d | 20 70 72 69 6e 74 20 4d |macps \-| print M|
|00004310| 61 63 69 6e 74 6f 73 68 | 2d 63 72 65 61 74 65 64 |acintosh|-created|
|00004320| 20 50 6f 73 74 53 63 72 | 69 70 74 20 66 69 6c 65 | PostScr|ipt file|
|00004330| 20 6f 6e 20 55 6e 69 78 | 0a 58 2e 53 48 20 53 59 | on Unix|.X.SH SY|
|00004340| 4e 4f 50 53 49 53 0a 58 | 2e 42 20 6d 61 63 70 73 |NOPSIS.X|.B macps|
|00004350| 0a 58 5b 0a 58 5c 2d 63 | 20 63 6f 70 69 65 73 0a |.X[.X\-c| copies.|
|00004360| 58 5d 0a 58 5b 0a 58 5c | 2d 64 20 64 69 72 65 63 |X].X[.X\|-d direc|
|00004370| 74 6f 72 79 0a 58 5d 0a | 58 5b 0a 58 5c 2d 72 0a |tory.X].|X[.X\-r.|
|00004380| 58 5d 0a 58 5b 0a 66 69 | 6c 65 0a 58 5d 0a 58 2e |X].X[.fi|le.X].X.|
|00004390| 53 48 20 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 58 |SH DESCR|IPTION.X|
|000043a0| 2e 49 20 4d 61 63 70 73 | 0a 74 61 6b 65 73 20 74 |.I Macps|.takes t|
|000043b0| 68 65 20 63 6f 6d 6d 61 | 6e 64 2d 6c 69 6e 65 20 |he comma|nd-line |
|000043c0| 66 69 6c 65 20 28 6f 72 | 20 74 68 65 20 73 74 61 |file (or| the sta|
|000043d0| 6e 64 61 72 64 20 69 6e | 70 75 74 20 69 66 20 6e |ndard in|put if n|
|000043e0| 6f 20 66 69 6c 65 6e 61 | 6d 65 20 69 73 20 67 69 |o filena|me is gi|
|000043f0| 76 65 6e 29 2c 0a 61 6e | 64 20 70 72 65 70 65 6e |ven),.an|d prepen|
|00004400| 64 73 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |ds the a|ppropria|
|00004410| 74 65 20 4d 61 63 69 6e | 74 6f 73 68 20 4c 61 73 |te Macin|tosh Las|
|00004420| 65 72 50 72 65 70 20 66 | 69 6c 65 20 28 65 2e 67 |erPrep f|ile (e.g|
|00004430| 2e 2c 20 74 68 6f 73 65 | 20 67 65 6e 65 72 61 74 |., those| generat|
|00004440| 65 64 0a 62 79 0a 58 2e | 49 52 20 70 72 65 70 66 |ed.by.X.|IR prepf|
|00004450| 69 78 20 28 31 29 29 2e | 0a 54 68 65 20 73 74 61 |ix (1)).|.The sta|
|00004460| 6e 64 61 72 64 20 6f 75 | 74 70 75 74 20 63 61 6e |ndard ou|tput can|
|00004470| 20 74 68 65 6e 20 62 65 | 20 64 69 72 65 63 74 65 | then be| directe|
|00004480| 64 20 74 6f 20 61 20 50 | 6f 73 74 53 63 72 69 70 |d to a P|ostScrip|
|00004490| 74 20 70 72 69 6e 74 65 | 72 2c 20 76 69 61 0a 58 |t printe|r, via.X|
|000044a0| 2e 49 52 20 6c 70 72 20 | 28 31 29 2c 0a 66 6f 72 |.IR lpr |(1),.for|
|000044b0| 20 65 78 61 6d 70 6c 65 | 2e 0a 58 2e 50 50 0a 54 | example|..X.PP.T|
|000044c0| 68 65 20 69 6e 70 75 74 | 20 50 6f 73 74 53 63 72 |he input| PostScr|
|000044d0| 69 70 74 20 66 69 6c 65 | 20 69 73 20 67 65 6e 65 |ipt file| is gene|
|000044e0| 72 61 74 65 64 20 6f 6e | 20 61 20 4d 61 63 69 6e |rated on| a Macin|
|000044f0| 74 6f 73 68 20 62 79 20 | 74 79 70 69 6e 67 20 28 |tosh by |typing (|
|00004500| 61 6e 64 20 68 6f 6c 64 | 69 6e 67 29 0a 43 6f 6d |and hold|ing).Com|
|00004510| 6d 61 6e 64 2d 46 20 69 | 6d 6d 65 64 69 61 74 65 |mand-F i|mmediate|
|00004520| 6c 79 20 61 66 74 65 72 | 20 63 6c 69 63 6b 69 6e |ly after| clickin|
|00004530| 67 20 74 68 65 20 4f 4b | 20 62 75 74 74 6f 6e 20 |g the OK| button |
|00004540| 6f 66 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |of the L|aserWrit|
|00004550| 65 72 20 70 72 69 6e 74 | 65 72 0a 64 69 61 6c 6f |er print|er.dialo|
|00004560| 67 20 62 6f 78 2e 0a 41 | 6e 6f 74 68 65 72 20 64 |g box..A|nother d|
|00004570| 69 61 6c 6f 67 20 77 69 | 6c 6c 20 61 70 70 65 61 |ialog wi|ll appea|
|00004580| 72 2c 20 63 6f 6e 66 69 | 72 6d 69 6e 67 20 74 68 |r, confi|rming th|
|00004590| 61 74 20 61 20 66 69 6c | 65 20 6e 61 6d 65 64 20 |at a fil|e named |
|000045a0| 60 60 50 6f 73 74 53 63 | 72 69 70 74 27 27 20 69 |``PostSc|ript'' i|
|000045b0| 73 0a 62 65 69 6e 67 20 | 63 72 65 61 74 65 64 20 |s.being |created |
|000045c0| 28 74 68 65 20 43 6f 6d | 6d 61 6e 64 2d 46 20 6b |(the Com|mand-F k|
|000045d0| 65 79 73 20 63 61 6e 20 | 62 65 20 72 65 6c 65 61 |eys can |be relea|
|000045e0| 73 65 64 20 6e 6f 77 29 | 2e 0a 58 2e 50 50 0a 44 |sed now)|..X.PP.D|
|000045f0| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 74 68 65 20 |epending| on the |
|00004600| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 74 68 65 |applicat|ion, the|
|00004610| 20 63 72 65 61 74 65 64 | 20 50 6f 73 74 53 63 72 | created| PostScr|
|00004620| 69 70 74 20 66 69 6c 65 | 20 63 61 6e 20 62 65 20 |ipt file| can be |
|00004630| 66 6f 75 6e 64 20 69 6e | 20 74 68 65 0a 53 79 73 |found in| the.Sys|
|00004640| 74 65 6d 20 46 6f 6c 64 | 65 72 2c 20 74 68 65 20 |tem Fold|er, the |
|00004650| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 66 6f 6c 64 |applicat|ion fold|
|00004660| 65 72 20 6f 72 20 74 68 | 65 20 74 6f 70 20 6c 65 |er or th|e top le|
|00004670| 76 65 6c 20 6f 66 20 74 | 68 65 20 64 69 73 6b 2e |vel of t|he disk.|
|00004680| 0a 54 68 69 73 20 66 69 | 6c 65 20 63 61 6e 20 74 |.This fi|le can t|
|00004690| 68 65 6e 20 62 65 20 75 | 70 6c 6f 61 64 65 64 20 |hen be u|ploaded |
|000046a0| 76 69 61 20 73 6f 6d 65 | 20 66 69 6c 65 20 74 72 |via some| file tr|
|000046b0| 61 6e 73 66 65 72 20 70 | 72 6f 67 72 61 6d 2c 20 |ansfer p|rogram, |
|000046c0| 73 75 63 68 20 61 73 0a | 4d 61 63 54 65 72 6d 69 |such as.|MacTermi|
|000046d0| 6e 61 6c 2f 56 65 72 73 | 61 54 65 72 6d 20 61 6e |nal/Vers|aTerm an|
|000046e0| 64 0a 58 2e 49 52 20 6d | 61 63 67 65 74 20 28 31 |d.X.IR m|acget (1|
|000046f0| 29 0a 6f 72 20 4d 61 63 | 4b 65 72 6d 69 74 2f 52 |).or Mac|Kermit/R|
|00004700| 65 64 20 52 79 64 65 72 | 20 61 6e 64 0a 58 2e 49 |ed Ryder| and.X.I|
|00004710| 52 20 6b 65 72 6d 69 74 | 20 28 31 29 2e 0a 58 2e |R kermit| (1)..X.|
|00004720| 50 50 0a 4e 6f 72 6d 61 | 6c 6c 79 2c 20 79 6f 75 |PP.Norma|lly, you|
|00004730| 20 77 6f 75 6c 64 20 73 | 70 65 63 69 66 79 20 74 | would s|pecify t|
|00004740| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 6f 70 |he numbe|r of cop|
|00004750| 69 65 73 20 69 6e 20 74 | 68 65 20 4c 61 73 65 72 |ies in t|he Laser|
|00004760| 57 72 69 74 65 72 0a 70 | 72 69 6e 74 20 64 69 61 |Writer.p|rint dia|
|00004770| 6c 6f 67 20 62 6f 78 20 | 6f 6e 20 74 68 65 20 4d |log box |on the M|
|00004780| 61 63 69 6e 74 6f 73 68 | 2e 0a 48 6f 77 65 76 65 |acintosh|..Howeve|
|00004790| 72 2c 20 79 6f 75 20 63 | 61 6e 20 6f 76 65 72 72 |r, you c|an overr|
|000047a0| 69 64 65 20 74 68 61 74 | 20 61 66 74 65 72 20 75 |ide that| after u|
|000047b0| 70 6c 6f 61 64 69 6e 67 | 20 74 68 65 20 50 6f 73 |ploading| the Pos|
|000047c0| 74 53 63 72 69 70 74 20 | 66 69 6c 65 20 62 79 0a |tScript |file by.|
|000047d0| 73 70 65 63 69 66 79 69 | 6e 67 20 74 68 65 0a 58 |specifyi|ng the.X|
|000047e0| 2e 42 20 5c 2d 63 0a 6f | 70 74 69 6f 6e 2c 20 66 |.B \-c.o|ption, f|
|000047f0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 74 68 65 20 6e |ollowed |by the n|
|00004800| 75 6d 62 65 72 20 6f 66 | 20 63 6f 70 69 65 73 2e |umber of| copies.|
|00004810| 0a 58 2e 50 50 0a 54 68 | 65 20 66 69 6c 65 0a 58 |.X.PP.Th|e file.X|
|00004820| 2e 42 20 6d 61 63 70 73 | 2e 63 6f 6e 66 69 67 0a |.B macps|.config.|
|00004830| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6d 61 |specifie|s the ma|
|00004840| 70 70 69 6e 67 20 62 65 | 74 77 65 65 6e 20 74 68 |pping be|tween th|
|00004850| 65 20 69 6e 74 65 72 6e | 61 6c 20 4c 61 73 65 72 |e intern|al Laser|
|00004860| 50 72 65 70 20 6e 61 6d | 65 20 61 6e 64 20 74 68 |Prep nam|e and th|
|00004870| 65 20 61 63 74 75 61 6c | 0a 66 69 6c 65 20 69 74 |e actual|.file it|
|00004880| 20 72 65 73 69 64 65 73 | 20 69 6e 2e 0a 54 68 69 | resides| in..Thi|
|00004890| 73 20 66 69 6c 65 20 69 | 73 20 6e 6f 72 6d 61 6c |s file i|s normal|
|000048a0| 6c 79 20 6c 6f 63 61 74 | 65 64 20 69 6e 20 74 68 |ly locat|ed in th|
|000048b0| 65 20 6c 69 62 20 73 75 | 62 64 69 72 65 63 74 6f |e lib su|bdirecto|
|000048c0| 72 79 20 66 72 6f 6d 20 | 77 68 69 63 68 0a 58 2e |ry from |which.X.|
|000048d0| 49 20 6d 61 63 70 73 0a | 77 61 73 20 63 61 6c 6c |I macps.|was call|
|000048e0| 65 64 20 66 72 6f 6d 2e | 0a 54 68 65 0a 58 2e 42 |ed from.|.The.X.B|
|000048f0| 20 5c 2d 64 0a 6f 70 74 | 69 6f 6e 20 61 6c 6c 6f | \-d.opt|ion allo|
|00004900| 77 20 79 6f 75 20 74 6f | 20 73 70 65 63 69 66 79 |w you to| specify|
|00004910| 20 61 6e 20 61 6c 74 65 | 72 6e 61 74 65 20 64 69 | an alte|rnate di|
|00004920| 72 65 63 74 6f 72 79 20 | 69 6e 20 77 68 69 63 68 |rectory |in which|
|00004930| 20 74 68 65 0a 58 2e 42 | 20 6d 61 63 70 73 2e 63 | the.X.B| macps.c|
|00004940| 6f 6e 66 69 67 0a 66 69 | 6c 65 20 63 61 6e 20 62 |onfig.fi|le can b|
|00004950| 65 20 66 6f 75 6e 64 2e | 0a 58 2e 50 50 0a 4d 6f |e found.|.X.PP.Mo|
|00004960| 73 74 20 4d 61 63 69 6e | 74 6f 73 68 20 61 70 70 |st Macin|tosh app|
|00004970| 6c 69 63 61 74 69 6f 6e | 73 20 70 72 6f 64 75 63 |lication|s produc|
|00004980| 65 20 6e 6f 72 6d 61 6c | 20 41 53 43 49 49 20 50 |e normal| ASCII P|
|00004990| 6f 73 74 53 63 72 69 70 | 74 20 66 69 6c 65 73 2e |ostScrip|t files.|
|000049a0| 0a 48 6f 77 65 76 65 72 | 2c 20 73 6f 6d 65 20 67 |.However|, some g|
|000049b0| 72 61 70 68 69 63 73 20 | 70 72 6f 67 72 61 6d 73 |raphics |programs|
|000049c0| 20 74 68 61 74 20 6d 61 | 6e 69 70 75 6c 61 74 65 | that ma|nipulate|
|000049d0| 20 67 72 61 79 2d 73 63 | 61 6c 65 20 69 6d 61 67 | gray-sc|ale imag|
|000049e0| 65 73 20 77 69 6c 6c 0a | 70 72 6f 64 75 63 65 20 |es will.|produce |
|000049f0| 50 6f 73 74 53 63 72 69 | 70 74 20 66 69 6c 65 73 |PostScri|pt files|
|00004a00| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 20 38 2d | that co|ntain 8-|
|00004a10| 62 69 74 20 62 69 6e 61 | 72 79 20 64 61 74 61 2e |bit bina|ry data.|
|00004a20| 0a 53 69 6e 63 65 0a 58 | 2e 49 20 6d 61 63 70 73 |.Since.X|.I macps|
|00004a30| 0a 6e 6f 72 6d 61 6c 6c | 79 20 63 6f 6e 76 65 72 |.normall|y conver|
|00004a40| 74 73 20 74 68 69 73 20 | 62 69 6e 61 72 79 20 64 |ts this |binary d|
|00004a50| 61 74 61 2c 20 74 68 65 | 73 65 20 50 6f 73 74 53 |ata, the|se PostS|
|00004a60| 63 72 69 70 74 20 66 69 | 6c 65 20 77 69 6c 6c 20 |cript fi|le will |
|00004a70| 6e 6f 74 20 77 6f 72 6b | 0a 70 72 6f 70 65 72 6c |not work|.properl|
|00004a80| 79 2e 0a 54 68 65 0a 58 | 2e 42 20 5c 2d 72 0a 58 |y..The.X|.B \-r.X|
|00004a90| 28 72 61 77 29 20 6f 70 | 74 69 6f 6e 20 73 75 70 |(raw) op|tion sup|
|00004aa0| 70 72 65 73 73 65 73 20 | 74 68 69 73 20 62 69 6e |presses |this bin|
|00004ab0| 61 72 79 20 63 6f 6e 76 | 65 72 73 69 6f 6e 2e 0a |ary conv|ersion..|
|00004ac0| 58 28 4e 6f 74 65 3a 20 | 44 65 70 65 6e 64 69 6e |X(Note: |Dependin|
|00004ad0| 67 20 6f 6e 20 68 6f 77 | 20 74 68 65 20 70 72 69 |g on how| the pri|
|00004ae0| 6e 74 65 72 20 69 73 20 | 70 68 79 73 69 63 61 6c |nter is |physical|
|00004af0| 6c 79 20 63 6f 6e 6e 65 | 63 74 65 64 2c 20 69 74 |ly conne|cted, it|
|00004b00| 20 6d 61 79 20 6e 6f 74 | 20 62 65 0a 61 62 6c 65 | may not| be.able|
|00004b10| 20 74 6f 20 68 61 6e 64 | 6c 65 20 38 2d 62 69 74 | to hand|le 8-bit|
|00004b20| 20 62 69 6e 61 72 79 20 | 64 61 74 61 20 70 72 6f | binary |data pro|
|00004b30| 70 65 72 6c 79 2c 20 61 | 6e 64 20 72 65 73 75 6c |perly, a|nd resul|
|00004b40| 74 73 20 6d 61 79 20 62 | 65 20 64 69 73 61 70 70 |ts may b|e disapp|
|00004b50| 6f 69 6e 74 69 6e 67 2e | 29 0a 58 2e 53 48 20 46 |ointing.|).X.SH F|
|00004b60| 49 4c 45 53 0a 58 2e 54 | 50 20 22 5c 77 27 6c 69 |ILES.X.T|P "\w'li|
|00004b70| 62 2f 6d 61 63 70 73 2e | 63 6f 6e 66 69 67 20 20 |b/macps.|config |
|00004b80| 20 27 75 22 0a 6c 69 62 | 2f 6d 61 63 70 73 2e 63 | 'u".lib|/macps.c|
|00004b90| 6f 6e 66 69 67 0a 6d 61 | 70 73 20 50 72 6f 63 53 |onfig.ma|ps ProcS|
|00004ba0| 65 74 20 69 64 73 20 74 | 6f 20 4c 61 73 65 72 50 |et ids t|o LaserP|
|00004bb0| 72 65 70 20 66 69 6c 65 | 6e 61 6d 65 73 0a 58 2e |rep file|names.X.|
|00004bc0| 53 48 20 22 53 45 45 20 | 41 4c 53 4f 22 0a 6c 70 |SH "SEE |ALSO".lp|
|00004bd0| 72 28 31 29 2c 20 6d 61 | 63 67 65 74 28 31 29 2c |r(1), ma|cget(1),|
|00004be0| 20 6b 65 72 6d 69 74 28 | 31 29 2c 20 70 72 65 70 | kermit(|1), prep|
|00004bf0| 66 69 78 28 31 29 0a 58 | 2e 53 48 20 42 55 47 53 |fix(1).X|.SH BUGS|
|00004c00| 0a 58 2e 49 20 4d 61 63 | 70 73 0a 6f 6e 6c 79 20 |.X.I Mac|ps.only |
|00004c10| 77 6f 72 6b 73 20 77 69 | 74 68 20 76 65 72 73 69 |works wi|th versi|
|00004c20| 6f 6e 20 34 2e 30 20 61 | 6e 64 20 75 70 20 6f 66 |on 4.0 a|nd up of|
|00004c30| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 4c | the Mac|intosh L|
|00004c40| 61 73 65 72 50 72 65 70 | 20 66 69 6c 65 73 2e 0a |aserPrep| files..|
|00004c50| 42 65 63 61 75 73 65 20 | 6f 66 20 74 68 65 20 77 |Because |of the w|
|00004c60| 61 79 20 62 69 74 20 73 | 6d 6f 6f 74 68 69 6e 67 |ay bit s|moothing|
|00004c70| 20 69 73 20 69 6d 70 6c | 69 6d 65 6e 74 65 64 20 | is impl|imented |
|00004c80| 62 79 20 74 68 65 20 4c | 61 73 65 72 57 72 69 74 |by the L|aserWrit|
|00004c90| 65 72 20 64 72 69 76 65 | 72 2c 0a 73 6f 6d 65 20 |er drive|r,.some |
|00004ca0| 50 6f 73 74 53 63 72 69 | 70 74 20 70 72 69 6e 74 |PostScri|pt print|
|00004cb0| 65 72 73 20 6f 74 68 65 | 72 20 74 68 61 6e 20 74 |ers othe|r than t|
|00004cc0| 68 65 20 41 70 70 6c 65 | 20 4c 61 73 65 72 57 72 |he Apple| LaserWr|
|00004cd0| 69 74 65 72 73 20 6d 61 | 79 20 6e 6f 74 20 62 65 |iters ma|y not be|
|00004ce0| 20 61 62 6c 65 20 74 6f | 0a 62 69 74 20 73 6d 6f | able to|.bit smo|
|00004cf0| 6f 74 68 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |oth..END|_OF_FILE|
|00004d00| 0a 69 66 20 74 65 73 74 | 20 32 35 39 32 20 2d 6e |.if test| 2592 -n|
|00004d10| 65 20 60 77 63 20 2d 63 | 20 3c 27 6d 61 63 70 73 |e `wc -c| <'macps|
|00004d20| 2e 31 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.1'`; th|en. e|
|00004d30| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 6d 61 63 |cho shar|: \"'mac|
|00004d40| 70 73 2e 31 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ps.1'\" |unpacked|
|00004d50| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00004d60| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 6d |!.fi.# e|nd of 'm|
|00004d70| 61 63 70 73 2e 31 27 0a | 66 69 0a 69 66 20 74 65 |acps.1'.|fi.if te|
|00004d80| 73 74 20 2d 66 20 27 6d | 61 63 70 73 2e 63 27 20 |st -f 'm|acps.c' |
|00004d90| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00004da0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00004db0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00004dc0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00004dd0| 20 66 69 6c 65 20 5c 22 | 27 6d 61 63 70 73 2e 63 | file \"|'macps.c|
|00004de0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00004df0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00004e00| 22 27 6d 61 63 70 73 2e | 63 27 5c 22 20 5c 28 35 |"'macps.|c'\" \(5|
|00004e10| 30 35 33 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |053 char|acters\)|
|00004e20| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00004e30| 6d 61 63 70 73 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |macps.c'| <<'END_|
|00004e40| 4f 46 5f 46 49 4c 45 27 | 0a 58 2f 2a 0a 58 20 2a |OF_FILE'|.X/*.X *|
|00004e50| 20 43 6f 70 79 72 69 67 | 68 74 20 28 63 29 20 31 | Copyrig|ht (c) 1|
|00004e60| 39 38 38 2c 20 54 68 65 | 20 52 65 67 65 6e 74 73 |988, The| Regents|
|00004e70| 20 6f 66 20 74 68 65 20 | 55 6e 69 76 65 72 73 69 | of the |Universi|
|00004e80| 74 79 20 6f 66 20 43 61 | 6c 69 66 6f 72 6e 69 61 |ty of Ca|lifornia|
|00004e90| 2e 0a 58 20 2a 20 45 64 | 77 61 72 64 20 4d 6f 79 |..X * Ed|ward Moy|
|00004ea0| 2c 20 57 6f 72 6b 73 74 | 61 74 69 6f 6e 20 53 6f |, Workst|ation So|
|00004eb0| 66 74 77 61 72 65 20 53 | 75 70 70 6f 72 74 20 47 |ftware S|upport G|
|00004ec0| 72 6f 75 70 2c 20 57 6f | 72 6b 73 74 61 74 69 6f |roup, Wo|rkstatio|
|00004ed0| 6e 20 53 75 70 70 6f 72 | 74 20 53 65 72 69 63 65 |n Suppor|t Serice|
|00004ee0| 73 2c 0a 58 20 2a 20 49 | 6e 66 6f 72 6d 61 74 69 |s,.X * I|nformati|
|00004ef0| 6f 6e 20 53 79 73 74 65 | 6d 73 20 61 6e 64 20 54 |on Syste|ms and T|
|00004f00| 65 63 68 6e 6f 6c 6f 67 | 79 2e 0a 58 20 2a 0a 58 |echnolog|y..X *.X|
|00004f10| 20 2a 20 50 65 72 6d 69 | 73 73 69 6f 6e 20 69 73 | * Permi|ssion is|
|00004f20| 20 67 72 61 6e 74 65 64 | 20 74 6f 20 61 6e 79 20 | granted| to any |
|00004f30| 69 6e 64 69 76 69 64 75 | 61 6c 20 6f 72 20 69 6e |individu|al or in|
|00004f40| 73 74 69 74 75 74 69 6f | 6e 20 74 6f 20 75 73 65 |stitutio|n to use|
|00004f50| 2c 20 63 6f 70 79 2c 0a | 58 20 2a 20 6f 72 20 72 |, copy,.|X * or r|
|00004f60| 65 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 |edistrib|ute this|
|00004f70| 20 73 6f 66 74 77 61 72 | 65 20 73 6f 20 6c 6f 6e | softwar|e so lon|
|00004f80| 67 20 61 73 20 69 74 20 | 69 73 20 6e 6f 74 20 73 |g as it |is not s|
|00004f90| 6f 6c 64 20 66 6f 72 20 | 70 72 6f 66 69 74 2c 0a |old for |profit,.|
|00004fa0| 58 20 2a 20 70 72 6f 76 | 69 64 65 64 20 74 68 61 |X * prov|ided tha|
|00004fb0| 74 20 74 68 69 73 20 6e | 6f 74 69 63 65 20 61 6e |t this n|otice an|
|00004fc0| 64 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 63 |d the or|iginal c|
|00004fd0| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 73 |opyright| notices|
|00004fe0| 20 61 72 65 0a 58 20 2a | 20 72 65 74 61 69 6e 65 | are.X *| retaine|
|00004ff0| 64 2e 20 20 54 68 65 20 | 55 6e 69 76 65 72 73 69 |d. The |Universi|
|00005000| 74 79 20 6f 66 20 43 61 | 6c 69 66 6f 72 6e 69 61 |ty of Ca|lifornia|
|00005010| 20 6d 61 6b 65 73 20 6e | 6f 20 72 65 70 72 65 73 | makes n|o repres|
|00005020| 65 6e 74 61 74 69 6f 6e | 73 20 61 62 6f 75 74 20 |entation|s about |
|00005030| 74 68 65 0a 58 20 2a 20 | 73 75 69 74 61 62 69 6c |the.X * |suitabil|
|00005040| 69 74 79 20 6f 66 20 74 | 68 69 73 20 73 6f 66 74 |ity of t|his soft|
|00005050| 77 61 72 65 20 66 6f 72 | 20 61 6e 79 20 70 75 72 |ware for| any pur|
|00005060| 70 6f 73 65 2e 20 20 49 | 74 20 69 73 20 70 72 6f |pose. I|t is pro|
|00005070| 76 69 64 65 64 20 22 61 | 73 20 69 73 22 0a 58 20 |vided "a|s is".X |
|00005080| 2a 20 77 69 74 68 6f 75 | 74 20 65 78 70 72 65 73 |* withou|t expres|
|00005090| 73 20 6f 72 20 69 6d 70 | 6c 69 65 64 20 77 61 72 |s or imp|lied war|
|000050a0| 72 61 6e 74 79 2e 0a 58 | 20 2a 2f 0a 58 0a 58 23 |ranty..X| */.X.X#|
|000050b0| 69 66 6e 64 65 66 20 6c | 69 6e 74 0a 73 74 61 74 |ifndef l|int.stat|
|000050c0| 69 63 20 63 68 61 72 20 | 2a 53 43 43 53 69 64 20 |ic char |*SCCSid |
|000050d0| 3d 20 22 40 28 23 29 6d | 61 63 70 73 2e 63 09 32 |= "@(#)m|acps.c.2|
|000050e0| 2e 32 20 31 30 2f 32 35 | 2f 38 39 22 3b 0a 58 23 |.2 10/25|/89";.X#|
|000050f0| 65 6e 64 69 66 20 6c 69 | 6e 74 0a 58 0a 58 23 69 |endif li|nt.X.X#i|
|00005100| 6e 63 6c 75 64 65 20 3c | 63 74 79 70 65 2e 68 3e |nclude <|ctype.h>|
|00005110| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |.X#inclu|de <stdi|
|00005120| 6f 2e 68 3e 0a 58 23 69 | 66 64 65 66 20 53 59 53 |o.h>.X#i|fdef SYS|
|00005130| 56 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |V.X#incl|ude <str|
|00005140| 69 6e 67 2e 68 3e 0a 58 | 23 65 6c 73 65 20 53 59 |ing.h>.X|#else SY|
|00005150| 53 56 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |SV.X#inc|lude <st|
|00005160| 72 69 6e 67 73 2e 68 3e | 0a 58 23 65 6e 64 69 66 |rings.h>|.X#endif|
|00005170| 20 53 59 53 56 0a 58 23 | 69 6e 63 6c 75 64 65 20 | SYSV.X#|include |
|00005180| 3c 73 79 73 2f 74 79 70 | 65 73 2e 68 3e 0a 58 23 |<sys/typ|es.h>.X#|
|00005190| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 66 69 6c |include |<sys/fil|
|000051a0| 65 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |e.h>.X#i|nclude "|
|000051b0| 73 74 72 2e 68 22 0a 58 | 23 69 6e 63 6c 75 64 65 |str.h".X|#include|
|000051c0| 20 22 75 63 62 77 68 69 | 63 68 2e 68 22 0a 58 0a | "ucbwhi|ch.h".X.|
|000051d0| 58 23 64 65 66 69 6e 65 | 09 43 4f 4e 46 49 47 09 |X#define|.CONFIG.|
|000051e0| 09 22 6d 61 63 70 73 2e | 63 6f 6e 66 69 67 22 0a |."macps.|config".|
|000051f0| 58 23 69 66 64 65 66 20 | 53 59 53 56 0a 58 23 64 |X#ifdef |SYSV.X#d|
|00005200| 65 66 69 6e 65 09 69 6e | 64 65 78 09 09 73 74 72 |efine.in|dex..str|
|00005210| 63 68 72 0a 58 23 64 65 | 66 69 6e 65 09 72 69 6e |chr.X#de|fine.rin|
|00005220| 64 65 78 09 09 73 74 72 | 72 63 68 72 0a 58 23 65 |dex..str|rchr.X#e|
|00005230| 6e 64 69 66 20 53 59 53 | 56 0a 58 0a 58 23 69 66 |ndif SYS|V.X.X#if|
|00005240| 64 65 66 20 53 41 56 45 | 0a 63 68 61 72 20 2a 66 |def SAVE|.char *f|
|00005250| 69 6e 61 6c 65 20 3d 20 | 22 63 6c 65 61 72 20 63 |inale = |"clear c|
|00005260| 6f 75 6e 74 64 69 63 74 | 73 74 61 63 6b 20 32 20 |ountdict|stack 2 |
|00005270| 73 75 62 7b 65 6e 64 7d | 72 65 70 65 61 74 20 6d |sub{end}|repeat m|
|00005280| 61 63 70 73 20 72 65 73 | 74 6f 72 65 5c 6e 22 3b |acps res|tore\n";|
|00005290| 0a 63 68 61 72 20 69 6e | 74 72 6f 5b 5d 20 3d 20 |.char in|tro[] = |
|000052a0| 22 5c 0a 58 25 25 21 20 | 2a 2a 2a 20 43 72 65 61 |"\.X%%! |*** Crea|
|000052b0| 74 65 64 20 62 79 20 6d | 61 63 70 73 3a 20 25 73 |ted by m|acps: %s|
|000052c0| 5c 0a 58 2f 6d 61 63 70 | 73 20 73 61 76 65 20 64 |\.X/macp|s save d|
|000052d0| 65 66 5c 6e 5c 0a 58 22 | 3b 0a 58 23 65 6c 73 65 |ef\n\.X"|;.X#else|
|000052e0| 20 53 41 56 45 0a 63 68 | 61 72 20 69 6e 74 72 6f | SAVE.ch|ar intro|
|000052f0| 5b 5d 20 3d 20 22 5c 0a | 58 25 25 21 20 2a 2a 2a |[] = "\.|X%%! ***|
|00005300| 20 43 72 65 61 74 65 64 | 20 62 79 20 6d 61 63 70 | Created| by macp|
|00005310| 73 3a 20 25 73 5c 0a 58 | 22 3b 0a 58 23 65 6e 64 |s: %s\.X|";.X#end|
|00005320| 69 66 20 53 41 56 45 0a | 63 68 61 72 20 2a 6d 79 |if SAVE.|char *my|
|00005330| 6e 61 6d 65 3b 0a 69 6e | 74 20 6e 63 6f 70 69 65 |name;.in|t ncopie|
|00005340| 73 20 3d 20 30 3b 0a 58 | 23 69 66 64 65 66 20 43 |s = 0;.X|#ifdef C|
|00005350| 4f 4e 46 49 47 44 49 52 | 0a 63 68 61 72 20 75 63 |ONFIGDIR|.char uc|
|00005360| 62 6c 69 62 5b 55 43 42 | 4d 41 58 50 41 54 48 4c |blib[UCB|MAXPATHL|
|00005370| 45 4e 5d 20 3d 20 43 4f | 4e 46 49 47 44 49 52 3b |EN] = CO|NFIGDIR;|
|00005380| 0a 58 23 65 6c 73 65 20 | 43 4f 4e 46 49 47 44 49 |.X#else |CONFIGDI|
|00005390| 52 0a 69 6e 74 20 75 63 | 62 61 6c 74 65 72 6e 61 |R.int uc|balterna|
|000053a0| 74 65 3b 0a 63 68 61 72 | 20 75 63 62 70 61 74 68 |te;.char| ucbpath|
|000053b0| 5b 55 43 42 4d 41 58 50 | 41 54 48 4c 45 4e 5d 3b |[UCBMAXP|ATHLEN];|
|000053c0| 0a 63 68 61 72 20 75 63 | 62 6c 69 62 5b 55 43 42 |.char uc|blib[UCB|
|000053d0| 4d 41 58 50 41 54 48 4c | 45 4e 5d 3b 0a 58 23 65 |MAXPATHL|EN];.X#e|
|000053e0| 6e 64 69 66 20 43 4f 4e | 46 49 47 44 49 52 0a 58 |ndif CON|FIGDIR.X|
|000053f0| 0a 6d 61 69 6e 28 61 72 | 67 63 2c 20 61 72 67 76 |.main(ar|gc, argv|
|00005400| 29 0a 69 6e 74 20 61 72 | 67 63 3b 0a 63 68 61 72 |).int ar|gc;.char|
|00005410| 20 2a 2a 61 72 67 76 3b | 0a 58 7b 0a 58 09 72 65 | **argv;|.X{.X.re|
|00005420| 67 69 73 74 65 72 20 53 | 54 52 2a 20 73 74 72 3b |gister S|TR* str;|
|00005430| 0a 58 09 72 65 67 69 73 | 74 65 72 20 63 68 61 72 |.X.regis|ter char|
|00005440| 20 2a 63 70 2c 20 2a 70 | 70 3b 0a 58 09 72 65 67 | *cp, *p|p;.X.reg|
|00005450| 69 73 74 65 72 20 46 49 | 4c 45 20 2a 66 70 3b 0a |ister FI|LE *fp;.|
|00005460| 58 09 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 69 |X.regist|er int i|
|00005470| 2c 20 66 64 3b 0a 58 09 | 63 68 61 72 20 6c 69 6e |, fd;.X.|char lin|
|00005480| 65 5b 42 55 46 53 49 5a | 5d 3b 0a 58 09 63 68 61 |e[BUFSIZ|];.X.cha|
|00005490| 72 20 70 61 74 68 5b 55 | 43 42 4d 41 58 50 41 54 |r path[U|CBMAXPAT|
|000054a0| 48 4c 45 4e 5d 3b 0a 58 | 09 6c 6f 6e 67 20 6c 74 |HLEN];.X|.long lt|
|000054b0| 69 6d 65 3b 0a 58 09 63 | 68 61 72 20 2a 63 74 69 |ime;.X.c|har *cti|
|000054c0| 6d 65 28 29 3b 0a 58 0a | 58 23 69 66 6e 64 65 66 |me();.X.|X#ifndef|
|000054d0| 20 43 4f 4e 46 49 47 44 | 49 52 0a 58 09 75 63 62 | CONFIGD|IR.X.ucb|
|000054e0| 77 68 69 63 68 28 2a 61 | 72 67 76 29 3b 0a 58 23 |which(*a|rgv);.X#|
|000054f0| 65 6e 64 69 66 20 43 4f | 4e 46 49 47 44 49 52 0a |endif CO|NFIGDIR.|
|00005500| 58 09 69 66 28 6d 79 6e | 61 6d 65 20 3d 20 72 69 |X.if(myn|ame = ri|
|00005510| 6e 64 65 78 28 2a 61 72 | 67 76 2c 20 27 2f 27 29 |ndex(*ar|gv, '/')|
|00005520| 29 0a 58 09 09 6d 79 6e | 61 6d 65 2b 2b 3b 0a 58 |).X..myn|ame++;.X|
|00005530| 09 65 6c 73 65 0a 58 09 | 09 6d 79 6e 61 6d 65 20 |.else.X.|.myname |
|00005540| 3d 20 2a 61 72 67 76 3b | 0a 58 09 63 70 20 3d 20 |= *argv;|.X.cp = |
|00005550| 4e 55 4c 4c 3b 0a 58 09 | 66 6f 72 28 61 72 67 63 |NULL;.X.|for(argc|
|00005560| 2d 2d 2c 20 61 72 67 76 | 2b 2b 20 3b 20 61 72 67 |--, argv|++ ; arg|
|00005570| 63 20 3e 20 30 20 26 26 | 20 2a 2a 61 72 67 76 20 |c > 0 &&| **argv |
|00005580| 3d 3d 20 27 2d 27 20 3b | 20 61 72 67 63 2d 2d 2c |== '-' ;| argc--,|
|00005590| 20 61 72 67 76 2b 2b 29 | 20 7b 0a 58 09 09 73 77 | argv++)| {.X..sw|
|000055a0| 69 74 63 68 28 28 2a 61 | 72 67 76 29 5b 31 5d 29 |itch((*a|rgv)[1])|
|000055b0| 20 7b 0a 58 09 09 20 63 | 61 73 65 20 27 63 27 3a | {.X.. c|ase 'c':|
|000055c0| 09 2f 2a 20 6d 75 6c 74 | 69 70 6c 65 20 63 6f 70 |./* mult|iple cop|
|000055d0| 69 65 73 20 2a 2f 0a 58 | 09 09 09 69 66 28 28 2a |ies */.X|...if((*|
|000055e0| 61 72 67 76 29 5b 32 5d | 29 0a 58 09 09 09 09 6e |argv)[2]|).X....n|
|000055f0| 63 6f 70 69 65 73 20 3d | 20 61 74 6f 69 28 26 28 |copies =| atoi(&(|
|00005600| 2a 61 72 67 76 5b 32 5d | 29 29 3b 0a 58 09 09 09 |*argv[2]|));.X...|
|00005610| 65 6c 73 65 20 7b 0a 58 | 09 09 09 09 69 66 28 61 |else {.X|....if(a|
|00005620| 72 67 63 20 3c 20 32 29 | 0a 58 09 09 09 09 09 55 |rgc < 2)|.X.....U|
|00005630| 73 61 67 65 28 29 3b 09 | 2f 2a 20 6e 65 76 65 72 |sage();.|/* never|
|00005640| 20 72 65 74 75 72 6e 73 | 20 2a 2f 0a 58 09 09 09 | returns| */.X...|
|00005650| 09 61 72 67 63 2d 2d 3b | 0a 58 09 09 09 09 6e 63 |.argc--;|.X....nc|
|00005660| 6f 70 69 65 73 20 3d 20 | 61 74 6f 69 28 2a 2b 2b |opies = |atoi(*++|
|00005670| 61 72 67 76 29 3b 0a 58 | 09 09 09 7d 0a 58 09 09 |argv);.X|...}.X..|
|00005680| 09 69 66 28 6e 63 6f 70 | 69 65 73 20 3c 3d 20 30 |.if(ncop|ies <= 0|
|00005690| 29 0a 58 09 09 09 09 55 | 73 61 67 65 28 29 3b 09 |).X....U|sage();.|
|000056a0| 2f 2a 20 6e 65 76 65 72 | 20 72 65 74 75 72 6e 73 |/* never| returns|
|000056b0| 20 2a 2f 0a 58 09 09 09 | 62 72 65 61 6b 3b 0a 58 | */.X...|break;.X|
|000056c0| 09 09 20 63 61 73 65 20 | 27 64 27 3a 09 2f 2a 20 |.. case |'d':./* |
|000056d0| 61 6c 74 65 72 6e 61 74 | 65 20 64 69 72 65 63 74 |alternat|e direct|
|000056e0| 6f 72 79 20 66 6f 72 20 | 63 6f 6e 66 69 67 20 66 |ory for |config f|
|000056f0| 69 6c 65 20 2a 2f 0a 58 | 09 09 09 69 66 28 28 2a |ile */.X|...if((*|
|00005700| 61 72 67 76 29 5b 32 5d | 29 0a 58 09 09 09 09 63 |argv)[2]|).X....c|
|00005710| 70 20 3d 20 26 28 2a 61 | 72 67 76 5b 32 5d 29 3b |p = &(*a|rgv[2]);|
|00005720| 0a 58 09 09 09 65 6c 73 | 65 20 7b 0a 58 09 09 09 |.X...els|e {.X...|
|00005730| 09 69 66 28 61 72 67 63 | 20 3c 20 32 29 0a 58 09 |.if(argc| < 2).X.|
|00005740| 09 09 09 09 55 73 61 67 | 65 28 29 3b 09 2f 2a 20 |....Usag|e();./* |
|00005750| 6e 65 76 65 72 20 72 65 | 74 75 72 6e 73 20 2a 2f |never re|turns */|
|00005760| 0a 58 09 09 09 09 61 72 | 67 63 2d 2d 3b 0a 58 09 |.X....ar|gc--;.X.|
|00005770| 09 09 09 63 70 20 3d 20 | 2a 2b 2b 61 72 67 76 3b |...cp = |*++argv;|
|00005780| 0a 58 09 09 09 7d 0a 58 | 09 09 09 73 74 72 63 70 |.X...}.X|...strcp|
|00005790| 79 28 75 63 62 6c 69 62 | 2c 20 63 70 29 3b 0a 58 |y(ucblib|, cp);.X|
|000057a0| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 20 63 61 |...break|;.X.. ca|
|000057b0| 73 65 20 27 72 27 3a 09 | 2f 2a 20 72 61 77 20 6d |se 'r':.|/* raw m|
|000057c0| 6f 64 65 20 2a 2f 0a 58 | 09 09 09 72 61 77 6d 6f |ode */.X|...rawmo|
|000057d0| 64 65 2b 2b 3b 0a 58 09 | 09 09 62 72 65 61 6b 3b |de++;.X.|..break;|
|000057e0| 0a 58 09 09 20 64 65 66 | 61 75 6c 74 3a 0a 58 09 |.X.. def|ault:.X.|
|000057f0| 09 09 55 73 61 67 65 28 | 29 3b 09 2f 2a 20 6e 65 |..Usage(|);./* ne|
|00005800| 76 65 72 20 72 65 74 75 | 72 6e 73 20 2a 2f 0a 58 |ver retu|rns */.X|
|00005810| 09 09 7d 0a 58 09 7d 0a | 58 09 69 66 28 61 72 67 |..}.X.}.|X.if(arg|
|00005820| 63 20 3e 20 31 29 0a 58 | 09 09 55 73 61 67 65 28 |c > 1).X|..Usage(|
|00005830| 29 3b 09 2f 2a 20 6e 65 | 76 65 72 20 72 65 74 75 |);./* ne|ver retu|
|00005840| 72 6e 73 20 2a 2f 0a 58 | 09 69 66 28 61 72 67 63 |rns */.X|.if(argc|
|00005850| 20 3d 3d 20 31 20 26 26 | 20 66 72 65 6f 70 65 6e | == 1 &&| freopen|
|00005860| 28 2a 61 72 67 76 2c 20 | 22 72 22 2c 20 73 74 64 |(*argv, |"r", std|
|00005870| 69 6e 29 20 3d 3d 20 4e | 55 4c 4c 29 20 7b 0a 58 |in) == N|ULL) {.X|
|00005880| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00005890| 2c 20 22 25 73 3a 20 63 | 61 6e 27 74 20 6f 70 65 |, "%s: c|an't ope|
|000058a0| 6e 20 25 73 5c 6e 22 2c | 20 6d 79 6e 61 6d 65 2c |n %s\n",| myname,|
|000058b0| 20 2a 61 72 67 76 29 3b | 0a 58 09 09 65 78 69 74 | *argv);|.X..exit|
|000058c0| 28 31 29 3b 0a 58 09 7d | 0a 58 09 73 74 72 20 3d |(1);.X.}|.X.str =|
|000058d0| 20 53 54 52 61 6c 6c 6f | 63 28 29 3b 0a 58 09 69 | STRallo|c();.X.i|
|000058e0| 66 28 21 53 54 52 67 65 | 74 73 28 73 74 72 2c 20 |f(!STRge|ts(str, |
|000058f0| 73 74 64 69 6e 29 29 20 | 7b 0a 58 09 09 66 70 72 |stdin)) |{.X..fpr|
|00005900| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|00005910| 3a 20 4e 75 6c 6c 20 69 | 6e 70 75 74 5c 6e 22 2c |: Null i|nput\n",|
|00005920| 20 6d 79 6e 61 6d 65 29 | 3b 0a 58 09 09 65 78 69 | myname)|;.X..exi|
|00005930| 74 28 31 29 3b 0a 58 09 | 7d 0a 58 09 73 74 72 63 |t(1);.X.|}.X.strc|
|00005940| 61 74 28 75 63 62 6c 69 | 62 2c 20 22 2f 22 29 3b |at(ucbli|b, "/");|
|00005950| 0a 58 09 73 74 72 63 70 | 79 28 70 61 74 68 2c 20 |.X.strcp|y(path, |
|00005960| 75 63 62 6c 69 62 29 3b | 0a 58 09 73 74 72 63 61 |ucblib);|.X.strca|
|00005970| 74 28 70 61 74 68 2c 20 | 43 4f 4e 46 49 47 29 3b |t(path, |CONFIG);|
|00005980| 0a 58 09 69 66 28 28 66 | 70 20 3d 20 66 6f 70 65 |.X.if((f|p = fope|
|00005990| 6e 28 70 61 74 68 2c 20 | 22 72 22 29 29 20 3d 3d |n(path, |"r")) ==|
|000059a0| 20 4e 55 4c 4c 29 20 7b | 0a 58 09 09 66 70 72 69 | NULL) {|.X..fpri|
|000059b0| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 25 73 3a |ntf(stde|rr, "%s:|
|000059c0| 20 43 61 6e 27 74 20 6f | 70 65 6e 20 25 73 5c 6e | Can't o|pen %s\n|
|000059d0| 22 2c 20 6d 79 6e 61 6d | 65 2c 20 70 61 74 68 29 |", mynam|e, path)|
|000059e0| 3b 0a 58 09 09 65 78 69 | 74 28 31 29 3b 0a 58 09 |;.X..exi|t(1);.X.|
|000059f0| 7d 0a 58 09 74 69 6d 65 | 28 26 6c 74 69 6d 65 29 |}.X.time|(&ltime)|
|00005a00| 3b 0a 58 09 70 72 69 6e | 74 66 28 69 6e 74 72 6f |;.X.prin|tf(intro|
|00005a10| 2c 20 63 74 69 6d 65 28 | 26 6c 74 69 6d 65 29 29 |, ctime(|&ltime))|
|00005a20| 3b 0a 58 09 64 6f 20 7b | 0a 58 09 09 69 66 28 6e |;.X.do {|.X..if(n|
|00005a30| 63 6f 70 69 65 73 20 21 | 3d 20 30 20 26 26 20 53 |copies !|= 0 && S|
|00005a40| 54 52 68 65 61 64 63 6f | 6d 70 61 72 65 28 73 74 |TRheadco|mpare(st|
|00005a50| 72 2c 20 22 75 73 65 72 | 64 69 63 74 20 2f 23 63 |r, "user|dict /#c|
|00005a60| 6f 70 69 65 73 20 22 29 | 0a 58 09 09 20 3d 3d 20 |opies ")|.X.. == |
|00005a70| 30 29 0a 58 09 09 09 63 | 6f 6e 74 69 6e 75 65 3b |0).X...c|ontinue;|
|00005a80| 0a 58 09 09 69 66 28 53 | 54 52 63 6f 6d 70 61 72 |.X..if(S|TRcompar|
|00005a90| 65 28 73 74 72 2c 20 22 | 25 25 45 4f 46 5c 6e 22 |e(str, "|%%EOF\n"|
|00005aa0| 29 20 3d 3d 20 30 29 20 | 7b 0a 58 23 69 66 64 65 |) == 0) |{.X#ifde|
|00005ab0| 66 20 53 41 56 45 0a 58 | 09 09 09 69 66 28 66 69 |f SAVE.X|...if(fi|
|00005ac0| 6e 61 6c 65 29 20 7b 0a | 58 09 09 09 09 66 70 75 |nale) {.|X....fpu|
|00005ad0| 74 73 28 66 69 6e 61 6c | 65 2c 20 73 74 64 6f 75 |ts(final|e, stdou|
|00005ae0| 74 29 3b 0a 58 09 09 09 | 09 66 69 6e 61 6c 65 20 |t);.X...|.finale |
|00005af0| 3d 20 4e 55 4c 4c 3b 0a | 58 09 09 09 7d 0a 58 23 |= NULL;.|X...}.X#|
|00005b00| 65 6e 64 69 66 20 53 41 | 56 45 0a 58 09 09 09 53 |endif SA|VE.X...S|
|00005b10| 54 52 70 75 74 73 28 73 | 74 72 2c 20 73 74 64 6f |TRputs(s|tr, stdo|
|00005b20| 75 74 29 3b 0a 58 09 09 | 09 63 6f 6e 74 69 6e 75 |ut);.X..|.continu|
|00005b30| 65 3b 0a 58 09 09 7d 0a | 58 09 09 69 66 28 53 54 |e;.X..}.|X..if(ST|
|00005b40| 52 68 65 61 64 63 6f 6d | 70 61 72 65 28 73 74 72 |Rheadcom|pare(str|
|00005b50| 2c 20 22 25 25 49 6e 63 | 6c 75 64 65 50 72 6f 63 |, "%%Inc|ludeProc|
|00005b60| 53 65 74 3a 22 29 20 3d | 3d 20 30 29 20 7b 0a 58 |Set:") =|= 0) {.X|
|00005b70| 09 09 09 66 6f 72 28 63 | 70 20 3d 20 28 63 68 61 |...for(c|p = (cha|
|00005b80| 72 20 2a 29 26 73 74 72 | 2d 3e 62 75 66 70 74 72 |r *)&str|->bufptr|
|00005b90| 5b 31 37 5d 20 3b 20 3b | 20 63 70 2b 2b 29 20 7b |[17] ; ;| cp++) {|
|00005ba0| 0a 58 09 09 09 09 69 66 | 28 21 2a 63 70 29 20 7b |.X....if|(!*cp) {|
|00005bb0| 0a 58 09 09 09 09 09 66 | 70 72 69 6e 74 66 28 73 |.X.....f|printf(s|
|00005bc0| 74 64 65 72 72 2c 0a 58 | 09 09 09 09 20 22 25 73 |tderr,.X|.... "%s|
|00005bd0| 3a 20 53 79 6e 74 61 78 | 20 65 72 72 6f 72 20 6f |: Syntax| error o|
|00005be0| 6e 20 49 6e 63 6c 75 64 | 65 50 72 6f 63 53 65 74 |n Includ|eProcSet|
|00005bf0| 20 6c 69 6e 65 5c 6e 22 | 2c 0a 58 09 09 09 09 09 | line\n"|,.X.....|
|00005c00| 20 6d 79 6e 61 6d 65 29 | 3b 0a 58 09 09 09 09 09 | myname)|;.X.....|
|00005c10| 65 78 69 74 28 31 29 3b | 0a 58 09 09 09 09 7d 0a |exit(1);|.X....}.|
|00005c20| 58 09 09 09 09 69 66 28 | 21 69 73 61 73 63 69 69 |X....if(|!isascii|
|00005c30| 28 2a 63 70 29 20 7c 7c | 20 21 69 73 73 70 61 63 |(*cp) ||| !isspac|
|00005c40| 65 28 2a 63 70 29 29 0a | 58 09 09 09 09 09 62 72 |e(*cp)).|X.....br|
|00005c50| 65 61 6b 3b 0a 58 09 09 | 09 7d 0a 58 09 09 09 70 |eak;.X..|.}.X...p|
|00005c60| 70 20 3d 20 28 63 68 61 | 72 20 2a 29 73 74 72 2d |p = (cha|r *)str-|
|00005c70| 3e 63 75 72 65 6e 64 70 | 74 72 3b 0a 58 09 09 09 |>curendp|tr;.X...|
|00005c80| 77 68 69 6c 65 28 2d 2d | 70 70 20 3e 3d 20 63 70 |while(--|pp >= cp|
|00005c90| 29 20 7b 0a 58 09 09 09 | 09 69 66 28 21 69 73 61 |) {.X...|.if(!isa|
|00005ca0| 73 63 69 69 28 2a 70 70 | 29 20 7c 7c 20 21 69 73 |scii(*pp|) || !is|
|00005cb0| 73 70 61 63 65 28 2a 70 | 70 29 29 0a 58 09 09 09 |space(*p|p)).X...|
|00005cc0| 09 09 62 72 65 61 6b 3b | 0a 58 09 09 09 09 2a 70 |..break;|.X....*p|
|00005cd0| 70 20 3d 20 30 3b 0a 58 | 09 09 09 7d 0a 58 09 09 |p = 0;.X|...}.X..|
|00005ce0| 09 73 74 72 2d 3e 63 75 | 72 65 6e 64 70 74 72 20 |.str->cu|rendptr |
|00005cf0| 3d 20 28 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |= (unsig|ned char|
|00005d00| 20 2a 29 28 70 70 20 2b | 20 31 29 3b 0a 58 09 09 | *)(pp +| 1);.X..|
|00005d10| 09 66 73 65 65 6b 28 66 | 70 2c 20 30 4c 2c 20 30 |.fseek(f|p, 0L, 0|
|00005d20| 29 3b 0a 58 09 09 09 66 | 6f 72 28 20 3b 20 3b 20 |);.X...f|or( ; ; |
|00005d30| 29 20 7b 0a 58 09 09 09 | 09 69 66 28 21 66 67 65 |) {.X...|.if(!fge|
|00005d40| 74 73 28 6c 69 6e 65 2c | 20 42 55 46 53 49 5a 2c |ts(line,| BUFSIZ,|
|00005d50| 20 66 70 29 29 20 7b 0a | 58 09 09 09 09 09 66 70 | fp)) {.|X.....fp|
|00005d60| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 0a 58 09 |rintf(st|derr,.X.|
|00005d70| 09 09 09 09 20 22 25 73 | 3a 20 55 6e 6b 6e 6f 77 |.... "%s|: Unknow|
|00005d80| 6e 20 49 6e 63 6c 75 64 | 65 50 72 6f 63 53 65 74 |n Includ|eProcSet|
|00005d90| 20 25 73 5c 6e 22 2c 0a | 58 09 09 09 09 09 20 6d | %s\n",.|X..... m|
|00005da0| 79 6e 61 6d 65 2c 20 63 | 70 29 3b 0a 58 09 09 09 |yname, c|p);.X...|
|00005db0| 09 09 65 78 69 74 28 31 | 29 3b 0a 58 09 09 09 09 |..exit(1|);.X....|
|00005dc0| 7d 0a 58 09 09 09 09 69 | 66 28 2a 6c 69 6e 65 20 |}.X....i|f(*line |
|00005dd0| 3d 3d 20 27 23 27 29 0a | 58 09 09 09 09 09 63 6f |== '#').|X.....co|
|00005de0| 6e 74 69 6e 75 65 3b 0a | 58 09 09 09 09 69 66 28 |ntinue;.|X....if(|
|00005df0| 70 70 20 3d 20 69 6e 64 | 65 78 28 6c 69 6e 65 2c |pp = ind|ex(line,|
|00005e00| 20 27 5c 6e 27 29 29 20 | 7b 0a 58 09 09 09 09 09 | '\n')) |{.X.....|
|00005e10| 69 66 28 70 70 20 3d 3d | 20 6c 69 6e 65 29 0a 58 |if(pp ==| line).X|
|00005e20| 09 09 09 09 09 09 63 6f | 6e 74 69 6e 75 65 3b 0a |......co|ntinue;.|
|00005e30| 58 09 09 09 09 09 2a 70 | 70 20 3d 20 30 3b 0a 58 |X.....*p|p = 0;.X|
|00005e40| 09 09 09 09 7d 0a 58 09 | 09 09 09 69 66 28 21 28 |....}.X.|...if(!(|
|00005e50| 70 70 20 3d 20 69 6e 64 | 65 78 28 6c 69 6e 65 2c |pp = ind|ex(line,|
|00005e60| 20 27 5c 74 27 29 29 29 | 20 7b 0a 58 09 09 09 09 | '\t')))| {.X....|
|00005e70| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00005e80| 0a 58 09 09 09 09 09 20 | 22 25 73 3a 20 53 79 6e |.X..... |"%s: Syn|
|00005e90| 74 61 78 20 65 72 72 6f | 72 20 69 6e 20 6d 61 63 |tax erro|r in mac|
|00005ea0| 70 73 2e 63 6f 6e 66 69 | 67 5c 6e 22 2c 0a 58 09 |ps.confi|g\n",.X.|
|00005eb0| 09 09 09 09 20 6d 79 6e | 61 6d 65 29 3b 0a 58 09 |.... myn|ame);.X.|
|00005ec0| 09 09 09 09 65 78 69 74 | 28 31 29 3b 0a 58 09 09 |....exit|(1);.X..|
|00005ed0| 09 09 7d 0a 58 09 09 09 | 09 2a 70 70 2b 2b 20 3d |..}.X...|.*pp++ =|
|00005ee0| 20 30 3b 0a 58 09 09 09 | 09 69 66 28 53 54 52 63 | 0;.X...|.if(STRc|
|00005ef0| 6f 6d 70 61 72 65 70 74 | 72 28 73 74 72 2c 20 63 |omparept|r(str, c|
|00005f00| 70 2c 20 6c 69 6e 65 29 | 20 3d 3d 20 30 29 0a 58 |p, line)| == 0).X|
|00005f10| 09 09 09 09 09 62 72 65 | 61 6b 3b 0a 58 09 09 09 |.....bre|ak;.X...|
|00005f20| 7d 0a 58 09 09 09 69 66 | 28 2a 70 70 20 3d 3d 20 |}.X...if|(*pp == |
|00005f30| 27 2f 27 29 0a 58 09 09 | 09 09 73 74 72 63 70 79 |'/').X..|..strcpy|
|00005f40| 28 70 61 74 68 2c 20 70 | 70 29 3b 0a 58 09 09 09 |(path, p|p);.X...|
|00005f50| 65 6c 73 65 20 7b 0a 58 | 09 09 09 09 73 74 72 63 |else {.X|....strc|
|00005f60| 70 79 28 70 61 74 68 2c | 20 75 63 62 6c 69 62 29 |py(path,| ucblib)|
|00005f70| 3b 0a 58 09 09 09 09 73 | 74 72 63 61 74 28 70 61 |;.X....s|trcat(pa|
|00005f80| 74 68 2c 20 70 70 29 3b | 0a 58 09 09 09 7d 0a 58 |th, pp);|.X...}.X|
|00005f90| 09 09 09 66 66 6c 75 73 | 68 28 73 74 64 6f 75 74 |...fflus|h(stdout|
|00005fa0| 29 3b 0a 58 09 09 09 69 | 66 28 28 66 64 20 3d 20 |);.X...i|f((fd = |
|00005fb0| 6f 70 65 6e 28 70 61 74 | 68 2c 20 4f 5f 52 44 4f |open(pat|h, O_RDO|
|00005fc0| 4e 4c 59 2c 20 30 29 29 | 20 3c 20 30 29 20 7b 0a |NLY, 0))| < 0) {.|
|00005fd0| 58 09 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |X....fpr|intf(std|
|00005fe0| 65 72 72 2c 20 22 25 73 | 3a 20 43 61 6e 27 74 20 |err, "%s|: Can't |
|00005ff0| 6f 70 65 6e 20 25 73 5c | 6e 22 2c 20 6d 79 6e 61 |open %s\|n", myna|
|00006000| 6d 65 2c 0a 58 09 09 09 | 09 20 70 61 74 68 29 3b |me,.X...|. path);|
|00006010| 0a 58 09 09 09 09 65 78 | 69 74 28 31 29 3b 0a 58 |.X....ex|it(1);.X|
|00006020| 09 09 09 7d 0a 58 09 09 | 09 77 68 69 6c 65 28 28 |...}.X..|.while((|
|00006030| 69 20 3d 20 72 65 61 64 | 28 66 64 2c 20 6c 69 6e |i = read|(fd, lin|
|00006040| 65 2c 20 42 55 46 53 49 | 5a 29 29 20 3e 20 30 29 |e, BUFSI|Z)) > 0)|
|00006050| 0a 58 09 09 09 09 77 72 | 69 74 65 28 31 2c 20 6c |.X....wr|ite(1, l|
|00006060| 69 6e 65 2c 20 69 29 3b | 0a 58 09 09 09 63 6c 6f |ine, i);|.X...clo|
|00006070| 73 65 28 66 64 29 3b 0a | 58 09 09 09 63 6f 6e 74 |se(fd);.|X...cont|
|00006080| 69 6e 75 65 3b 0a 58 09 | 09 7d 0a 58 09 09 53 54 |inue;.X.|.}.X..ST|
|00006090| 52 70 75 74 73 28 73 74 | 72 2c 20 73 74 64 6f 75 |Rputs(st|r, stdou|
|000060a0| 74 29 3b 0a 58 09 09 69 | 66 28 6e 63 6f 70 69 65 |t);.X..i|f(ncopie|
|000060b0| 73 20 3e 20 31 20 26 26 | 20 69 73 61 73 63 69 69 |s > 1 &&| isascii|
|000060c0| 28 2a 73 74 72 2d 3e 62 | 75 66 70 74 72 29 20 26 |(*str->b|ufptr) &|
|000060d0| 26 0a 58 09 09 20 69 73 | 64 69 67 69 74 28 2a 73 |&.X.. is|digit(*s|
|000060e0| 74 72 2d 3e 62 75 66 70 | 74 72 29 29 20 7b 0a 58 |tr->bufp|tr)) {.X|
|000060f0| 09 09 09 63 70 20 3d 20 | 28 63 68 61 72 20 2a 29 |...cp = |(char *)|
|00006100| 73 74 72 2d 3e 62 75 66 | 70 74 72 3b 0a 58 09 09 |str->buf|ptr;.X..|
|00006110| 09 77 68 69 6c 65 28 63 | 70 20 3c 20 28 63 68 61 |.while(c|p < (cha|
|00006120| 72 20 2a 29 73 74 72 2d | 3e 63 75 72 65 6e 64 70 |r *)str-|>curendp|
|00006130| 74 72 20 26 26 20 69 73 | 61 73 63 69 69 28 2a 63 |tr && is|ascii(*c|
|00006140| 70 29 0a 58 09 09 09 20 | 26 26 20 69 73 64 69 67 |p).X... |&& isdig|
|00006150| 69 74 28 2a 63 70 29 29 | 0a 58 09 09 09 09 63 70 |it(*cp))|.X....cp|
|00006160| 2b 2b 3b 0a 58 09 09 09 | 69 66 28 28 63 68 61 72 |++;.X...|if((char|
|00006170| 20 2a 29 73 74 72 2d 3e | 63 75 72 65 6e 64 70 74 | *)str->|curendpt|
|00006180| 72 20 2d 20 63 70 20 3d | 3d 20 34 20 26 26 0a 58 |r - cp =|= 4 &&.X|
|00006190| 09 09 09 20 53 54 52 63 | 6f 6d 70 61 72 65 70 74 |... STRc|omparept|
|000061a0| 72 28 73 74 72 2c 20 63 | 70 2c 20 22 20 6d 66 5c |r(str, c|p, " mf\|
|000061b0| 6e 22 29 20 3d 3d 20 30 | 29 20 7b 0a 58 09 09 09 |n") == 0|) {.X...|
|000061c0| 09 70 72 69 6e 74 66 28 | 22 75 73 65 72 64 69 63 |.printf(|"userdic|
|000061d0| 74 20 2f 23 63 6f 70 69 | 65 73 20 25 64 20 70 75 |t /#copi|es %d pu|
|000061e0| 74 5c 6e 22 2c 20 6e 63 | 6f 70 69 65 73 29 3b 0a |t\n", nc|opies);.|
|000061f0| 58 09 09 09 09 6e 63 6f | 70 69 65 73 20 3d 20 2d |X....nco|pies = -|
|00006200| 31 3b 0a 58 09 09 09 7d | 0a 58 09 09 7d 0a 58 09 |1;.X...}|.X..}.X.|
|00006210| 7d 20 77 68 69 6c 65 28 | 53 54 52 67 65 74 73 28 |} while(|STRgets(|
|00006220| 73 74 72 2c 20 73 74 64 | 69 6e 29 29 3b 0a 58 23 |str, std|in));.X#|
|00006230| 69 66 64 65 66 20 53 41 | 56 45 0a 58 09 69 66 28 |ifdef SA|VE.X.if(|
|00006240| 66 69 6e 61 6c 65 29 0a | 58 09 09 66 70 75 74 73 |finale).|X..fputs|
|00006250| 28 66 69 6e 61 6c 65 2c | 20 73 74 64 6f 75 74 29 |(finale,| stdout)|
|00006260| 3b 0a 58 23 65 6e 64 69 | 66 20 53 41 56 45 0a 58 |;.X#endi|f SAVE.X|
|00006270| 09 65 78 69 74 28 30 29 | 3b 0a 58 7d 0a 58 0a 55 |.exit(0)|;.X}.X.U|
|00006280| 73 61 67 65 28 29 0a 58 | 7b 0a 58 09 66 70 75 74 |sage().X|{.X.fput|
|00006290| 73 28 22 55 73 61 67 65 | 3a 20 6d 61 63 70 73 20 |s("Usage|: macps |
|000062a0| 5b 2d 63 20 23 5d 20 5b | 2d 64 20 64 69 72 65 63 |[-c #] [|-d direc|
|000062b0| 74 6f 72 79 5d 20 5b 2d | 72 5d 20 5b 66 69 6c 65 |tory] [-|r] [file|
|000062c0| 5d 5c 6e 22 2c 20 73 74 | 64 65 72 72 29 3b 0a 58 |]\n", st|derr);.X|
|000062d0| 09 65 78 69 74 28 31 29 | 3b 0a 58 7d 0a 45 4e 44 |.exit(1)|;.X}.END|
|000062e0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000062f0| 20 35 30 35 33 20 2d 6e | 65 20 60 77 63 20 2d 63 | 5053 -n|e `wc -c|
|00006300| 20 3c 27 6d 61 63 70 73 | 2e 63 27 60 3b 20 74 68 | <'macps|.c'`; th|
|00006310| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00006320| 3a 20 5c 22 27 6d 61 63 | 70 73 2e 63 27 5c 22 20 |: \"'mac|ps.c'\" |
|00006330| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00006340| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00006350| 6e 64 20 6f 66 20 27 6d | 61 63 70 73 2e 63 27 0a |nd of 'm|acps.c'.|
|00006360| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 6d |fi.if te|st -f 'm|
|00006370| 61 63 70 73 2e 63 6f 6e | 66 69 67 27 20 2d 61 20 |acps.con|fig' -a |
|00006380| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00006390| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000063a0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000063b0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000063c0| 6c 65 20 5c 22 27 6d 61 | 63 70 73 2e 63 6f 6e 66 |le \"'ma|cps.conf|
|000063d0| 69 67 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |ig'\".el|se.echo |
|000063e0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000063f0| 20 5c 22 27 6d 61 63 70 | 73 2e 63 6f 6e 66 69 67 | \"'macp|s.config|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.