home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 4d 65 73 73 61 67 65 | 2d 49 64 3a 20 3c 31 39 |#Message|-Id: <19|
|00000010| 39 33 30 34 32 39 32 33 | 35 31 2e 41 41 30 36 34 |93042923|51.AA064|
|00000020| 36 38 40 72 61 69 6e 62 | 6f 77 2e 63 73 65 2e 6e |68@rainb|ow.cse.n|
|00000030| 61 75 2e 65 64 75 3e 0a | 23 46 72 6f 6d 3a 20 72 |au.edu>.|#From: r|
|00000040| 6f 6f 74 40 72 61 69 6e | 62 6f 77 2e 63 73 65 2e |oot@rain|bow.cse.|
|00000050| 6e 61 75 2e 65 64 75 20 | 28 53 79 73 74 65 6d 20 |nau.edu |(System |
|00000060| 41 64 6d 69 6e 69 73 74 | 72 61 74 6f 72 29 0a 23 |Administ|rator).#|
|00000070| 44 61 74 65 3a 20 54 68 | 75 2c 20 32 39 20 41 70 |Date: Th|u, 29 Ap|
|00000080| 72 20 31 39 39 33 20 31 | 36 3a 35 31 3a 35 37 20 |r 1993 1|6:51:57 |
|00000090| 4d 53 54 0a 23 54 6f 3a | 20 76 69 78 69 65 0a 23 |MST.#To:| vixie.#|
|000000a0| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 73 65 6e |Subject:| Re: sen|
|000000b0| 64 20 6d 65 20 79 6f 75 | 72 20 74 6f 6f 6c 73 0a |d me you|r tools.|
|000000c0| 23 0a 23 48 65 72 65 27 | 73 20 61 20 6c 69 74 74 |#.#Here'|s a litt|
|000000d0| 6c 65 20 74 6f 6f 6c 20 | 49 20 77 72 6f 74 65 20 |le tool |I wrote |
|000000e0| 66 6f 72 20 42 69 6e 64 | 2c 20 79 6f 75 20 63 61 |for Bind|, you ca|
|000000f0| 6e 20 69 6e 63 6c 75 64 | 65 20 69 74 20 69 6e 20 |n includ|e it in |
|00000100| 74 68 65 0a 23 22 63 6f | 6e 74 72 69 62 22 20 61 |the.#"co|ntrib" a|
|00000110| 72 65 61 20 6f 66 20 34 | 2e 39 2e 58 20 69 66 20 |rea of 4|.9.X if |
|00000120| 79 6f 75 20 77 61 6e 74 | 2e 20 20 49 74 20 62 75 |you want|. It bu|
|00000130| 69 6c 64 73 20 61 20 6e | 65 77 20 72 6f 6f 74 20 |ilds a n|ew root |
|00000140| 63 61 63 68 65 20 66 69 | 6c 65 0a 23 66 6f 72 20 |cache fi|le.#for |
|00000150| 79 6f 75 2c 20 62 79 20 | 71 75 65 72 79 69 6e 67 |you, by |querying|
|00000160| 20 61 6e 79 20 72 6f 6f | 74 20 6e 61 6d 65 20 73 | any roo|t name s|
|00000170| 65 72 76 65 72 20 69 74 | 20 63 61 6e 20 73 74 69 |erver it| can sti|
|00000180| 6c 6c 20 74 61 6c 6b 20 | 74 6f 2e 0a 23 53 6f 72 |ll talk |to..#Sor|
|00000190| 74 61 20 6e 69 63 65 20 | 66 6f 72 20 61 75 74 6f |ta nice |for auto|
|000001a0| 6d 61 74 69 6f 6e 2c 20 | 6c 69 6b 65 20 66 6f 72 |mation, |like for|
|000001b0| 20 73 69 74 65 73 20 74 | 68 61 74 20 64 6f 6e 27 | sites t|hat don'|
|000001c0| 74 20 68 61 76 65 20 61 | 20 66 75 6c 6c 2d 74 69 |t have a| full-ti|
|000001d0| 6d 65 0a 23 6e 65 74 77 | 6f 72 6b 20 61 64 6d 69 |me.#netw|ork admi|
|000001e0| 6e 69 73 74 72 61 74 6f | 72 2e 0a 23 0a 23 49 20 |nistrato|r..#.#I |
|000001f0| 68 61 76 65 6e 27 74 20 | 74 72 69 65 64 20 69 74 |haven't |tried it|
|00000200| 20 6f 75 74 20 75 6e 64 | 65 72 20 42 69 6e 64 20 | out und|er Bind |
|00000210| 34 2e 39 2c 20 6a 75 73 | 74 20 34 2e 38 2e 33 2e |4.9, jus|t 4.8.3.|
|00000220| 0a 23 59 6f 75 20 6d 69 | 67 68 74 20 67 69 76 65 |.#You mi|ght give|
|00000230| 20 69 74 20 61 20 67 6f | 20 2d 2d 20 68 6f 70 65 | it a go| -- hope|
|00000240| 66 75 6c 6c 79 20 6e 6f | 20 6d 6f 64 69 66 69 63 |fully no| modific|
|00000250| 61 74 69 6f 6e 73 20 77 | 69 6c 6c 20 62 65 20 6e |ations w|ill be n|
|00000260| 65 63 65 73 73 61 72 79 | 2e 0a 23 42 65 6c 6f 77 |ecessary|..#Below|
|00000270| 20 69 73 20 74 68 65 20 | 22 73 68 61 72 22 20 61 | is the |"shar" a|
|00000280| 72 63 68 69 76 65 2e 20 | 20 4e 6f 20 6d 61 6e 2d |rchive. | No man-|
|00000290| 70 61 67 65 2c 20 6a 75 | 73 74 20 61 20 63 6f 6d |page, ju|st a com|
|000002a0| 70 6c 65 74 65 20 52 45 | 41 44 4d 45 2e 0a 23 0a |plete RE|ADME..#.|
|000002b0| 23 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |# | |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002e0| 20 2d 2d 20 70 61 75 6c | 20 62 61 6c 79 6f 7a 0a | -- paul| balyoz.|
|000002f0| 23 0a 0a 23 21 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |#..#! /b|in/sh.# |
|00000300| 54 68 69 73 20 69 73 20 | 61 20 73 68 65 6c 6c 20 |This is |a shell |
|00000310| 61 72 63 68 69 76 65 2e | 20 20 52 65 6d 6f 76 65 |archive.| Remove|
|00000320| 20 61 6e 79 74 68 69 6e | 67 20 62 65 66 6f 72 65 | anythin|g before|
|00000330| 20 74 68 69 73 20 6c 69 | 6e 65 2c 20 74 68 65 6e | this li|ne, then|
|00000340| 20 75 6e 70 61 63 6b 0a | 23 20 69 74 20 62 79 20 | unpack.|# it by |
|00000350| 73 61 76 69 6e 67 20 69 | 74 20 69 6e 74 6f 20 61 |saving i|t into a|
|00000360| 20 66 69 6c 65 20 61 6e | 64 20 74 79 70 69 6e 67 | file an|d typing|
|00000370| 20 22 73 68 20 66 69 6c | 65 22 2e 20 20 54 6f 20 | "sh fil|e". To |
|00000380| 6f 76 65 72 77 72 69 74 | 65 20 65 78 69 73 74 69 |overwrit|e existi|
|00000390| 6e 67 0a 23 20 66 69 6c | 65 73 2c 20 74 79 70 65 |ng.# fil|es, type|
|000003a0| 20 22 73 68 20 66 69 6c | 65 20 2d 63 22 2e 20 20 | "sh fil|e -c". |
|000003b0| 59 6f 75 20 63 61 6e 20 | 61 6c 73 6f 20 66 65 65 |You can |also fee|
|000003c0| 64 20 74 68 69 73 20 61 | 73 20 73 74 61 6e 64 61 |d this a|s standa|
|000003d0| 72 64 20 69 6e 70 75 74 | 20 76 69 61 0a 23 20 75 |rd input| via.# u|
|000003e0| 6e 73 68 61 72 2c 20 6f | 72 20 62 79 20 74 79 70 |nshar, o|r by typ|
|000003f0| 69 6e 67 20 22 73 68 20 | 3c 66 69 6c 65 22 2c 20 |ing "sh |<file", |
|00000400| 65 2e 67 2e 2e 20 20 49 | 66 20 74 68 69 73 20 61 |e.g.. I|f this a|
|00000410| 72 63 68 69 76 65 20 69 | 73 20 63 6f 6d 70 6c 65 |rchive i|s comple|
|00000420| 74 65 2c 20 79 6f 75 0a | 23 20 77 69 6c 6c 20 73 |te, you.|# will s|
|00000430| 65 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ee the f|ollowing|
|00000440| 20 6d 65 73 73 61 67 65 | 20 61 74 20 74 68 65 20 | message| at the |
|00000450| 65 6e 64 3a 0a 23 09 09 | 22 45 6e 64 20 6f 66 20 |end:.#..|"End of |
|00000460| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2e 22 0a |shell ar|chive.".|
|00000470| 23 20 43 6f 6e 74 65 6e | 74 73 3a 20 20 52 45 41 |# Conten|ts: REA|
|00000480| 44 4d 45 20 4d 61 6b 65 | 66 69 6c 65 20 63 61 63 |DME Make|file cac|
|00000490| 68 65 62 75 69 6c 64 2e | 53 48 20 63 61 63 68 65 |hebuild.|SH cache|
|000004a0| 62 75 69 6c 64 2e 61 77 | 6b 0a 23 20 57 72 61 70 |build.aw|k.# Wrap|
|000004b0| 70 65 64 20 62 79 20 72 | 6f 6f 74 40 72 61 69 6e |ped by r|oot@rain|
|000004c0| 62 6f 77 20 6f 6e 20 53 | 75 6e 20 41 70 72 20 31 |bow on S|un Apr 1|
|000004d0| 38 20 32 30 3a 34 32 3a | 34 37 20 31 39 39 33 0a |8 20:42:|47 1993.|
|000004e0| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|000004f0| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000500| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000510| 74 20 2d 66 20 27 52 45 | 41 44 4d 45 27 20 2d 61 |t -f 'RE|ADME' -a|
|00000520| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00000530| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00000540| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00000550| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00000560| 69 6c 65 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ile \"'R|EADME'\"|
|00000570| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00000580| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 52 | Extract|ing \"'R|
|00000590| 45 41 44 4d 45 27 5c 22 | 20 5c 28 32 39 36 33 20 |EADME'\"| \(2963 |
|000005a0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|000005b0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 52 45 41 44 | "s/^X//|" >'READ|
|000005c0| 4d 45 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |ME' <<'E|ND_OF_FI|
|000005d0| 4c 45 27 0a 58 0a 58 09 | 09 09 43 41 43 48 45 20 |LE'.X.X.|..CACHE |
|000005e0| 42 55 49 4c 44 20 50 52 | 4f 47 52 41 4d 0a 58 0a |BUILD PR|OGRAM.X.|
|000005f0| 58 44 45 53 43 52 49 50 | 54 49 4f 4e 3a 0a 58 0a |XDESCRIP|TION:.X.|
|00000600| 58 54 68 69 73 20 75 74 | 69 6c 69 74 79 20 77 69 |XThis ut|ility wi|
|00000610| 6c 6c 20 62 75 69 6c 64 | 20 74 68 65 20 6c 61 74 |ll build| the lat|
|00000620| 65 73 74 20 72 6f 6f 74 | 20 64 6f 6d 61 69 6e 20 |est root| domain |
|00000630| 73 65 72 76 65 72 20 63 | 61 63 68 65 20 66 6f 72 |server c|ache for|
|00000640| 20 79 6f 75 72 0a 58 42 | 49 4e 44 20 6e 61 6d 65 | your.XB|IND name|
|00000650| 73 65 72 76 65 72 20 64 | 61 74 61 20 62 61 73 65 |server d|ata base|
|00000660| 2c 20 62 79 20 72 75 6e | 6e 69 6e 67 20 6e 73 6c |, by run|ning nsl|
|00000670| 6f 6f 6b 75 70 20 74 6f | 20 71 75 65 72 79 20 6f |ookup to| query o|
|00000680| 6e 65 20 6f 66 20 74 68 | 65 20 6b 6e 6f 77 6e 0a |ne of th|e known.|
|00000690| 58 72 6f 6f 74 20 64 6f | 6d 61 69 6e 20 73 65 72 |Xroot do|main ser|
|000006a0| 76 65 72 73 2c 20 61 6e | 64 20 70 61 73 73 69 6e |vers, an|d passin|
|000006b0| 67 20 74 68 65 20 6f 75 | 74 70 75 74 20 74 68 72 |g the ou|tput thr|
|000006c0| 6f 75 67 68 20 61 6e 20 | 61 77 6b 20 73 63 72 69 |ough an |awk scri|
|000006d0| 70 74 20 74 6f 0a 58 67 | 65 6e 65 72 61 74 65 20 |pt to.Xg|enerate |
|000006e0| 74 68 65 20 66 69 6c 65 | 2e 20 20 53 69 6d 70 6c |the file|. Simpl|
|000006f0| 65 2c 20 72 65 61 6c 6c | 79 2e 0a 58 0a 58 4f 66 |e, reall|y..X.XOf|
|00000700| 20 63 6f 75 72 73 65 2c | 20 79 6f 75 72 20 6e 61 | course,| your na|
|00000710| 6d 65 20 73 65 72 76 65 | 72 27 73 20 63 75 72 72 |me serve|r's curr|
|00000720| 65 6e 74 20 72 6f 6f 74 | 2e 63 61 63 68 65 20 6d |ent root|.cache m|
|00000730| 75 73 74 20 68 61 76 65 | 20 61 74 20 6c 65 61 73 |ust have| at leas|
|00000740| 74 0a 58 4f 4e 45 20 77 | 6f 72 6b 69 6e 67 20 72 |t.XONE w|orking r|
|00000750| 6f 6f 74 20 64 6f 6d 61 | 69 6e 20 73 65 72 76 65 |oot doma|in serve|
|00000760| 72 20 61 6e 64 20 69 74 | 73 20 61 64 64 72 65 73 |r and it|s addres|
|00000770| 73 2c 20 6f 72 20 79 6f | 75 20 63 61 6e 27 74 20 |s, or yo|u can't |
|00000780| 67 65 74 20 74 6f 0a 58 | 61 20 72 6f 6f 74 20 73 |get to.X|a root s|
|00000790| 65 72 76 65 72 20 74 6f | 20 61 73 6b 20 61 62 6f |erver to| ask abo|
|000007a0| 75 74 20 6f 74 68 65 72 | 20 72 6f 6f 74 20 73 65 |ut other| root se|
|000007b0| 72 76 65 72 73 2e 20 20 | 28 42 75 74 20 74 68 65 |rvers. |(But the|
|000007c0| 6e 2c 20 79 6f 75 27 64 | 20 6b 6e 6f 77 0a 58 69 |n, you'd| know.Xi|
|000007d0| 74 20 62 79 20 6e 6f 77 | 2c 20 79 6f 75 72 20 6e |t by now|, your n|
|000007e0| 61 6d 65 73 65 72 76 65 | 72 20 77 6f 75 6c 64 6e |ameserve|r wouldn|
|000007f0| 27 74 20 62 65 20 77 6f | 72 6b 69 6e 67 21 29 20 |'t be wo|rking!) |
|00000800| 20 54 68 69 73 20 77 69 | 6c 6c 20 62 75 69 6c 64 | This wi|ll build|
|00000810| 20 61 20 6d 6f 72 65 0a | 58 75 70 2d 74 6f 2d 64 | a more.|Xup-to-d|
|00000820| 61 74 65 20 72 6f 6f 74 | 2e 63 61 63 68 65 20 74 |ate root|.cache t|
|00000830| 68 61 6e 20 74 68 65 20 | 6f 6e 65 20 74 68 61 74 |han the |one that|
|00000840| 20 63 6f 6d 65 73 20 77 | 69 74 68 20 74 68 65 20 | comes w|ith the |
|00000850| 42 49 4e 44 20 64 69 73 | 74 72 69 62 75 74 69 6f |BIND dis|tributio|
|00000860| 6e 2e 0a 58 0a 58 52 75 | 6e 20 63 61 63 68 65 62 |n..X.XRu|n cacheb|
|00000870| 75 69 6c 64 20 65 76 65 | 72 79 20 6d 6f 6e 74 68 |uild eve|ry month|
|00000880| 20 6f 72 20 74 77 6f 20 | 74 6f 20 6b 65 65 70 20 | or two |to keep |
|00000890| 79 6f 75 72 20 6e 61 6d | 65 73 65 72 76 65 72 20 |your nam|eserver |
|000008a0| 75 70 20 74 6f 20 64 61 | 74 65 2e 0a 58 59 6f 75 |up to da|te..XYou|
|000008b0| 20 63 61 6e 20 72 75 6e | 20 69 74 20 66 72 6f 6d | can run| it from|
|000008c0| 20 63 72 6f 6e 20 69 66 | 20 79 6f 75 27 72 65 20 | cron if| you're |
|000008d0| 62 72 61 76 65 2e 0a 58 | 0a 58 43 61 63 68 65 62 |brave..X|.XCacheb|
|000008e0| 75 69 6c 64 20 73 68 6f | 75 6c 64 20 4e 4f 54 20 |uild sho|uld NOT |
|000008f0| 62 65 20 72 75 6e 20 6f | 6e 20 72 6f 6f 74 20 6e |be run o|n root n|
|00000900| 61 6d 65 20 73 65 72 76 | 65 72 73 20 74 68 65 6d |ame serv|ers them|
|00000910| 73 65 6c 76 65 73 20 2d | 2d 0a 58 74 68 6f 73 65 |selves -|-.Xthose|
|00000920| 20 73 69 74 65 73 20 61 | 72 65 20 6d 75 63 68 20 | sites a|re much |
|00000930| 74 6f 6f 20 69 6d 70 6f | 72 74 61 6e 74 20 74 6f |too impo|rtant to|
|00000940| 20 74 72 75 73 74 20 61 | 75 74 6f 6d 61 74 65 64 | trust a|utomated|
|00000950| 20 73 6f 66 74 77 61 72 | 65 21 0a 58 43 61 63 68 | softwar|e!.XCach|
|00000960| 65 62 75 69 6c 64 20 69 | 73 20 69 6e 74 65 6e 64 |ebuild i|s intend|
|00000970| 65 64 20 74 6f 20 62 65 | 20 75 73 65 64 20 62 79 |ed to be| used by|
|00000980| 20 6e 6f 72 6d 61 6c 20 | 49 6e 74 65 72 6e 65 74 | normal |Internet|
|00000990| 20 73 69 74 65 73 2e 0a | 58 0a 58 48 4f 57 20 49 | sites..|X.XHOW I|
|000009a0| 54 20 57 4f 52 4b 53 3a | 0a 58 0a 58 54 68 65 20 |T WORKS:|.X.XThe |
|000009b0| 66 69 6c 65 20 22 72 6f | 6f 74 2e 63 61 63 68 65 |file "ro|ot.cache|
|000009c0| 22 20 69 73 20 63 72 65 | 61 74 65 64 20 69 6e 20 |" is cre|ated in |
|000009d0| 79 6f 75 72 20 63 75 72 | 72 65 6e 74 6c 79 20 64 |your cur|rently d|
|000009e0| 69 72 65 63 74 6f 72 79 | 20 77 68 65 6e 0a 58 63 |irectory| when.Xc|
|000009f0| 61 63 68 65 62 75 69 6c | 64 20 69 73 20 72 75 6e |achebuil|d is run|
|00000a00| 2e 20 20 44 6f 6e 27 74 | 20 77 6f 72 72 79 20 74 |. Don't| worry t|
|00000a10| 68 6f 75 67 68 2c 20 69 | 66 20 74 68 65 72 65 27 |hough, i|f there'|
|00000a20| 73 20 61 6e 20 65 78 69 | 73 74 69 6e 67 20 66 69 |s an exi|sting fi|
|00000a30| 6c 65 0a 58 62 79 20 74 | 68 61 74 20 6e 61 6d 65 |le.Xby t|hat name|
|00000a40| 20 69 74 20 77 69 6c 6c | 20 62 65 20 6d 6f 76 65 | it will| be move|
|00000a50| 64 20 74 6f 20 22 72 6f | 6f 74 2e 63 61 63 68 65 |d to "ro|ot.cache|
|00000a60| 2e 6f 6c 64 22 20 28 61 | 6e 64 20 73 69 6d 69 6c |.old" (a|nd simil|
|00000a70| 61 72 6c 79 2c 0a 58 61 | 6e 20 65 78 69 73 74 69 |arly,.Xa|n existi|
|00000a80| 6e 67 20 66 69 6c 65 20 | 62 79 20 74 68 61 74 20 |ng file |by that |
|00000a90| 6e 61 6d 65 20 69 73 20 | 6d 6f 76 65 64 20 74 6f |name is |moved to|
|00000aa0| 20 22 72 6f 6f 74 2e 63 | 61 63 68 65 2e 6f 6c 64 | "root.c|ache.old|
|00000ab0| 65 72 22 29 2e 0a 58 0a | 58 54 68 65 72 65 27 73 |er")..X.|XThere's|
|00000ac0| 20 6e 6f 20 67 75 61 72 | 61 6e 74 65 65 20 74 68 | no guar|antee th|
|00000ad0| 61 74 20 74 68 65 20 6f | 75 74 70 75 74 20 66 72 |at the o|utput fr|
|00000ae0| 6f 6d 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |om this |program |
|00000af0| 69 73 20 63 6f 72 72 65 | 63 74 3b 0a 58 61 66 74 |is corre|ct;.Xaft|
|00000b00| 65 72 20 79 6f 75 20 67 | 65 6e 65 72 61 74 65 20 |er you g|enerate |
|00000b10| 61 20 6e 65 77 20 72 6f | 6f 74 2e 63 61 63 68 65 |a new ro|ot.cache|
|00000b20| 20 66 69 6c 65 2c 20 65 | 78 61 6d 69 6e 65 20 69 | file, e|xamine i|
|00000b30| 74 20 63 61 72 65 66 75 | 6c 6c 79 20 61 6e 64 0a |t carefu|lly and.|
|00000b40| 58 63 6f 6d 70 61 72 65 | 20 69 74 20 77 69 74 68 |Xcompare| it with|
|00000b50| 20 79 6f 75 72 20 6f 6c | 64 20 6f 6e 65 2e 20 20 | your ol|d one. |
|00000b60| 4b 65 65 70 20 79 6f 75 | 72 20 6f 6c 64 20 72 6f |Keep you|r old ro|
|00000b70| 6f 74 2e 63 61 63 68 65 | 20 66 69 6c 65 73 20 61 |ot.cache| files a|
|00000b80| 72 6f 75 6e 64 2c 0a 58 | 6a 75 73 74 20 69 6e 20 |round,.X|just in |
|00000b90| 63 61 73 65 21 0a 58 0a | 58 54 68 65 20 6f 6e 6c |case!.X.|XThe onl|
|00000ba0| 79 20 63 68 61 6c 6c 65 | 6e 67 65 20 69 73 20 61 |y challe|nge is a|
|00000bb0| 64 6a 75 73 74 69 6e 67 | 20 74 68 65 20 61 77 6b |djusting| the awk|
|00000bc0| 20 73 63 72 69 70 74 20 | 74 6f 20 77 6f 72 6b 20 | script |to work |
|00000bd0| 77 69 74 68 20 74 68 65 | 20 76 65 72 73 69 6f 6e |with the| version|
|00000be0| 0a 58 6f 66 20 42 49 4e | 44 20 74 68 61 74 20 79 |.Xof BIN|D that y|
|00000bf0| 6f 75 20 68 61 70 70 65 | 6e 20 74 6f 20 68 61 76 |ou happe|n to hav|
|00000c00| 65 20 69 6e 73 74 61 6c | 6c 65 64 2e 20 20 54 68 |e instal|led. Th|
|00000c10| 65 20 61 77 6b 20 73 63 | 72 69 70 74 20 69 6e 63 |e awk sc|ript inc|
|00000c20| 6c 75 64 65 64 0a 58 77 | 6f 72 6b 73 20 77 69 74 |luded.Xw|orks wit|
|00000c30| 68 20 6e 73 6c 6f 6f 6b | 75 70 20 66 72 6f 6d 20 |h nslook|up from |
|00000c40| 42 49 4e 44 20 76 65 72 | 73 69 6f 6e 20 34 2e 38 |BIND ver|sion 4.8|
|00000c50| 2e 33 20 61 6e 64 20 66 | 72 6f 6d 20 53 75 6e 4f |.3 and f|rom SunO|
|00000c60| 53 20 34 2e 31 2e 33 2e | 0a 58 59 6f 75 20 63 61 |S 4.1.3.|.XYou ca|
|00000c70| 6e 20 6d 6f 64 69 66 79 | 20 69 74 20 61 73 20 6e |n modify| it as n|
|00000c80| 65 65 64 65 64 2e 0a 58 | 0a 58 49 4e 53 54 41 4c |eeded..X|.XINSTAL|
|00000c90| 4c 41 54 49 4f 4e 3a 0a | 58 0a 58 31 2e 20 20 45 |LATION:.|X.X1. E|
|00000ca0| 64 69 74 20 74 68 65 20 | 4d 61 6b 65 66 69 6c 65 |dit the |Makefile|
|00000cb0| 20 74 6f 20 6d 61 6b 65 | 20 61 6e 79 20 6d 6f 64 | to make| any mod|
|00000cc0| 69 66 69 63 61 74 69 6f | 6e 73 20 66 6f 72 20 79 |ificatio|ns for y|
|00000cd0| 6f 75 72 20 6c 6f 63 61 | 6c 20 73 69 74 65 2e 0a |our loca|l site..|
|00000ce0| 58 32 2e 20 20 54 79 70 | 65 20 22 6d 61 6b 65 22 |X2. Typ|e "make"|
|00000cf0| 20 74 6f 20 62 75 69 6c | 64 20 74 68 65 20 73 68 | to buil|d the sh|
|00000d00| 65 6c 6c 20 73 63 72 69 | 70 74 20 63 61 63 68 65 |ell scri|pt cache|
|00000d10| 62 75 69 6c 64 2e 0a 58 | 33 2e 20 20 54 79 70 65 |build..X|3. Type|
|00000d20| 20 22 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 22 20 | "make i|nstall" |
|00000d30| 74 6f 20 69 6e 73 74 61 | 6c 6c 20 74 68 65 20 70 |to insta|ll the p|
|00000d40| 72 6f 67 72 61 6d 20 61 | 6e 64 20 61 77 6b 20 73 |rogram a|nd awk s|
|00000d50| 63 72 69 70 74 2e 0a 58 | 34 2e 20 20 4d 6f 76 65 |cript..X|4. Move|
|00000d60| 20 69 6e 74 6f 20 61 20 | 73 61 66 65 20 70 6c 61 | into a |safe pla|
|00000d70| 63 65 20 28 63 64 20 2f | 74 6d 70 29 20 61 6e 64 |ce (cd /|tmp) and|
|00000d80| 20 74 72 79 20 72 75 6e | 6e 69 6e 67 20 63 61 63 | try run|ning cac|
|00000d90| 68 65 62 75 69 6c 64 2e | 0a 58 20 20 20 20 49 66 |hebuild.|.X If|
|00000da0| 20 79 6f 75 20 75 73 65 | 20 74 68 65 20 43 2d 73 | you use| the C-s|
|00000db0| 68 65 6c 6c 2c 20 79 6f | 75 20 6d 61 79 20 6e 65 |hell, yo|u may ne|
|00000dc0| 65 64 20 74 6f 20 74 79 | 70 65 20 22 72 65 68 61 |ed to ty|pe "reha|
|00000dd0| 73 68 22 20 66 69 72 73 | 74 2e 0a 58 20 20 20 20 |sh" firs|t..X |
|00000de0| 43 61 63 68 65 62 75 69 | 6c 64 20 73 68 6f 75 6c |Cachebui|ld shoul|
|00000df0| 64 20 63 72 65 61 74 65 | 20 74 68 65 20 66 69 6c |d create| the fil|
|00000e00| 65 20 72 6f 6f 74 2e 63 | 61 63 68 65 20 69 6e 20 |e root.c|ache in |
|00000e10| 79 6f 75 72 20 63 75 72 | 72 65 6e 74 0a 58 20 20 |your cur|rent.X |
|00000e20| 20 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 45 78 | direct|ory. Ex|
|00000e30| 61 6d 69 6e 65 20 69 74 | 2e 0a 58 35 2e 20 20 49 |amine it|..X5. I|
|00000e40| 66 20 61 6c 6c 20 69 73 | 20 4f 4b 2c 20 79 6f 75 |f all is| OK, you|
|00000e50| 20 63 61 6e 20 73 61 66 | 65 6c 79 20 72 75 6e 20 | can saf|ely run |
|00000e60| 69 74 20 69 6e 20 79 6f | 75 72 20 6e 61 6d 65 2d |it in yo|ur name-|
|00000e70| 73 65 72 76 65 72 20 64 | 69 72 65 63 74 6f 72 79 |server d|irectory|
|00000e80| 0a 58 20 20 20 20 6f 72 | 20 6a 75 73 74 20 63 6f |.X or| just co|
|00000e90| 70 79 20 74 68 65 20 6e | 65 77 20 72 6f 6f 74 2e |py the n|ew root.|
|00000ea0| 63 61 63 68 65 20 6f 76 | 65 72 20 74 68 65 72 65 |cache ov|er there|
|00000eb0| 2e 0a 58 20 20 20 20 49 | 66 20 6e 6f 74 2c 20 66 |..X I|f not, f|
|00000ec0| 69 78 20 69 74 2c 20 22 | 6d 61 6b 65 20 63 6c 65 |ix it, "|make cle|
|00000ed0| 61 6e 22 20 61 6e 64 20 | 74 72 79 20 61 67 61 69 |an" and |try agai|
|00000ee0| 6e 2e 0a 58 0a 58 45 52 | 52 4f 52 20 4d 45 53 53 |n..X.XER|ROR MESS|
|00000ef0| 41 47 45 53 3a 0a 58 0a | 58 49 66 20 69 74 20 73 |AGES:.X.|XIf it s|
|00000f00| 75 63 63 65 65 64 73 2c | 20 63 61 63 68 65 62 75 |ucceeds,| cachebu|
|00000f10| 69 6c 64 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 |ild will| return |
|00000f20| 74 68 65 20 75 73 75 61 | 6c 20 65 78 69 74 20 73 |the usua|l exit s|
|00000f30| 74 61 74 75 73 20 6f 66 | 20 30 2e 0a 58 54 68 65 |tatus of| 0..XThe|
|00000f40| 20 6f 6e 6c 79 20 65 72 | 72 6f 72 20 6d 65 73 73 | only er|ror mess|
|00000f50| 61 67 65 20 63 61 63 68 | 65 62 75 69 6c 64 20 67 |age cach|ebuild g|
|00000f60| 65 6e 65 72 61 74 65 73 | 20 69 73 3a 0a 58 0a 58 |enerates| is:.X.X|
|00000f70| 09 09 43 61 6c 6c 20 74 | 6f 20 6e 73 6c 6f 6f 6b |..Call t|o nslook|
|00000f80| 75 70 20 66 61 69 6c 65 | 64 2e 0a 58 0a 58 77 68 |up faile|d..X.Xwh|
|00000f90| 69 63 68 20 6d 65 61 6e | 73 20 74 68 61 74 20 6e |ich mean|s that n|
|00000fa0| 73 6c 6f 6f 6b 75 70 20 | 65 78 69 74 65 64 20 77 |slookup |exited w|
|00000fb0| 69 74 68 20 61 20 6e 6f | 6e 2d 7a 65 72 6f 20 73 |ith a no|n-zero s|
|00000fc0| 74 61 74 75 73 20 76 61 | 6c 75 65 0a 58 28 69 6e |tatus va|lue.X(in|
|00000fd0| 64 69 63 61 74 69 6e 67 | 20 61 6e 20 65 72 72 6f |dicating| an erro|
|00000fe0| 72 20 6f 66 20 73 6f 6d | 65 20 73 6f 72 74 29 2e |r of som|e sort).|
|00000ff0| 20 20 45 72 72 6f 72 20 | 6d 65 73 73 61 67 65 73 | Error |messages|
|00001000| 20 66 72 6f 6d 20 6e 73 | 6c 6f 6f 6b 75 70 0a 58 | from ns|lookup.X|
|00001010| 74 68 61 74 20 61 72 65 | 20 73 65 6e 74 20 74 6f |that are| sent to|
|00001020| 20 73 74 64 65 72 72 20 | 77 69 6c 6c 20 63 6f 6d | stderr |will com|
|00001030| 65 20 6f 75 74 20 6f 6e | 20 73 74 64 65 72 72 20 |e out on| stderr |
|00001040| 66 72 6f 6d 20 63 61 63 | 68 65 62 75 69 6c 64 2c |from cac|hebuild,|
|00001050| 20 74 6f 6f 2e 0a 58 0a | 58 43 4f 4d 50 4c 41 49 | too..X.|XCOMPLAI|
|00001060| 4e 54 53 20 44 45 50 54 | 3a 0a 58 0a 58 59 65 61 |NTS DEPT|:.X.XYea|
|00001070| 2c 20 49 20 6b 6e 6f 77 | 2c 20 49 20 73 68 6f 75 |, I know|, I shou|
|00001080| 6c 64 20 72 65 77 72 69 | 74 65 20 69 74 20 69 6e |ld rewri|te it in|
|00001090| 20 70 65 72 6c 2e 20 20 | 45 4e 4f 54 49 4d 45 2e | perl. |ENOTIME.|
|000010a0| 0a 58 0a 58 2d 2d 0a 58 | 50 61 75 6c 20 42 61 6c |.X.X--.X|Paul Bal|
|000010b0| 79 6f 7a 2c 20 53 65 6e | 69 6f 72 20 53 79 73 74 |yoz, Sen|ior Syst|
|000010c0| 65 6d 73 20 50 72 6f 67 | 72 61 6d 6d 65 72 20 20 |ems Prog|rammer |
|000010d0| 70 61 62 40 72 61 69 6e | 62 6f 77 2e 63 73 65 2e |pab@rain|bow.cse.|
|000010e0| 6e 61 75 2e 65 64 75 0a | 58 4e 6f 72 74 68 65 72 |nau.edu.|XNorther|
|000010f0| 6e 20 41 72 69 7a 6f 6e | 61 20 55 6e 69 76 65 72 |n Arizon|a Univer|
|00001100| 73 69 74 79 20 20 20 20 | 20 20 20 20 20 20 20 20 |sity | |
|00001110| 20 72 6f 6f 74 40 6e 61 | 75 63 73 65 2e 63 73 65 | root@na|ucse.cse|
|00001120| 2e 6e 61 75 2e 65 64 75 | 0a 58 50 4f 20 42 6f 78 |.nau.edu|.XPO Box|
|00001130| 20 31 35 36 30 30 2c 20 | 46 6c 61 67 73 74 61 66 | 15600, |Flagstaf|
|00001140| 66 20 41 5a 20 38 36 30 | 31 31 20 20 20 20 20 20 |f AZ 860|11 |
|00001150| 20 20 7b 70 61 62 2c 72 | 6f 6f 74 7d 40 73 75 6e | {pab,r|oot}@sun|
|00001160| 73 65 74 2e 63 73 65 2e | 6e 61 75 2e 65 64 75 0a |set.cse.|nau.edu.|
|00001170| 58 4e 49 43 6e 61 6d 65 | 3a 20 50 42 31 20 20 20 |XNICname|: PB1 |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 20 20 20 20 20 20 | 20 2e 2e 2e 61 72 69 7a | | ...ariz|
|000011a0| 6f 6e 61 21 6e 61 75 63 | 73 65 21 72 6f 6f 74 0a |ona!nauc|se!root.|
|000011b0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000011c0| 65 73 74 20 32 39 36 33 | 20 2d 6e 65 20 60 77 63 |est 2963| -ne `wc|
|000011d0| 20 2d 63 20 3c 27 52 45 | 41 44 4d 45 27 60 3b 20 | -c <'RE|ADME'`; |
|000011e0| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|000011f0| 61 72 3a 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ar: \"'R|EADME'\"|
|00001200| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00001210| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00001220| 65 6e 64 20 6f 66 20 27 | 52 45 41 44 4d 45 27 0a |end of '|README'.|
|00001230| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 4d |fi.if te|st -f 'M|
|00001240| 61 6b 65 66 69 6c 65 27 | 20 2d 61 20 22 24 7b 31 |akefile'| -a "${1|
|00001250| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00001260| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00001270| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00001280| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00001290| 22 27 4d 61 6b 65 66 69 | 6c 65 27 5c 22 0a 65 6c |"'Makefi|le'\".el|
|000012a0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000012b0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 4d 61 6b 65 |tracting| \"'Make|
|000012c0| 66 69 6c 65 27 5c 22 20 | 5c 28 37 31 33 20 63 68 |file'\" |\(713 ch|
|000012d0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|000012e0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 4d 61 6b 65 66 69 |s/^X//" |>'Makefi|
|000012f0| 6c 65 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |le' <<'E|ND_OF_FI|
|00001300| 4c 45 27 0a 58 23 0a 58 | 23 20 4d 61 6b 65 66 69 |LE'.X#.X|# Makefi|
|00001310| 6c 65 20 66 6f 72 20 74 | 68 65 20 43 41 43 48 45 |le for t|he CACHE|
|00001320| 20 42 55 49 4c 44 20 70 | 61 63 6b 61 67 65 2e 0a | BUILD p|ackage..|
|00001330| 58 23 0a 58 0a 58 23 20 | 77 68 65 72 65 20 74 6f |X#.X.X# |where to|
|00001340| 20 70 75 74 20 74 68 65 | 20 6d 61 69 6e 20 65 78 | put the| main ex|
|00001350| 65 63 75 74 61 62 6c 65 | 20 73 68 65 6c 6c 20 73 |ecutable| shell s|
|00001360| 63 72 69 70 74 0a 58 42 | 49 4e 3d 2f 75 73 72 2f |cript.XB|IN=/usr/|
|00001370| 63 6f 6d 2f 62 69 6e 0a | 58 0a 58 23 20 77 68 65 |com/bin.|X.X# whe|
|00001380| 72 65 20 74 6f 20 70 75 | 74 20 74 68 65 20 61 77 |re to pu|t the aw|
|00001390| 6b 20 73 63 72 69 70 74 | 20 20 28 6e 6f 74 65 3a |k script| (note:|
|000013a0| 20 63 68 61 6e 67 65 20 | 74 68 69 73 20 69 6e 20 | change |this in |
|000013b0| 63 61 63 68 65 62 75 69 | 6c 64 2c 20 74 6f 6f 21 |cachebui|ld, too!|
|000013c0| 29 0a 58 4c 49 42 3d 2f | 75 73 72 2f 63 6f 6d 2f |).XLIB=/|usr/com/|
|000013d0| 6c 69 62 0a 58 0a 58 23 | 20 6e 61 6d 65 20 6f 66 |lib.X.X#| name of|
|000013e0| 20 72 6f 6f 74 2e 63 61 | 63 68 65 20 74 79 70 65 | root.ca|che type|
|000013f0| 20 6f 75 74 70 75 74 20 | 66 69 6c 65 0a 58 43 41 | output |file.XCA|
|00001400| 43 48 45 46 49 4c 45 3d | 72 6f 6f 74 2e 63 61 63 |CHEFILE=|root.cac|
|00001410| 68 65 0a 58 0a 58 23 20 | 4e 6f 74 65 3a 20 66 69 |he.X.X# |Note: fi|
|00001420| 78 20 50 41 54 48 20 76 | 61 72 69 61 62 6c 65 20 |x PATH v|ariable |
|00001430| 69 6e 20 63 61 63 68 65 | 62 75 69 6c 64 2e 53 48 |in cache|build.SH|
|00001440| 20 73 63 72 69 70 74 20 | 62 65 66 6f 72 65 20 62 | script |before b|
|00001450| 75 69 6c 64 69 6e 67 2e | 0a 58 0a 58 0a 58 61 6c |uilding.|.X.X.Xal|
|00001460| 6c 3a 09 63 61 63 68 65 | 62 75 69 6c 64 0a 58 0a |l:.cache|build.X.|
|00001470| 58 63 61 63 68 65 62 75 | 69 6c 64 3a 09 63 61 63 |Xcachebu|ild:.cac|
|00001480| 68 65 62 75 69 6c 64 2e | 53 48 0a 58 09 65 63 68 |hebuild.|SH.X.ech|
|00001490| 6f 20 22 73 2c 43 42 41 | 57 4b 50 41 54 48 2c 24 |o "s,CBA|WKPATH,$|
|000014a0| 28 4c 49 42 29 2f 63 61 | 63 68 65 62 75 69 6c 64 |(LIB)/ca|chebuild|
|000014b0| 2e 61 77 6b 2c 67 22 20 | 3e 20 66 69 78 2e 73 65 |.awk,g" |> fix.se|
|000014c0| 64 0a 58 09 65 63 68 6f | 20 22 73 2c 43 41 43 48 |d.X.echo| "s,CACH|
|000014d0| 45 46 49 4c 45 2c 24 28 | 43 41 43 48 45 46 49 4c |EFILE,$(|CACHEFIL|
|000014e0| 45 29 2c 67 22 20 3e 3e | 20 66 69 78 2e 73 65 64 |E),g" >>| fix.sed|
|000014f0| 0a 58 09 73 65 64 20 2d | 66 20 66 69 78 2e 73 65 |.X.sed -|f fix.se|
|00001500| 64 20 3c 20 63 61 63 68 | 65 62 75 69 6c 64 2e 53 |d < cach|ebuild.S|
|00001510| 48 20 3e 20 63 61 63 68 | 65 62 75 69 6c 64 0a 58 |H > cach|ebuild.X|
|00001520| 09 72 6d 20 2d 66 20 66 | 69 78 2e 73 65 64 0a 58 |.rm -f f|ix.sed.X|
|00001530| 09 63 68 6d 6f 64 20 37 | 35 35 20 63 61 63 68 65 |.chmod 7|55 cache|
|00001540| 62 75 69 6c 64 0a 58 0a | 58 69 6e 73 74 61 6c 6c |build.X.|Xinstall|
|00001550| 3a 09 61 6c 6c 0a 58 09 | 69 6e 73 74 61 6c 6c 20 |:.all.X.|install |
|00001560| 2d 63 20 2d 6d 20 37 35 | 35 20 2d 6f 20 62 69 6e |-c -m 75|5 -o bin|
|00001570| 20 2d 67 20 62 69 6e 20 | 63 61 63 68 65 62 75 69 | -g bin |cachebui|
|00001580| 6c 64 20 24 28 42 49 4e | 29 0a 58 09 69 6e 73 74 |ld $(BIN|).X.inst|
|00001590| 61 6c 6c 20 2d 63 20 2d | 6d 20 36 34 34 20 2d 6f |all -c -|m 644 -o|
|000015a0| 20 62 69 6e 20 2d 67 20 | 62 69 6e 20 63 61 63 68 | bin -g |bin cach|
|000015b0| 65 62 75 69 6c 64 2e 61 | 77 6b 20 24 28 4c 49 42 |ebuild.a|wk $(LIB|
|000015c0| 29 0a 58 0a 58 63 6c 65 | 61 6e 3a 0a 58 09 2d 72 |).X.Xcle|an:.X.-r|
|000015d0| 6d 20 2d 66 20 63 61 63 | 68 65 62 75 69 6c 64 20 |m -f cac|hebuild |
|000015e0| 72 6f 6f 74 2e 63 61 63 | 68 65 2a 0a 45 4e 44 5f |root.cac|he*.END_|
|000015f0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00001600| 37 31 33 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |713 -ne |`wc -c <|
|00001610| 27 4d 61 6b 65 66 69 6c | 65 27 60 3b 20 74 68 65 |'Makefil|e'`; the|
|00001620| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00001630| 20 5c 22 27 4d 61 6b 65 | 66 69 6c 65 27 5c 22 20 | \"'Make|file'\" |
|00001640| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00001650| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00001660| 6e 64 20 6f 66 20 27 4d | 61 6b 65 66 69 6c 65 27 |nd of 'M|akefile'|
|00001670| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001680| 63 61 63 68 65 62 75 69 | 6c 64 2e 53 48 27 20 2d |cachebui|ld.SH' -|
|00001690| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000016a0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000016b0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000016c0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000016d0| 66 69 6c 65 20 5c 22 27 | 63 61 63 68 65 62 75 69 |file \"'|cachebui|
|000016e0| 6c 64 2e 53 48 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |ld.SH'\"|.else.ec|
|000016f0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00001700| 69 6e 67 20 5c 22 27 63 | 61 63 68 65 62 75 69 6c |ing \"'c|achebuil|
|00001710| 64 2e 53 48 27 5c 22 20 | 5c 28 39 31 33 20 63 68 |d.SH'\" |\(913 ch|
|00001720| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00001730| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 61 63 68 65 62 |s/^X//" |>'cacheb|
|00001740| 75 69 6c 64 2e 53 48 27 | 20 3c 3c 27 45 4e 44 5f |uild.SH'| <<'END_|
|00001750| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 21 2f 62 69 6e |OF_FILE'|.X#!/bin|
|00001760| 2f 73 68 0a 58 23 09 09 | 52 4f 4f 54 20 43 41 43 |/sh.X#..|ROOT CAC|
|00001770| 48 45 20 50 52 4f 47 52 | 41 4d 0a 58 23 09 42 79 |HE PROGR|AM.X#.By|
|00001780| 20 50 61 75 6c 20 42 61 | 6c 79 6f 7a 20 3c 70 61 | Paul Ba|lyoz <pa|
|00001790| 62 40 72 61 69 6e 62 6f | 77 2e 63 73 65 2e 6e 61 |b@rainbo|w.cse.na|
|000017a0| 75 2e 65 64 75 3e 20 20 | 30 33 2f 31 35 2f 39 31 |u.edu> |03/15/91|
|000017b0| 0a 58 23 0a 58 0a 58 23 | 20 4e 61 6d 65 20 6f 66 |.X#.X.X#| Name of|
|000017c0| 20 66 69 6c 65 20 74 6f | 20 77 72 69 74 65 20 74 | file to| write t|
|000017d0| 68 65 20 6e 65 77 20 72 | 6f 6f 74 20 63 61 63 68 |he new r|oot cach|
|000017e0| 65 20 69 6e 74 6f 0a 58 | 4f 55 54 3d 22 43 41 43 |e into.X|OUT="CAC|
|000017f0| 48 45 46 49 4c 45 22 0a | 58 0a 58 23 20 46 72 6f |HEFILE".|X.X# Fro|
|00001800| 6e 74 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 6e |nt part |of the n|
|00001810| 61 6d 65 20 6f 66 20 74 | 68 65 20 61 77 6b 20 73 |ame of t|he awk s|
|00001820| 63 72 69 70 74 20 77 65 | 20 6e 65 65 64 20 74 6f |cript we| need to|
|00001830| 20 72 75 6e 0a 58 41 57 | 4b 53 43 52 3d 22 43 42 | run.XAW|KSCR="CB|
|00001840| 41 57 4b 50 41 54 48 22 | 0a 58 0a 58 23 20 54 68 |AWKPATH"|.X.X# Th|
|00001850| 69 73 20 6d 75 73 74 20 | 69 6e 63 6c 75 64 65 20 |is must |include |
|00001860| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 77 68 |the dire|ctory wh|
|00001870| 65 72 65 20 22 6e 73 6c | 6f 6f 6b 75 70 22 20 6c |ere "nsl|ookup" l|
|00001880| 69 76 65 73 0a 58 50 41 | 54 48 3d 2f 75 73 72 2f |ives.XPA|TH=/usr/|
|00001890| 75 63 62 3a 2f 62 69 6e | 3a 2f 75 73 72 2f 62 69 |ucb:/bin|:/usr/bi|
|000018a0| 6e 3a 2f 75 73 72 2f 65 | 74 63 3a 2f 75 73 72 2f |n:/usr/e|tc:/usr/|
|000018b0| 6c 6f 63 61 6c 2f 62 69 | 6e 3a 2f 75 73 72 2f 63 |local/bi|n:/usr/c|
|000018c0| 6f 6d 2f 62 69 6e 0a 58 | 65 78 70 6f 72 74 20 50 |om/bin.X|export P|
|000018d0| 41 54 48 0a 58 0a 58 23 | 20 2d 2d 2d 2d 2d 2d 2d |ATH.X.X#| -------|
|000018e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000018f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001920| 2d 2d 2d 0a 58 0a 58 72 | 6d 20 2d 66 20 24 4f 55 |---.X.Xr|m -f $OU|
|00001930| 54 2e 6f 6c 64 65 72 0a | 58 69 66 20 74 65 73 74 |T.older.|Xif test|
|00001940| 20 2d 66 20 24 4f 55 54 | 2e 6f 6c 64 3b 20 74 68 | -f $OUT|.old; th|
|00001950| 65 6e 0a 58 09 6d 76 20 | 24 4f 55 54 2e 6f 6c 64 |en.X.mv |$OUT.old|
|00001960| 20 24 4f 55 54 2e 6f 6c | 64 65 72 0a 58 66 69 0a | $OUT.ol|der.Xfi.|
|00001970| 58 69 66 20 74 65 73 74 | 20 2d 66 20 24 4f 55 54 |Xif test| -f $OUT|
|00001980| 3b 20 74 68 65 6e 0a 58 | 09 6d 76 20 24 4f 55 54 |; then.X|.mv $OUT|
|00001990| 20 24 4f 55 54 2e 6f 6c | 64 0a 58 66 69 0a 58 0a | $OUT.ol|d.Xfi.X.|
|000019a0| 58 65 63 68 6f 20 22 3b | 22 20 3e 20 24 4f 55 54 |Xecho ";|" > $OUT|
|000019b0| 0a 58 65 63 68 6f 20 22 | 3b 20 72 6f 6f 74 2e 63 |.Xecho "|; root.c|
|000019c0| 61 63 68 65 20 62 75 69 | 6c 74 20 62 79 20 24 55 |ache bui|lt by $U|
|000019d0| 53 45 52 40 60 68 6f 73 | 74 6e 61 6d 65 60 20 6f |SER@`hos|tname` o|
|000019e0| 6e 20 60 64 61 74 65 60 | 22 20 3e 3e 20 24 4f 55 |n `date`|" >> $OU|
|000019f0| 54 0a 58 65 63 68 6f 20 | 22 3b 20 41 75 74 6f 6d |T.Xecho |"; Autom|
|00001a00| 61 74 69 63 61 6c 6c 79 | 20 62 75 69 6c 74 20 62 |atically| built b|
|00001a10| 79 20 63 61 63 68 65 62 | 75 69 6c 64 2c 20 61 6e |y cacheb|uild, an|
|00001a20| 79 20 63 68 61 6e 67 65 | 73 20 79 6f 75 20 6d 61 |y change|s you ma|
|00001a30| 6b 65 20 6d 61 79 20 67 | 6f 20 61 77 61 79 2e 22 |ke may g|o away."|
|00001a40| 20 3e 3e 20 24 4f 55 54 | 0a 58 65 63 68 6f 20 22 | >> $OUT|.Xecho "|
|00001a50| 3b 22 20 3e 3e 20 24 4f | 55 54 0a 58 65 63 68 6f |;" >> $O|UT.Xecho|
|00001a60| 20 22 22 20 3e 3e 20 24 | 4f 55 54 0a 58 0a 58 6e | "" >> $|OUT.X.Xn|
|00001a70| 73 6c 6f 6f 6b 75 70 20 | 3c 3c 20 45 4f 46 20 7c |slookup |<< EOF ||
|00001a80| 20 61 77 6b 20 2d 66 20 | 24 41 57 4b 53 43 52 20 | awk -f |$AWKSCR |
|00001a90| 3e 3e 20 24 4f 55 54 0a | 58 73 65 74 20 74 79 70 |>> $OUT.|Xset typ|
|00001aa0| 65 3d 4e 53 0a 58 72 6f | 6f 74 0a 58 2e 0a 58 45 |e=NS.Xro|ot.X..XE|
|00001ab0| 4f 46 0a 58 0a 58 65 72 | 72 3d 24 3f 0a 58 69 66 |OF.X.Xer|r=$?.Xif|
|00001ac0| 20 74 65 73 74 20 24 65 | 72 72 20 2d 6e 65 20 30 | test $e|rr -ne 0|
|00001ad0| 3b 20 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 22 43 |; then.X|.echo "C|
|00001ae0| 61 6c 6c 20 74 6f 20 6e | 73 6c 6f 6f 6b 75 70 20 |all to n|slookup |
|00001af0| 66 61 69 6c 65 64 2e 22 | 0a 58 09 72 6d 20 2d 66 |failed."|.X.rm -f|
|00001b00| 20 24 4f 55 54 0a 58 66 | 69 0a 58 65 78 69 74 20 | $OUT.Xf|i.Xexit |
|00001b10| 24 65 72 72 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |$err.END|_OF_FILE|
|00001b20| 0a 69 66 20 74 65 73 74 | 20 39 31 33 20 2d 6e 65 |.if test| 913 -ne|
|00001b30| 20 60 77 63 20 2d 63 20 | 3c 27 63 61 63 68 65 62 | `wc -c |<'cacheb|
|00001b40| 75 69 6c 64 2e 53 48 27 | 60 3b 20 74 68 65 6e 0a |uild.SH'|`; then.|
|00001b50| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001b60| 22 27 63 61 63 68 65 62 | 75 69 6c 64 2e 53 48 27 |"'cacheb|uild.SH'|
|00001b70| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00001b80| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00001b90| 63 68 6d 6f 64 20 2b 78 | 20 27 63 61 63 68 65 62 |chmod +x| 'cacheb|
|00001ba0| 75 69 6c 64 2e 53 48 27 | 0a 23 20 65 6e 64 20 6f |uild.SH'|.# end o|
|00001bb0| 66 20 27 63 61 63 68 65 | 62 75 69 6c 64 2e 53 48 |f 'cache|build.SH|
|00001bc0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00001bd0| 27 63 61 63 68 65 62 75 | 69 6c 64 2e 61 77 6b 27 |'cachebu|ild.awk'|
|00001be0| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00001bf0| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00001c00| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00001c10| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00001c20| 67 20 66 69 6c 65 20 5c | 22 27 63 61 63 68 65 62 |g file \|"'cacheb|
|00001c30| 75 69 6c 64 2e 61 77 6b | 27 5c 22 0a 65 6c 73 65 |uild.awk|'\".else|
|00001c40| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00001c50| 61 63 74 69 6e 67 20 5c | 22 27 63 61 63 68 65 62 |acting \|"'cacheb|
|00001c60| 75 69 6c 64 2e 61 77 6b | 27 5c 22 20 5c 28 31 33 |uild.awk|'\" \(13|
|00001c70| 32 38 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |28 chara|cters\).|
|00001c80| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 63 |sed "s/^|X//" >'c|
|00001c90| 61 63 68 65 62 75 69 6c | 64 2e 61 77 6b 27 20 3c |achebuil|d.awk' <|
|00001ca0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00001cb0| 23 0a 58 23 20 63 61 63 | 68 65 62 75 69 6c 64 2e |#.X# cac|hebuild.|
|00001cc0| 61 77 6b 0a 58 23 20 41 | 77 6b 20 73 63 72 69 70 |awk.X# A|wk scrip|
|00001cd0| 74 20 66 6f 72 20 63 61 | 63 68 65 62 75 69 6c 64 |t for ca|chebuild|
|00001ce0| 2c 20 61 6c 72 65 61 64 | 79 20 64 65 73 69 67 6e |, alread|y design|
|00001cf0| 65 64 20 74 6f 20 70 61 | 72 73 65 3a 0a 58 23 09 |ed to pa|rse:.X#.|
|00001d00| 6e 73 6c 6f 6f 6b 75 70 | 20 6f 75 74 70 75 74 20 |nslookup| output |
|00001d10| 66 72 6f 6d 20 70 75 72 | 65 20 42 49 4e 44 20 34 |from pur|e BIND 4|
|00001d20| 2e 38 2e 33 2c 0a 58 23 | 09 6e 73 6c 6f 6f 6b 75 |.8.3,.X#|.nslooku|
|00001d30| 70 20 74 68 61 74 20 63 | 6f 6d 65 73 20 77 69 74 |p that c|omes wit|
|00001d40| 68 20 53 75 6e 4f 53 20 | 34 2e 31 2e 33 2e 0a 58 |h SunOS |4.1.3..X|
|00001d50| 23 0a 58 0a 58 23 20 50 | 72 6f 63 65 73 73 20 4e |#.X.X# P|rocess N|
|00001d60| 53 20 52 52 73 2e 20 20 | 54 68 65 73 65 20 67 69 |S RRs. |These gi|
|00001d70| 76 65 20 74 68 65 20 6e | 61 6d 65 73 20 6f 66 20 |ve the n|ames of |
|00001d80| 74 68 65 20 72 6f 6f 74 | 20 64 6f 6d 61 69 6e 20 |the root| domain |
|00001d90| 73 65 72 76 65 72 73 2e | 0a 58 0a 58 24 32 3d 3d |servers.|.X.X$2==|
|00001da0| 22 6e 61 6d 65 73 65 72 | 76 65 72 22 20 26 26 20 |"nameser|ver" && |
|00001db0| 24 33 3d 3d 22 3d 22 20 | 7b 0a 58 09 72 6f 6f 74 |$3=="=" |{.X.root|
|00001dc0| 68 6f 73 74 5b 24 34 5d | 20 3d 20 31 3b 0a 58 7d |host[$4]| = 1;.X}|
|00001dd0| 0a 58 0a 58 23 20 50 72 | 6f 63 65 73 73 20 41 20 |.X.X# Pr|ocess A |
|00001de0| 52 52 73 2e 20 20 54 68 | 65 73 65 20 6d 61 70 20 |RRs. Th|ese map |
|00001df0| 64 6f 6d 61 69 6e 20 73 | 65 72 76 65 72 20 6e 61 |domain s|erver na|
|00001e00| 6d 65 73 20 74 6f 20 61 | 64 64 72 65 73 73 65 73 |mes to a|ddresses|
|00001e10| 2e 0a 58 23 20 41 63 63 | 75 6d 75 6c 61 74 65 20 |..X# Acc|umulate |
|00001e20| 74 68 65 73 65 20 69 6e | 74 6f 20 61 20 73 70 61 |these in|to a spa|
|00001e30| 63 65 2d 64 65 6c 69 6d | 69 74 65 64 20 73 74 72 |ce-delim|ited str|
|00001e40| 69 6e 67 3b 20 77 65 20 | 77 69 6c 6c 20 62 72 65 |ing; we |will bre|
|00001e50| 61 6b 20 74 68 65 6d 20 | 61 70 61 72 74 20 6c 61 |ak them |apart la|
|00001e60| 74 65 72 2e 0a 58 23 20 | 4e 6f 74 65 20 74 68 61 |ter..X# |Note tha|
|00001e70| 74 20 74 68 65 72 65 20 | 6d 61 79 20 62 65 20 6d |t there |may be m|
|00001e80| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 41 20 52 |ore than| one A R|
|00001e90| 52 20 70 65 72 20 72 6f | 6f 74 20 73 65 72 76 65 |R per ro|ot serve|
|00001ea0| 72 2e 0a 58 0a 58 28 24 | 32 3d 3d 22 69 6e 65 74 |r..X.X($|2=="inet|
|00001eb0| 22 20 7c 7c 20 24 32 3d | 3d 22 69 6e 74 65 72 6e |" || $2=|="intern|
|00001ec0| 65 74 22 29 20 26 26 20 | 24 33 3d 3d 22 61 64 64 |et") && |$3=="add|
|00001ed0| 72 65 73 73 22 20 26 26 | 20 24 34 3d 3d 22 3d 22 |ress" &&| $4=="="|
|00001ee0| 20 7b 0a 58 09 69 66 20 | 28 72 6f 6f 74 68 6f 73 | {.X.if |(roothos|
|00001ef0| 74 5b 24 31 5d 20 3d 3d | 20 31 29 0a 58 09 09 68 |t[$1] ==| 1).X..h|
|00001f00| 6f 73 74 61 64 64 72 5b | 24 31 5d 20 3d 20 68 6f |ostaddr[|$1] = ho|
|00001f10| 73 74 61 64 64 72 5b 24 | 31 5d 20 22 20 22 20 24 |staddr[$|1] " " $|
|00001f20| 35 3b 0a 58 7d 0a 58 0a | 58 23 20 4e 6f 77 20 74 |5;.X}.X.|X# Now t|
|00001f30| 68 61 74 20 77 65 20 70 | 61 72 73 65 64 20 61 6c |hat we p|arsed al|
|00001f40| 6c 20 74 68 65 20 72 65 | 63 6f 72 64 73 2c 20 6c |l the re|cords, l|
|00001f50| 65 74 27 73 20 70 72 69 | 6e 74 20 74 68 65 20 72 |et's pri|nt the r|
|00001f60| 65 73 74 20 6f 66 20 74 | 68 65 20 72 6f 6f 74 20 |est of t|he root |
|00001f70| 63 61 63 68 65 2e 0a 58 | 23 20 57 65 20 62 72 65 |cache..X|# We bre|
|00001f80| 61 6b 20 74 68 65 20 6d | 75 6c 74 69 70 6c 65 20 |ak the m|ultiple |
|00001f90| 61 64 64 72 65 73 73 20 | 73 74 72 69 6e 67 73 20 |address |strings |
|00001fa0| 61 70 61 72 74 20 77 69 | 74 68 20 74 68 65 20 22 |apart wi|th the "|
|00001fb0| 73 70 6c 69 74 22 20 66 | 75 6e 63 74 69 6f 6e 2e |split" f|unction.|
|00001fc0| 0a 58 0a 58 45 4e 44 20 | 7b 0a 58 09 70 72 69 6e |.X.XEND |{.X.prin|
|00001fd0| 74 20 22 3b 22 0a 58 09 | 70 72 69 6e 74 20 22 3b |t ";".X.|print ";|
|00001fe0| 20 49 6e 69 74 69 61 6c | 20 63 61 63 68 65 20 64 | Initial| cache d|
|00001ff0| 61 74 61 20 66 6f 72 20 | 72 6f 6f 74 20 64 6f 6d |ata for |root dom|
|00002000| 61 69 6e 20 73 65 72 76 | 65 72 73 2e 22 0a 58 09 |ain serv|ers.".X.|
|00002010| 70 72 69 6e 74 20 22 3b | 22 0a 58 09 70 72 69 6e |print ";|".X.prin|
|00002020| 74 20 22 22 0a 58 09 70 | 72 69 6e 74 66 20 28 22 |t "".X.p|rintf ("|
|00002030| 2e 22 29 3b 0a 58 09 66 | 6f 72 20 28 69 20 69 6e |.");.X.f|or (i in|
|00002040| 20 72 6f 6f 74 68 6f 73 | 74 29 20 7b 0a 58 09 09 | roothos|t) {.X..|
|00002050| 70 72 69 6e 74 20 22 09 | 09 09 39 39 39 39 39 39 |print ".|..999999|
|00002060| 39 39 09 49 4e 09 4e 53 | 09 22 20 69 20 22 2e 22 |99.IN.NS|." i "."|
|00002070| 3b 0a 58 09 7d 0a 58 09 | 70 72 69 6e 74 20 22 22 |;.X.}.X.|print ""|
|00002080| 0a 58 09 70 72 69 6e 74 | 20 22 3b 22 0a 58 09 70 |.X.print| ";".X.p|
|00002090| 72 69 6e 74 20 22 3b 20 | 50 72 65 70 20 74 68 65 |rint "; |Prep the|
|000020a0| 20 63 61 63 68 65 20 28 | 68 6f 74 77 69 72 65 20 | cache (|hotwire |
|000020b0| 74 68 65 20 61 64 64 72 | 65 73 73 65 73 29 2e 20 |the addr|esses). |
|000020c0| 20 4f 72 64 65 72 20 64 | 6f 65 73 20 6e 6f 74 20 | Order d|oes not |
|000020d0| 6d 61 74 74 65 72 2e 22 | 0a 58 09 70 72 69 6e 74 |matter."|.X.print|
|000020e0| 20 22 3b 22 0a 58 09 70 | 72 69 6e 74 20 22 22 0a | ";".X.p|rint "".|
|000020f0| 58 09 66 6f 72 20 28 69 | 20 69 6e 20 68 6f 73 74 |X.for (i| in host|
|00002100| 61 64 64 72 29 20 7b 0a | 58 09 09 69 70 73 20 3d |addr) {.|X..ips =|
|00002110| 20 68 6f 73 74 61 64 64 | 72 5b 69 5d 3b 0a 58 09 | hostadd|r[i];.X.|
|00002120| 09 6e 20 3d 20 73 70 6c | 69 74 20 28 69 70 73 2c |.n = spl|it (ips,|
|00002130| 20 68 73 74 75 66 66 2c | 20 22 20 22 29 3b 0a 58 | hstuff,| " ");.X|
|00002140| 09 09 66 6f 72 20 28 6a | 3d 31 3b 20 6a 3c 3d 6e |..for (j|=1; j<=n|
|00002150| 3b 20 6a 2b 2b 29 20 7b | 0a 58 09 09 09 70 72 69 |; j++) {|.X...pri|
|00002160| 6e 74 66 20 28 22 25 73 | 2e 22 2c 20 69 29 3b 0a |ntf ("%s|.", i);.|
|00002170| 58 09 09 09 6c 20 3d 20 | 6c 65 6e 67 74 68 20 28 |X...l = |length (|
|00002180| 69 20 22 2e 22 29 3b 0a | 58 09 09 09 69 66 20 28 |i ".");.|X...if (|
|00002190| 6c 20 3c 20 38 29 20 70 | 72 69 6e 74 66 20 28 22 |l < 8) p|rintf ("|
|000021a0| 09 22 29 3b 0a 58 09 09 | 09 69 66 20 28 6c 20 3c |.");.X..|.if (l <|
|000021b0| 20 31 36 29 20 70 72 69 | 6e 74 66 20 28 22 09 22 | 16) pri|ntf ("."|
|000021c0| 29 3b 0a 58 09 09 09 69 | 66 20 28 6c 20 3c 20 32 |);.X...i|f (l < 2|
|000021d0| 34 29 20 70 72 69 6e 74 | 66 20 28 22 09 22 29 3b |4) print|f (".");|
|000021e0| 0a 58 09 09 09 70 72 69 | 6e 74 20 22 39 39 39 39 |.X...pri|nt "9999|
|000021f0| 39 39 39 39 09 49 4e 09 | 41 09 22 20 68 73 74 75 |9999.IN.|A." hstu|
|00002200| 66 66 5b 6a 5d 3b 0a 58 | 09 09 7d 0a 58 09 7d 0a |ff[j];.X|..}.X.}.|
|00002210| 58 7d 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |X}.END_O|F_FILE.i|
|00002220| 66 20 74 65 73 74 20 31 | 33 32 38 20 2d 6e 65 20 |f test 1|328 -ne |
|00002230| 60 77 63 20 2d 63 20 3c | 27 63 61 63 68 65 62 75 |`wc -c <|'cachebu|
|00002240| 69 6c 64 2e 61 77 6b 27 | 60 3b 20 74 68 65 6e 0a |ild.awk'|`; then.|
|00002250| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00002260| 22 27 63 61 63 68 65 62 | 75 69 6c 64 2e 61 77 6b |"'cacheb|uild.awk|
|00002270| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00002280| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00002290| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 61 63 68 65 |.# end o|f 'cache|
|000022a0| 62 75 69 6c 64 2e 61 77 | 6b 27 0a 66 69 0a 65 63 |build.aw|k'.fi.ec|
|000022b0| 68 6f 20 73 68 61 72 3a | 20 45 6e 64 20 6f 66 20 |ho shar:| End of |
|000022c0| 73 68 65 6c 6c 20 61 72 | 63 68 69 76 65 2e 0a 65 |shell ar|chive..e|
|000022d0| 78 69 74 20 30 0a | |xit 0. | |
+--------+-------------------------+-------------------------+--------+--------+