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
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, 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 20 76 31 38 69 30 31 |Subject:| v18i01|
|00000010| 38 3a 20 20 47 65 6e 65 | 72 61 74 65 20 63 68 61 |8: Gene|rate cha|
|00000020| 6e 67 65 62 61 72 73 20 | 69 6e 20 3f 72 6f 66 66 |ngebars |in ?roff|
|00000030| 20 64 6f 63 73 20 75 73 | 69 6e 67 20 70 61 74 63 | docs us|ing patc|
|00000040| 68 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 63 6f |h.Newsgr|oups: co|
|00000050| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 75 6e 69 78 2c |mp.sourc|es.unix,|
|00000060| 63 6f 6d 70 2e 74 65 78 | 74 0a 53 65 6e 64 65 72 |comp.tex|t.Sender|
|00000070| 3a 20 73 6f 75 72 63 65 | 73 0a 41 70 70 72 6f 76 |: source|s.Approv|
|00000080| 65 64 3a 20 72 73 61 6c | 7a 40 75 75 6e 65 74 2e |ed: rsal|z@uunet.|
|00000090| 55 55 2e 4e 45 54 0a 0a | 53 75 62 6d 69 74 74 65 |UU.NET..|Submitte|
|000000a0| 64 2d 62 79 3a 20 72 61 | 70 40 61 72 64 65 6e 74 |d-by: ra|p@ardent|
|000000b0| 2e 63 6f 6d 20 28 52 6f | 62 20 50 65 63 6b 29 0a |.com (Ro|b Peck).|
|000000c0| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|000000d0| 56 6f 6c 75 6d 65 20 31 | 38 2c 20 49 73 73 75 65 |Volume 1|8, Issue|
|000000e0| 20 31 38 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 | 18.Arch|ive-name|
|000000f0| 3a 20 63 68 61 6e 67 65 | 62 61 72 0a 0a 5b 20 20 |: change|bar..[ |
|00000100| 54 68 69 73 20 69 73 20 | 74 68 65 20 62 65 73 74 |This is |the best|
|00000110| 20 6f 66 20 74 68 65 20 | 73 65 76 65 72 61 6c 20 | of the |several |
|00000120| 6f 66 20 74 68 65 73 65 | 20 74 68 61 74 20 49 27 |of these| that I'|
|00000130| 76 65 20 73 65 65 6e 2e | 20 20 2d 72 24 20 5d 0a |ve seen.| -r$ ].|
|00000140| 0a 61 20 70 72 6f 67 72 | 61 6d 20 66 6f 72 20 61 |.a progr|am for a|
|00000150| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 61 64 64 |utomatic|ally add|
|00000160| 69 6e 67 20 63 68 61 6e | 67 65 2d 62 61 72 73 20 |ing chan|ge-bars |
|00000170| 74 6f 20 6e 72 6f 66 66 | 2f 74 72 6f 66 66 0a 64 |to nroff|/troff.d|
|00000180| 6f 63 75 6d 65 6e 74 73 | 2e 20 20 53 65 65 20 74 |ocuments|. See t|
|00000190| 68 65 20 43 4f 4e 54 45 | 4e 54 53 20 66 69 6c 65 |he CONTE|NTS file|
|000001a0| 20 61 6e 64 20 74 68 65 | 20 61 63 63 6f 6d 70 61 | and the| accompa|
|000001b0| 6e 79 69 6e 67 20 6d 61 | 6e 2d 70 61 67 65 73 0a |nying ma|n-pages.|
|000001c0| 66 6f 72 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |for more| informa|
|000001d0| 74 69 6f 6e 2e 20 20 4e | 4f 54 45 3a 20 52 45 51 |tion. N|OTE: REQ|
|000001e0| 55 49 52 45 53 20 4c 61 | 72 72 79 20 57 61 6c 6c |UIRES La|rry Wall|
|000001f0| 27 73 20 27 70 61 74 63 | 68 27 20 70 72 6f 67 72 |'s 'patc|h' progr|
|00000200| 61 6d 2e 0a 0a 52 6f 62 | 20 50 65 63 6b 0a 41 72 |am...Rob| Peck.Ar|
|00000210| 64 65 6e 74 20 43 6f 6d | 70 75 74 65 72 0a 09 09 |dent Com|puter...|
|00000220| 09 09 09 09 09 20 0a 23 | 21 20 2f 62 69 6e 2f 73 |..... .#|! /bin/s|
|00000230| 68 0a 23 20 54 68 69 73 | 20 69 73 20 61 20 73 68 |h.# This| is a sh|
|00000240| 65 6c 6c 20 61 72 63 68 | 69 76 65 2e 20 20 52 65 |ell arch|ive. Re|
|00000250| 6d 6f 76 65 20 61 6e 79 | 74 68 69 6e 67 20 62 65 |move any|thing be|
|00000260| 66 6f 72 65 20 74 68 69 | 73 20 6c 69 6e 65 2c 20 |fore thi|s line, |
|00000270| 74 68 65 6e 20 75 6e 70 | 61 63 6b 0a 23 20 69 74 |then unp|ack.# it|
|00000280| 20 62 79 20 73 61 76 69 | 6e 67 20 69 74 20 69 6e | by savi|ng it in|
|00000290| 74 6f 20 61 20 66 69 6c | 65 20 61 6e 64 20 74 79 |to a fil|e and ty|
|000002a0| 70 69 6e 67 20 22 73 68 | 20 66 69 6c 65 22 2e 20 |ping "sh| file". |
|000002b0| 20 54 6f 20 6f 76 65 72 | 77 72 69 74 65 20 65 78 | To over|write ex|
|000002c0| 69 73 74 69 6e 67 0a 23 | 20 66 69 6c 65 73 2c 20 |isting.#| files, |
|000002d0| 74 79 70 65 20 22 73 68 | 20 66 69 6c 65 20 2d 63 |type "sh| file -c|
|000002e0| 22 2e 20 20 59 6f 75 20 | 63 61 6e 20 61 6c 73 6f |". You |can also|
|000002f0| 20 66 65 65 64 20 74 68 | 69 73 20 61 73 20 73 74 | feed th|is as st|
|00000300| 61 6e 64 61 72 64 20 69 | 6e 70 75 74 20 76 69 61 |andard i|nput via|
|00000310| 0a 23 20 75 6e 73 68 61 | 72 2c 20 6f 72 20 62 79 |.# unsha|r, or by|
|00000320| 20 74 79 70 69 6e 67 20 | 22 73 68 20 3c 66 69 6c | typing |"sh <fil|
|00000330| 65 22 2c 20 65 2e 67 2e | 2e 20 20 49 66 20 74 68 |e", e.g.|. If th|
|00000340| 69 73 20 61 72 63 68 69 | 76 65 20 69 73 20 63 6f |is archi|ve is co|
|00000350| 6d 70 6c 65 74 65 2c 20 | 79 6f 75 0a 23 20 77 69 |mplete, |you.# wi|
|00000360| 6c 6c 20 73 65 65 20 74 | 68 65 20 66 6f 6c 6c 6f |ll see t|he follo|
|00000370| 77 69 6e 67 20 6d 65 73 | 73 61 67 65 20 61 74 20 |wing mes|sage at |
|00000380| 74 68 65 20 65 6e 64 3a | 0a 23 09 09 22 45 6e 64 |the end:|.#.."End|
|00000390| 20 6f 66 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 | of shel|l archiv|
|000003a0| 65 2e 22 0a 23 20 43 6f | 6e 74 65 6e 74 73 3a 20 |e.".# Co|ntents: |
|000003b0| 20 43 4f 4e 54 45 4e 54 | 53 20 52 45 41 44 4d 45 | CONTENT|S README|
|000003c0| 20 63 68 61 6e 67 65 62 | 61 72 20 63 68 61 6e 67 | changeb|ar chang|
|000003d0| 65 62 61 72 2e 31 20 63 | 68 62 61 72 2e 6c 65 78 |ebar.1 c|hbar.lex|
|000003e0| 0a 23 20 20 20 64 65 6c | 65 74 65 2e 6e 6f 74 65 |.# del|ete.note|
|000003f0| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 72 73 |.# Wrapp|ed by rs|
|00000400| 61 6c 7a 40 70 61 70 61 | 79 61 2e 62 62 6e 2e 63 |alz@papa|ya.bbn.c|
|00000410| 6f 6d 20 6f 6e 20 4d 6f | 6e 20 4d 61 72 20 31 33 |om on Mo|n Mar 13|
|00000420| 20 31 38 3a 32 30 3a 30 | 32 20 31 39 38 39 0a 50 | 18:20:0|2 1989.P|
|00000430| 41 54 48 3d 2f 62 69 6e | 3a 2f 75 73 72 2f 62 69 |ATH=/bin|:/usr/bi|
|00000440| 6e 3a 2f 75 73 72 2f 75 | 63 62 20 3b 20 65 78 70 |n:/usr/u|cb ; exp|
|00000450| 6f 72 74 20 50 41 54 48 | 0a 69 66 20 74 65 73 74 |ort PATH|.if test|
|00000460| 20 2d 66 20 27 43 4f 4e | 54 45 4e 54 53 27 20 2d | -f 'CON|TENTS' -|
|00000470| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000480| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000490| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000004a0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000004b0| 66 69 6c 65 20 5c 22 27 | 43 4f 4e 54 45 4e 54 53 |file \"'|CONTENTS|
|000004c0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|000004d0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000004e0| 22 27 43 4f 4e 54 45 4e | 54 53 27 5c 22 20 5c 28 |"'CONTEN|TS'\" \(|
|000004f0| 31 35 36 35 20 63 68 61 | 72 61 63 74 65 72 73 5c |1565 cha|racters\|
|00000500| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00000510| 27 43 4f 4e 54 45 4e 54 | 53 27 20 3c 3c 27 45 4e |'CONTENT|S' <<'EN|
|00000520| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 54 68 65 20 |D_OF_FIL|E'.XThe |
|00000530| 73 68 65 6c 6c 20 73 63 | 72 69 70 74 20 27 63 68 |shell sc|ript 'ch|
|00000540| 61 6e 67 65 62 61 72 27 | 20 75 73 65 73 20 4c 61 |angebar'| uses La|
|00000550| 72 72 79 20 57 61 6c 6c | 27 73 20 27 70 61 74 63 |rry Wall|'s 'patc|
|00000560| 68 27 20 70 72 6f 67 72 | 61 6d 0a 58 74 6f 20 61 |h' progr|am.Xto a|
|00000570| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 69 6e 73 |utomatic|ally ins|
|00000580| 74 61 6c 6c 20 22 63 68 | 61 6e 67 65 2d 62 61 72 |tall "ch|ange-bar|
|00000590| 73 22 20 69 6e 74 6f 20 | 61 6e 20 6e 72 6f 66 66 |s" into |an nroff|
|000005a0| 2f 74 72 6f 66 66 20 64 | 6f 63 75 6d 65 6e 74 2e |/troff d|ocument.|
|000005b0| 0a 58 54 68 65 20 6f 75 | 74 70 75 74 20 6f 66 20 |.XThe ou|tput of |
|000005c0| 61 20 63 6f 6e 74 65 78 | 74 20 64 69 66 66 20 69 |a contex|t diff i|
|000005d0| 73 20 6d 6f 64 69 66 69 | 65 64 20 62 79 20 61 20 |s modifi|ed by a |
|000005e0| 6c 65 78 2d 67 65 6e 65 | 72 61 74 65 64 20 63 20 |lex-gene|rated c |
|000005f0| 70 72 6f 67 72 61 6d 0a | 58 74 6f 20 69 6e 63 6f |program.|Xto inco|
|00000600| 72 70 6f 72 61 74 65 20 | 74 68 65 20 63 68 61 6e |rporate |the chan|
|00000610| 67 65 62 61 72 73 20 61 | 73 20 74 68 6f 75 67 68 |gebars a|s though|
|00000620| 20 74 68 65 79 20 61 72 | 65 20 70 61 72 74 20 6f | they ar|e part o|
|00000630| 66 20 74 68 65 20 64 69 | 66 66 65 72 65 6e 63 65 |f the di|fference|
|00000640| 73 0a 58 62 65 74 77 65 | 65 6e 20 74 68 65 20 74 |s.Xbetwe|en the t|
|00000650| 77 6f 20 66 69 6c 65 73 | 20 69 6e 20 74 68 65 20 |wo files| in the |
|00000660| 66 69 72 73 74 20 70 6c | 61 63 65 2e 20 20 54 68 |first pl|ace. Th|
|00000670| 65 6e 20 77 68 65 6e 20 | 70 61 74 63 68 20 72 75 |en when |patch ru|
|00000680| 6e 73 2c 20 69 74 0a 58 | 61 64 64 73 20 74 68 65 |ns, it.X|adds the|
|00000690| 20 63 68 61 6e 67 65 20 | 62 61 72 73 20 74 6f 20 | change |bars to |
|000006a0| 74 68 65 20 74 65 78 74 | 2e 20 20 41 66 74 65 72 |the text|. After|
|000006b0| 20 74 68 65 20 70 61 74 | 63 68 20 70 72 6f 63 65 | the pat|ch proce|
|000006c0| 73 73 69 6e 67 2c 20 6f | 6e 65 20 6d 6f 72 65 0a |ssing, o|ne more.|
|000006d0| 58 70 6f 73 74 2d 70 72 | 6f 63 65 73 73 69 6e 67 |Xpost-pr|ocessing|
|000006e0| 20 6f 70 65 72 61 74 69 | 6f 6e 20 69 73 20 70 65 | operati|on is pe|
|000006f0| 72 66 6f 72 6d 65 64 20 | 74 6f 20 61 64 64 20 6c |rformed |to add l|
|00000700| 69 6e 65 20 66 65 65 64 | 73 20 74 6f 20 74 68 65 |ine feed|s to the|
|00000710| 20 66 69 6e 61 6c 0a 58 | 74 65 78 74 2c 20 72 65 | final.X|text, re|
|00000720| 70 6c 61 63 69 6e 67 20 | 5e 47 20 63 68 61 72 61 |placing |^G chara|
|00000730| 63 74 65 72 73 20 74 68 | 61 74 20 77 65 72 65 20 |cters th|at were |
|00000740| 69 6e 73 74 61 6c 6c 65 | 64 20 73 6f 20 74 68 61 |installe|d so tha|
|00000750| 74 20 70 61 74 63 68 20 | 77 6f 75 6c 64 0a 58 62 |t patch |would.Xb|
|00000760| 65 20 61 62 6c 65 20 74 | 6f 20 72 75 6e 20 65 6e |e able t|o run en|
|00000770| 74 69 72 65 6c 79 20 75 | 6e 6d 6f 64 69 66 69 65 |tirely u|nmodifie|
|00000780| 64 2e 0a 58 0a 58 4d 79 | 20 74 68 61 6e 6b 73 20 |d..X.XMy| thanks |
|00000790| 74 6f 20 4c 61 72 72 79 | 20 57 61 6c 6c 20 66 6f |to Larry| Wall fo|
|000007a0| 72 20 63 72 65 61 74 69 | 6e 67 20 27 70 61 74 63 |r creati|ng 'patc|
|000007b0| 68 27 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |h' in th|e first |
|000007c0| 70 6c 61 63 65 2e 0a 58 | 54 68 69 73 20 70 72 6f |place..X|This pro|
|000007d0| 67 72 61 6d 20 77 61 73 | 20 70 72 6f 6d 70 74 65 |gram was| prompte|
|000007e0| 64 20 62 79 20 61 20 72 | 65 71 75 65 73 74 20 62 |d by a r|equest b|
|000007f0| 79 20 73 6f 6d 65 20 6f | 66 20 6d 79 20 65 6e 67 |y some o|f my eng|
|00000800| 69 6e 65 65 72 73 20 77 | 68 6f 0a 58 77 61 6e 74 |ineers w|ho.Xwant|
|00000810| 65 64 20 74 6f 20 62 65 | 20 61 62 6c 65 20 74 6f |ed to be| able to|
|00000820| 20 22 75 73 65 20 53 43 | 43 53 20 74 6f 20 65 64 | "use SC|CS to ed|
|00000830| 69 74 20 74 6f 20 6d 79 | 20 68 65 61 72 74 27 73 |it to my| heart's|
|00000840| 20 63 6f 6e 74 65 6e 74 | 2c 20 74 68 65 6e 0a 58 | content|, then.X|
|00000850| 77 68 65 6e 20 66 69 6e | 61 6c 6c 79 20 72 65 61 |when fin|ally rea|
|00000860| 64 79 20 74 6f 20 72 65 | 69 73 73 75 65 20 74 68 |dy to re|issue th|
|00000870| 65 20 64 6f 63 75 6d 65 | 6e 74 2c 20 68 61 76 65 |e docume|nt, have|
|00000880| 20 74 68 65 20 63 68 61 | 6e 67 65 20 62 61 72 73 | the cha|nge bars|
|00000890| 0a 58 69 6e 73 74 61 6c | 6c 65 64 20 61 75 74 6f |.Xinstal|led auto|
|000008a0| 6d 61 74 69 63 61 6c 6c | 79 2e 22 20 20 49 74 20 |maticall|y." It |
|000008b0| 73 65 65 6d 73 20 74 6f | 20 77 6f 72 6b 2c 20 73 |seems to| work, s|
|000008c0| 6f 20 68 65 72 65 20 69 | 74 20 69 73 2e 20 20 49 |o here i|t is. I|
|000008d0| 66 0a 58 61 6e 79 6f 6e | 65 20 6d 61 6b 65 73 20 |f.Xanyon|e makes |
|000008e0| 61 6e 79 20 63 68 61 6e | 67 65 73 2c 20 49 20 77 |any chan|ges, I w|
|000008f0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 68 65 61 |ould lik|e to hea|
|00000900| 72 20 61 62 6f 75 74 20 | 74 68 65 6d 3b 20 68 6f |r about |them; ho|
|00000910| 70 65 20 69 74 0a 58 68 | 65 6c 70 73 20 61 20 66 |pe it.Xh|elps a f|
|00000920| 65 77 20 66 6f 6c 6b 73 | 2e 0a 58 0a 58 52 65 6c |ew folks|..X.XRel|
|00000930| 65 61 73 65 64 20 74 6f | 20 74 68 65 20 70 75 62 |eased to| the pub|
|00000940| 6c 69 63 20 64 6f 6d 61 | 69 6e 2c 20 75 6e 73 75 |lic doma|in, unsu|
|00000950| 70 70 6f 72 74 65 64 2c | 20 64 6f 20 77 69 74 68 |pported,| do with|
|00000960| 20 69 74 20 61 73 20 79 | 6f 75 20 77 69 73 68 2e | it as y|ou wish.|
|00000970| 0a 58 0a 58 54 68 65 20 | 66 69 6c 65 73 20 63 6f |.X.XThe |files co|
|00000980| 6e 74 61 69 6e 65 64 20 | 68 65 72 65 20 61 72 65 |ntained |here are|
|00000990| 3a 0a 58 09 63 68 61 6e | 67 65 62 61 72 20 2d 20 |:.X.chan|gebar - |
|000009a0| 61 20 73 68 65 6c 6c 20 | 73 63 72 69 70 74 0a 58 |a shell |script.X|
|000009b0| 09 63 68 62 61 72 2e 6c | 65 78 20 2d 20 74 68 65 |.chbar.l|ex - the|
|000009c0| 20 6c 65 78 20 73 63 72 | 69 70 74 20 74 68 61 74 | lex scr|ipt that|
|000009d0| 20 63 6f 6d 70 69 6c 65 | 73 20 69 6e 74 6f 20 61 | compile|s into a|
|000009e0| 0a 58 09 09 20 20 20 20 | 63 6f 6e 74 65 78 74 2d |.X.. |context-|
|000009f0| 64 69 66 66 20 65 78 61 | 6d 69 6e 65 72 2f 6d 6f |diff exa|miner/mo|
|00000a00| 64 69 66 69 65 72 20 61 | 73 20 61 0a 58 09 09 20 |difier a|s a.X.. |
|00000a10| 20 20 20 70 72 65 70 72 | 6f 63 65 73 73 69 6e 67 | prepr|ocessing|
|00000a20| 20 73 74 65 70 20 62 65 | 66 6f 72 65 20 70 61 74 | step be|fore pat|
|00000a30| 63 68 20 69 73 20 75 73 | 65 64 2e 0a 58 09 63 68 |ch is us|ed..X.ch|
|00000a40| 62 61 72 2e 31 20 20 20 | 2d 20 74 68 65 20 6d 61 |bar.1 |- the ma|
|00000a50| 6e 20 70 61 67 65 20 74 | 68 61 74 20 65 78 70 6c |n page t|hat expl|
|00000a60| 61 69 6e 73 20 63 68 62 | 61 72 2e 6c 65 78 0a 58 |ains chb|ar.lex.X|
|00000a70| 09 63 68 61 6e 67 65 62 | 61 72 2e 31 20 2d 20 74 |.changeb|ar.1 - t|
|00000a80| 68 65 20 6d 61 6e 20 70 | 61 67 65 20 66 6f 72 20 |he man p|age for |
|00000a90| 74 68 65 20 63 68 61 6e | 67 65 62 61 72 20 73 63 |the chan|gebar sc|
|00000aa0| 72 69 70 74 2e 0a 58 09 | 09 20 20 20 20 20 20 54 |ript..X.|. T|
|00000ab0| 68 65 20 46 49 4c 45 53 | 20 69 74 65 6d 20 77 69 |he FILES| item wi|
|00000ac0| 6c 6c 20 68 61 76 65 20 | 74 6f 20 62 65 20 6d 6f |ll have |to be mo|
|00000ad0| 64 69 66 69 65 64 0a 58 | 09 09 20 20 20 20 20 20 |dified.X|.. |
|00000ae0| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 77 68 65 |dependin|g on whe|
|00000af0| 72 65 20 6f 6e 20 79 6f | 75 72 20 6f 77 6e 20 73 |re on yo|ur own s|
|00000b00| 79 73 74 65 6d 0a 58 09 | 09 20 20 20 20 20 20 79 |ystem.X.|. y|
|00000b10| 6f 75 20 69 6e 73 74 61 | 6c 6c 20 74 68 69 6e 67 |ou insta|ll thing|
|00000b20| 73 2e 0a 58 0a 58 52 6f | 62 20 50 65 63 6b 09 41 |s..X.XRo|b Peck.A|
|00000b30| 72 64 65 6e 74 20 43 6f | 6d 70 75 74 65 72 2c 20 |rdent Co|mputer, |
|00000b40| 38 38 30 20 57 2e 20 4d | 61 75 64 65 20 41 76 65 |880 W. M|aude Ave|
|00000b50| 2c 20 53 75 6e 6e 79 76 | 61 6c 65 2c 20 43 61 2e |, Sunnyv|ale, Ca.|
|00000b60| 20 39 34 30 38 36 0a 58 | 0a 45 4e 44 5f 4f 46 5f | 94086.X|.END_OF_|
|00000b70| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 31 35 36 |FILE.if |test 156|
|00000b80| 35 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 43 |5 -ne `w|c -c <'C|
|00000b90| 4f 4e 54 45 4e 54 53 27 | 60 3b 20 74 68 65 6e 0a |ONTENTS'|`; then.|
|00000ba0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00000bb0| 22 27 43 4f 4e 54 45 4e | 54 53 27 5c 22 20 75 6e |"'CONTEN|TS'\" un|
|00000bc0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00000bd0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00000be0| 20 6f 66 20 27 43 4f 4e | 54 45 4e 54 53 27 0a 66 | of 'CON|TENTS'.f|
|00000bf0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 52 45 |i.if tes|t -f 'RE|
|00000c00| 41 44 4d 45 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |ADME' -a| "${1}" |
|00000c10| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00000c20| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00000c30| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00000c40| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 52 |isting f|ile \"'R|
|00000c50| 45 41 44 4d 45 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |EADME'\"|.else.ec|
|00000c60| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000c70| 69 6e 67 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ing \"'R|EADME'\"|
|00000c80| 20 5c 28 36 33 31 20 63 | 68 61 72 61 63 74 65 72 | \(631 c|haracter|
|00000c90| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000ca0| 20 3e 27 52 45 41 44 4d | 45 27 20 3c 3c 27 45 4e | >'READM|E' <<'EN|
|00000cb0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 43 68 61 6e |D_OF_FIL|E'.XChan|
|00000cc0| 67 65 62 61 72 20 6f 6e | 6c 79 20 77 6f 72 6b 73 |gebar on|ly works|
|00000cd0| 20 77 69 74 68 20 66 69 | 6c 65 73 20 69 6e 20 74 | with fi|les in t|
|00000ce0| 68 65 20 63 75 72 72 65 | 6e 74 20 64 69 72 65 63 |he curre|nt direc|
|00000cf0| 74 6f 72 79 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |tory. F|or examp|
|00000d00| 6c 65 2c 0a 58 0a 58 09 | 63 68 61 6e 67 65 62 61 |le,.X.X.|changeba|
|00000d10| 72 20 66 6f 6f 31 20 66 | 6f 6f 32 0a 58 0a 58 77 |r foo1 f|oo2.X.Xw|
|00000d20| 6f 72 6b 73 20 66 69 6e | 65 2c 20 62 75 74 3a 0a |orks fin|e, but:.|
|00000d30| 58 0a 58 09 63 68 61 6e | 67 65 62 61 72 20 2f 74 |X.X.chan|gebar /t|
|00000d40| 6d 70 2f 66 6f 6f 31 20 | 2f 6f 74 68 65 72 70 61 |mp/foo1 |/otherpa|
|00000d50| 74 68 2f 66 6f 6f 32 0a | 58 0a 58 64 6f 65 73 20 |th/foo2.|X.Xdoes |
|00000d60| 6e 6f 74 20 77 6f 72 6b | 2e 20 20 49 20 62 65 6c |not work|. I bel|
|00000d70| 69 65 76 65 20 74 68 61 | 74 20 70 61 74 63 68 20 |ieve tha|t patch |
|00000d80| 69 73 20 68 61 76 69 6e | 67 20 61 20 70 72 6f 62 |is havin|g a prob|
|00000d90| 6c 65 6d 20 77 69 74 68 | 20 70 61 74 68 73 2e 0a |lem with| paths..|
|00000da0| 58 0a 58 53 6f 20 74 68 | 69 73 20 69 73 20 6a 75 |X.XSo th|is is ju|
|00000db0| 73 74 20 61 20 71 75 69 | 63 6b 20 77 61 72 6e 69 |st a qui|ck warni|
|00000dc0| 6e 67 20 74 6f 20 75 73 | 65 72 73 20 74 68 61 74 |ng to us|ers that|
|00000dd0| 20 74 68 69 73 20 6c 69 | 6d 69 74 61 74 69 6f 6e | this li|mitation|
|00000de0| 20 65 78 69 73 74 73 2e | 0a 58 49 20 64 6f 20 6e | exists.|.XI do n|
|00000df0| 6f 74 20 70 6c 61 6e 20 | 74 6f 20 66 69 78 20 69 |ot plan |to fix i|
|00000e00| 74 2c 20 68 6f 77 65 76 | 65 72 20 61 20 75 73 65 |t, howev|er a use|
|00000e10| 72 20 77 68 6f 20 77 61 | 6e 74 65 64 20 74 6f 20 |r who wa|nted to |
|00000e20| 66 69 78 20 74 68 65 20 | 73 69 74 75 61 74 69 6f |fix the |situatio|
|00000e30| 6e 0a 58 63 6f 75 6c 64 | 2c 20 49 20 73 75 70 70 |n.Xcould|, I supp|
|00000e40| 6f 73 65 2c 20 63 6f 70 | 79 20 65 61 63 68 20 66 |ose, cop|y each f|
|00000e50| 69 6c 65 20 74 6f 20 61 | 20 6b 6e 6f 77 6e 20 6e |ile to a| known n|
|00000e60| 61 6d 65 20 69 6e 20 2f | 74 6d 70 2c 20 66 6f 72 |ame in /|tmp, for|
|00000e70| 20 65 78 61 6d 70 6c 65 | 2c 0a 58 74 68 65 6e 20 | example|,.Xthen |
|00000e80| 70 75 73 68 64 20 74 6f | 20 2f 74 6d 70 2c 20 64 |pushd to| /tmp, d|
|00000e90| 6f 20 74 68 65 20 63 68 | 61 6e 67 65 62 61 72 20 |o the ch|angebar |
|00000ea0| 77 6f 72 6b 20 74 68 65 | 72 65 2c 20 74 68 65 6e |work the|re, then|
|00000eb0| 20 64 65 6c 65 74 65 20 | 74 68 65 20 74 65 6d 70 | delete |the temp|
|00000ec0| 0a 58 66 69 6c 65 73 2c | 20 63 6f 70 79 20 74 68 |.Xfiles,| copy th|
|00000ed0| 65 20 2e 63 68 62 61 72 | 20 72 65 73 75 6c 74 20 |e .chbar| result |
|00000ee0| 74 6f 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |to the o|riginal |
|00000ef0| 64 69 72 65 63 74 6f 72 | 79 20 61 6e 64 20 66 69 |director|y and fi|
|00000f00| 6e 61 6c 6c 79 0a 58 67 | 65 74 20 72 69 64 20 6f |nally.Xg|et rid o|
|00000f10| 66 20 61 6e 79 20 6f 74 | 68 65 72 20 74 65 6d 70 |f any ot|her temp|
|00000f20| 20 66 69 6c 65 73 20 74 | 68 61 74 20 77 65 20 63 | files t|hat we c|
|00000f30| 72 65 61 74 65 64 2e 0a | 58 0a 58 52 6f 62 20 50 |reated..|X.XRob P|
|00000f40| 65 63 6b 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |eck.END_|OF_FILE.|
|00000f50| 69 66 20 74 65 73 74 20 | 36 33 31 20 2d 6e 65 20 |if test |631 -ne |
|00000f60| 60 77 63 20 2d 63 20 3c | 27 52 45 41 44 4d 45 27 |`wc -c <|'README'|
|00000f70| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00000f80| 20 73 68 61 72 3a 20 5c | 22 27 52 45 41 44 4d 45 | shar: \|"'README|
|00000f90| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00000fa0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00000fb0| 0a 23 20 65 6e 64 20 6f | 66 20 27 52 45 41 44 4d |.# end o|f 'READM|
|00000fc0| 45 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |E'.fi.if| test -f|
|00000fd0| 20 27 63 68 61 6e 67 65 | 62 61 72 27 20 2d 61 20 | 'change|bar' -a |
|00000fe0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000ff0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00001000| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00001010| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00001020| 6c 65 20 5c 22 27 63 68 | 61 6e 67 65 62 61 72 27 |le \"'ch|angebar'|
|00001030| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00001040| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00001050| 27 63 68 61 6e 67 65 62 | 61 72 27 5c 22 20 5c 28 |'changeb|ar'\" \(|
|00001060| 31 34 32 32 20 63 68 61 | 72 61 63 74 65 72 73 5c |1422 cha|racters\|
|00001070| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00001080| 27 63 68 61 6e 67 65 62 | 61 72 27 20 3c 3c 27 45 |'changeb|ar' <<'E|
|00001090| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 23 21 2f |ND_OF_FI|LE'.X#!/|
|000010a0| 62 69 6e 2f 73 68 0a 58 | 23 0a 58 23 20 20 53 63 |bin/sh.X|#.X# Sc|
|000010b0| 72 69 70 74 20 74 6f 20 | 61 75 74 6f 6d 61 74 69 |ript to |automati|
|000010c0| 63 61 6c 6c 79 20 61 64 | 64 20 63 68 61 6e 67 65 |cally ad|d change|
|000010d0| 62 61 72 73 20 74 6f 20 | 74 72 6f 66 66 20 64 6f |bars to |troff do|
|000010e0| 63 73 2e 0a 58 23 0a 58 | 69 66 20 5b 20 24 23 20 |cs..X#.X|if [ $# |
|000010f0| 2d 6c 74 20 31 20 5d 3b | 20 74 68 65 6e 0a 58 23 |-lt 1 ];| then.X#|
|00001100| 0a 58 23 20 20 49 66 20 | 75 73 65 72 20 64 6f 65 |.X# If |user doe|
|00001110| 73 20 6e 6f 74 20 65 6e | 74 65 72 20 70 61 72 61 |s not en|ter para|
|00001120| 6d 65 74 65 72 73 2c 20 | 73 68 6f 77 20 75 73 61 |meters, |show usa|
|00001130| 67 65 20 69 6e 66 6f 2e | 0a 58 23 0a 58 09 65 63 |ge info.|.X#.X.ec|
|00001140| 68 6f 0a 58 09 65 63 68 | 6f 20 22 09 63 68 61 6e |ho.X.ech|o ".chan|
|00001150| 67 65 62 61 72 20 2d 2d | 3e 20 55 73 61 67 65 3a |gebar --|> Usage:|
|00001160| 20 20 20 63 68 61 6e 67 | 65 62 61 72 20 4f 4c 44 | chang|ebar OLD|
|00001170| 46 49 4c 45 20 4e 45 57 | 46 49 4c 45 22 0a 58 09 |FILE NEW|FILE".X.|
|00001180| 65 63 68 6f 0a 58 09 65 | 63 68 6f 20 22 09 50 72 |echo.X.e|cho ".Pr|
|00001190| 6f 64 75 63 65 73 20 4e | 45 57 46 49 4c 45 2e 63 |oduces N|EWFILE.c|
|000011a0| 68 62 61 72 20 74 68 61 | 74 20 69 73 20 4e 45 57 |hbar tha|t is NEW|
|000011b0| 46 49 4c 45 20 77 69 74 | 68 20 63 68 61 6e 67 65 |FILE wit|h change|
|000011c0| 62 61 72 73 2c 22 0a 58 | 09 65 63 68 6f 20 22 09 |bars,".X|.echo ".|
|000011d0| 6c 65 61 76 65 73 20 6f | 72 69 67 69 6e 61 6c 20 |leaves o|riginal |
|000011e0| 66 69 6c 65 73 20 69 6e | 74 61 63 74 2e 22 0a 58 |files in|tact.".X|
|000011f0| 09 65 63 68 6f 0a 58 65 | 6c 73 65 0a 58 23 20 20 |.echo.Xe|lse.X# |
|00001200| 52 75 6e 20 61 20 63 6f | 6e 74 65 78 74 20 64 69 |Run a co|ntext di|
|00001210| 66 66 20 6f 6e 20 74 68 | 65 20 74 77 6f 20 66 69 |ff on th|e two fi|
|00001220| 6c 65 73 0a 58 23 0a 58 | 09 64 69 66 66 20 2d 63 |les.X#.X|.diff -c|
|00001230| 20 24 32 20 24 31 20 3e | 20 24 31 2e 64 69 66 66 | $2 $1 >| $1.diff|
|00001240| 0a 58 23 0a 58 23 20 20 | 49 6e 73 74 61 6c 6c 20 |.X#.X# |Install |
|00001250| 63 68 61 6e 67 65 20 62 | 61 72 73 20 69 6e 20 74 |change b|ars in t|
|00001260| 68 65 20 63 6f 6e 74 65 | 78 74 20 64 69 66 66 2c |he conte|xt diff,|
|00001270| 0a 58 23 20 20 66 6f 72 | 20 41 44 44 49 54 49 4f |.X# for| ADDITIO|
|00001280| 4e 53 20 61 6e 64 20 4d | 4f 44 49 46 49 43 41 54 |NS and M|ODIFICAT|
|00001290| 49 4f 4e 53 20 6f 6e 6c | 79 2e 0a 58 23 20 20 44 |IONS onl|y..X# D|
|000012a0| 45 4c 45 54 49 4f 4e 53 | 20 6e 6f 74 20 6d 61 72 |ELETIONS| not mar|
|000012b0| 6b 65 64 20 2d 2d 20 72 | 65 76 65 72 73 65 20 74 |ked -- r|everse t|
|000012c0| 68 65 0a 58 23 20 20 73 | 65 71 75 65 6e 63 65 20 |he.X# s|equence |
|000012d0| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 6e 61 6d 65 |of the f|ile name|
|000012e0| 73 20 61 6e 64 20 72 75 | 6e 20 69 74 0a 58 23 20 |s and ru|n it.X# |
|000012f0| 20 61 67 61 69 6e 20 74 | 6f 20 67 65 74 20 61 6e | again t|o get an|
|00001300| 20 6f 72 69 67 69 6e 61 | 6c 20 66 69 6c 65 20 77 | origina|l file w|
|00001310| 69 74 68 0a 58 23 20 20 | 64 65 6c 65 74 69 6f 6e |ith.X# |deletion|
|00001320| 73 20 61 6e 64 20 6d 6f | 64 69 66 69 63 61 74 69 |s and mo|dificati|
|00001330| 6f 6e 73 20 6d 61 72 6b | 65 64 2e 0a 58 23 0a 58 |ons mark|ed..X#.X|
|00001340| 09 63 68 62 61 72 20 3c | 20 24 31 2e 64 69 66 66 |.chbar <| $1.diff|
|00001350| 20 3e 20 24 31 2e 70 61 | 74 63 68 0a 58 23 0a 58 | > $1.pa|tch.X#.X|
|00001360| 23 20 20 52 75 6e 20 74 | 68 65 20 70 61 74 63 68 |# Run t|he patch|
|00001370| 20 70 72 6f 67 72 61 6d | 20 74 6f 20 69 6e 73 74 | program| to inst|
|00001380| 61 6c 6c 20 74 68 65 0a | 58 23 20 20 6e 6f 77 2d |all the.|X# now-|
|00001390| 6d 6f 64 69 66 69 65 64 | 20 63 6f 6e 74 65 78 74 |modified| context|
|000013a0| 20 64 69 66 66 73 2e 0a | 58 23 0a 58 09 70 61 74 | diffs..|X#.X.pat|
|000013b0| 63 68 20 2d 52 20 3c 20 | 24 31 2e 70 61 74 63 68 |ch -R < |$1.patch|
|000013c0| 0a 58 23 0a 58 23 20 20 | 52 65 6d 6f 76 65 20 74 |.X#.X# |Remove t|
|000013d0| 68 65 20 69 6e 74 65 72 | 6d 65 64 69 61 74 65 20 |he inter|mediate |
|000013e0| 66 69 6c 65 73 3b 0a 58 | 23 20 20 61 73 73 75 6d |files;.X|# assum|
|000013f0| 65 73 20 74 68 61 74 20 | 61 6c 6c 20 6f 66 20 74 |es that |all of t|
|00001400| 68 65 20 70 61 74 63 68 | 65 73 20 77 6f 72 6b 65 |he patch|es worke|
|00001410| 64 2e 0a 58 23 0a 58 09 | 72 6d 20 24 31 2e 64 69 |d..X#.X.|rm $1.di|
|00001420| 66 66 20 24 31 2e 70 61 | 74 63 68 0a 58 23 0a 58 |ff $1.pa|tch.X#.X|
|00001430| 23 20 20 54 72 61 6e 73 | 6c 61 74 65 20 5e 47 20 |# Trans|late ^G |
|00001440| 74 6f 20 5c 6e 2c 20 69 | 6e 73 74 61 6c 6c 65 64 |to \n, i|nstalled|
|00001450| 20 66 6f 72 0a 58 23 20 | 20 63 6f 6e 76 65 6e 69 | for.X# | conveni|
|00001460| 65 6e 63 65 20 74 6f 20 | 6d 61 6b 65 20 70 61 74 |ence to |make pat|
|00001470| 63 68 20 77 6f 72 6b 20 | 75 6e 6d 6f 64 69 66 69 |ch work |unmodifi|
|00001480| 65 64 2e 0a 58 23 20 20 | 4e 61 6d 65 20 74 68 65 |ed..X# |Name the|
|00001490| 20 66 69 6c 74 65 72 65 | 64 20 76 65 72 73 69 6f | filtere|d versio|
|000014a0| 6e 20 61 73 20 24 32 2e | 63 68 62 61 72 2e 0a 58 |n as $2.|chbar..X|
|000014b0| 23 0a 58 09 74 72 20 27 | 5c 30 30 37 27 20 27 5c |#.X.tr '|\007' '\|
|000014c0| 30 31 32 27 20 3c 20 24 | 31 20 3e 20 24 32 2e 63 |012' < $|1 > $2.c|
|000014d0| 68 62 61 72 0a 58 23 0a | 58 23 20 20 4d 61 6b 65 |hbar.X#.|X# Make|
|000014e0| 20 74 68 65 20 70 61 74 | 63 68 65 64 20 28 69 6e | the pat|ched (in|
|000014f0| 74 65 72 6d 65 64 69 61 | 74 65 29 20 66 69 6c 65 |termedia|te) file|
|00001500| 20 72 65 6d 6f 76 61 62 | 6c 65 0a 58 23 0a 58 09 | removab|le.X#.X.|
|00001510| 63 68 6d 6f 64 20 36 36 | 36 20 24 31 0a 58 23 0a |chmod 66|6 $1.X#.|
|00001520| 58 23 20 20 50 61 74 63 | 68 20 72 65 6e 61 6d 65 |X# Patc|h rename|
|00001530| 64 20 6f 72 69 67 69 6e | 61 6c 20 66 69 6c 65 3b |d origin|al file;|
|00001540| 0a 58 23 20 20 72 65 73 | 74 6f 72 65 20 74 68 65 |.X# res|tore the|
|00001550| 20 6f 72 69 67 69 6e 61 | 6c 20 6e 61 6d 65 0a 58 | origina|l name.X|
|00001560| 23 0a 58 09 6d 76 20 24 | 31 2e 6f 72 69 67 20 24 |#.X.mv $|1.orig $|
|00001570| 31 0a 58 23 0a 58 23 20 | 20 4e 6f 77 20 74 65 6c |1.X#.X# | Now tel|
|00001580| 6c 20 74 68 65 20 75 73 | 65 72 20 77 68 61 74 20 |l the us|er what |
|00001590| 77 65 20 64 69 64 2e 0a | 58 23 0a 58 09 65 63 68 |we did..|X#.X.ech|
|000015a0| 6f 20 0a 58 09 65 63 68 | 6f 20 22 41 6c 6c 20 6f |o .X.ech|o "All o|
|000015b0| 66 20 74 68 65 20 68 75 | 6e 6b 73 20 73 68 6f 75 |f the hu|nks shou|
|000015c0| 6c 64 20 68 61 76 65 20 | 73 75 63 63 65 65 64 65 |ld have |succeede|
|000015d0| 64 22 0a 58 09 65 63 68 | 6f 0a 58 09 65 63 68 6f |d".X.ech|o.X.echo|
|000015e0| 20 22 54 68 65 72 65 20 | 69 73 20 6e 6f 77 20 61 | "There |is now a|
|000015f0| 20 6e 65 77 20 66 69 6c | 65 20 6e 61 6d 65 64 20 | new fil|e named |
|00001600| 24 32 2e 63 68 62 61 72 | 20 74 68 61 74 20 69 73 |$2.chbar| that is|
|00001610| 20 65 78 61 63 74 6c 79 | 22 0a 58 09 65 63 68 6f | exactly|".X.echo|
|00001620| 20 22 6c 69 6b 65 20 79 | 6f 75 72 20 66 69 6c 65 | "like y|our file|
|00001630| 20 6e 61 6d 65 64 20 24 | 32 2c 20 62 75 74 20 69 | named $|2, but i|
|00001640| 74 20 68 61 73 20 63 68 | 61 6e 67 65 62 61 72 73 |t has ch|angebars|
|00001650| 20 69 6e 73 74 61 6c 6c | 65 64 2e 22 0a 58 09 65 | install|ed.".X.e|
|00001660| 63 68 6f 0a 58 66 69 0a | 45 4e 44 5f 4f 46 5f 46 |cho.Xfi.|END_OF_F|
|00001670| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 31 34 32 32 |ILE.if t|est 1422|
|00001680| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 63 68 | -ne `wc| -c <'ch|
|00001690| 61 6e 67 65 62 61 72 27 | 60 3b 20 74 68 65 6e 0a |angebar'|`; then.|
|000016a0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|000016b0| 22 27 63 68 61 6e 67 65 | 62 61 72 27 5c 22 20 75 |"'change|bar'\" u|
|000016c0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000016d0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|000016e0| 64 20 6f 66 20 27 63 68 | 61 6e 67 65 62 61 72 27 |d of 'ch|angebar'|
|000016f0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001700| 63 68 61 6e 67 65 62 61 | 72 2e 31 27 20 2d 61 20 |changeba|r.1' -a |
|00001710| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00001720| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00001730| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00001740| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00001750| 6c 65 20 5c 22 27 63 68 | 61 6e 67 65 62 61 72 2e |le \"'ch|angebar.|
|00001760| 31 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |1'\".els|e.echo s|
|00001770| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00001780| 5c 22 27 63 68 61 6e 67 | 65 62 61 72 2e 31 27 5c |\"'chang|ebar.1'\|
|00001790| 22 20 5c 28 31 33 35 36 | 20 63 68 61 72 61 63 74 |" \(1356| charact|
|000017a0| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|000017b0| 2f 22 20 3e 27 63 68 61 | 6e 67 65 62 61 72 2e 31 |/" >'cha|ngebar.1|
|000017c0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000017d0| 27 0a 58 2e 54 48 20 43 | 48 42 41 52 20 31 4c 20 |'.X.TH C|HBAR 1L |
|000017e0| 22 4f 63 74 6f 62 65 72 | 20 37 2c 20 31 39 38 38 |"October| 7, 1988|
|000017f0| 22 20 22 22 20 22 55 73 | 65 72 20 43 6f 6e 74 72 |" "" "Us|er Contr|
|00001800| 69 62 75 74 65 64 20 53 | 6f 66 74 77 61 72 65 22 |ibuted S|oftware"|
|00001810| 0a 58 2e 53 48 20 4e 41 | 4d 45 0a 58 63 68 62 61 |.X.SH NA|ME.Xchba|
|00001820| 72 20 5c 2d 20 6d 6f 64 | 69 66 79 20 61 20 63 6f |r \- mod|ify a co|
|00001830| 6e 74 65 78 74 20 64 69 | 66 66 20 74 6f 20 61 64 |ntext di|ff to ad|
|00001840| 64 20 63 68 61 6e 67 65 | 20 62 61 72 73 20 0a 58 |d change| bars .X|
|00001850| 2e 62 72 0a 58 2e 6e 66 | 0a 58 20 20 20 20 20 20 |.br.X.nf|.X |
|00001860| 20 20 62 65 66 6f 72 65 | 20 72 75 6e 6e 69 6e 67 | before| running|
|00001870| 20 70 61 74 63 68 0a 58 | 2e 66 69 0a 58 2e 53 48 | patch.X|.fi.X.SH|
|00001880| 20 53 59 4e 4f 50 53 49 | 53 0a 58 2e 42 20 63 68 | SYNOPSI|S.X.B ch|
|00001890| 61 6e 67 65 62 61 72 20 | 4f 4c 44 46 49 4c 45 20 |angebar |OLDFILE |
|000018a0| 4e 45 57 46 49 4c 45 0a | 58 2e 53 48 20 46 55 4e |NEWFILE.|X.SH FUN|
|000018b0| 43 54 49 4f 4e 0a 58 49 | 6e 73 74 61 6c 6c 73 20 |CTION.XI|nstalls |
|000018c0| 22 2e 6d 63 20 7c 5e 47 | 22 20 61 73 20 70 61 72 |".mc |^G|" as par|
|000018d0| 74 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 6c |t of the| first l|
|000018e0| 69 6e 65 20 6f 66 20 61 | 20 63 68 61 6e 67 65 64 |ine of a| changed|
|000018f0| 2d 6c 69 6e 65 0a 58 72 | 65 67 69 6f 6e 20 61 6e |-line.Xr|egion an|
|00001900| 64 20 69 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |d is par|t of the|
|00001910| 20 66 69 72 73 74 20 6c | 69 6e 65 20 6f 66 20 61 | first l|ine of a|
|00001920| 20 72 65 67 69 6f 6e 20 | 6f 66 20 61 64 64 65 64 | region |of added|
|00001930| 2d 6c 69 6e 65 73 0a 58 | 61 73 20 69 6e 64 69 63 |-lines.X|as indic|
|00001940| 61 74 65 64 20 62 79 20 | 61 20 63 6f 6e 74 65 78 |ated by |a contex|
|00001950| 74 20 64 69 66 66 20 0a | 58 2e 62 72 0a 58 2e 73 |t diff .|X.br.X.s|
|00001960| 70 0a 58 2e 6e 66 0a 58 | 09 28 64 69 66 66 20 2d |p.X.nf.X|.(diff -|
|00001970| 63 20 6f 6c 64 66 69 6c | 65 20 6e 65 77 66 69 6c |c oldfil|e newfil|
|00001980| 65 29 2e 0a 58 2e 66 69 | 0a 58 2e 73 70 0a 58 2e |e)..X.fi|.X.sp.X.|
|00001990| 50 50 0a 58 41 6c 73 6f | 20 69 6e 73 74 61 6c 6c |PP.XAlso| install|
|000019a0| 73 20 22 5e 47 2e 6d 63 | 22 20 61 73 20 70 61 72 |s "^G.mc|" as par|
|000019b0| 74 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 6c 69 |t of the| last li|
|000019c0| 6e 65 20 6f 66 20 61 20 | 63 68 61 6e 67 65 64 2d |ne of a |changed-|
|000019d0| 6c 69 6e 65 0a 58 72 65 | 67 69 6f 6e 2c 20 61 6e |line.Xre|gion, an|
|000019e0| 64 20 61 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |d as par|t of the|
|000019f0| 20 6c 61 73 74 20 6c 69 | 6e 65 20 6f 66 20 61 6e | last li|ne of an|
|00001a00| 20 61 64 64 65 64 2d 6c | 69 6e 65 20 72 65 67 69 | added-l|ine regi|
|00001a10| 6f 6e 2e 0a 58 54 68 69 | 73 20 66 6f 6f 6c 73 20 |on..XThi|s fools |
|00001a20| 74 68 65 20 70 61 74 63 | 68 20 70 72 6f 67 72 61 |the patc|h progra|
|00001a30| 6d 20 69 6e 74 6f 20 62 | 65 6c 69 65 76 69 6e 67 |m into b|elieving|
|00001a40| 20 74 68 61 74 20 74 68 | 65 73 65 20 63 68 61 72 | that th|ese char|
|00001a50| 61 63 74 65 72 73 0a 58 | 61 72 65 20 70 61 72 74 |acters.X|are part|
|00001a60| 20 6f 66 20 74 68 65 20 | 70 61 74 63 68 20 74 6f | of the |patch to|
|00001a70| 20 62 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 74 6f | be inst|alled to|
|00001a80| 20 63 72 65 61 74 65 20 | 74 68 65 20 6e 65 77 20 | create |the new |
|00001a90| 66 69 6c 65 2e 0a 58 46 | 6f 6c 6c 6f 77 69 6e 67 |file..XF|ollowing|
|00001aa0| 20 72 75 6e 6e 69 6e 67 | 20 70 61 74 63 68 2c 20 | running| patch, |
|00001ab0| 61 20 66 69 6c 74 65 72 | 20 6d 75 73 74 20 62 65 |a filter| must be|
|00001ac0| 20 72 75 6e 20 74 6f 20 | 63 68 61 6e 67 65 20 74 | run to |change t|
|00001ad0| 68 65 0a 58 43 6f 6e 74 | 72 6f 6c 2d 47 20 63 68 |he.XCont|rol-G ch|
|00001ae0| 61 72 61 63 74 65 72 73 | 20 69 6e 74 6f 20 6c 69 |aracters| into li|
|00001af0| 6e 65 20 66 65 65 64 73 | 3b 20 20 72 65 73 75 6c |ne feeds|; resul|
|00001b00| 74 73 20 69 6e 20 70 6c | 61 63 69 6e 67 0a 58 74 |ts in pl|acing.Xt|
|00001b10| 68 65 20 22 2e 6d 63 20 | 7c 22 20 6f 6e 20 61 20 |he ".mc ||" on a |
|00001b20| 73 65 70 61 72 61 74 65 | 20 6c 69 6e 65 20 61 68 |separate| line ah|
|00001b30| 65 61 64 20 6f 66 20 74 | 68 65 20 63 68 61 6e 67 |ead of t|he chang|
|00001b40| 65 64 20 72 65 67 69 6f | 6e 0a 58 61 6e 64 20 74 |ed regio|n.Xand t|
|00001b50| 68 65 20 22 2e 6d 63 22 | 20 6f 6e 20 61 20 73 65 |he ".mc"| on a se|
|00001b60| 70 61 72 61 74 65 20 6c | 69 6e 65 20 6a 75 73 74 |parate l|ine just|
|00001b70| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 74 68 65 20 65 | followi|ng the e|
|00001b80| 6e 64 20 6f 66 0a 58 74 | 68 65 20 63 68 61 6e 67 |nd of.Xt|he chang|
|00001b90| 65 64 20 72 65 67 69 6f | 6e 2c 20 74 68 75 73 20 |ed regio|n, thus |
|00001ba0| 63 61 75 73 69 6e 67 20 | 74 68 65 20 72 65 67 69 |causing |the regi|
|00001bb0| 6f 6e 20 74 6f 20 62 65 | 20 6d 61 72 6b 65 64 2e |on to be| marked.|
|00001bc0| 0a 58 2e 53 48 20 4c 49 | 4d 49 54 41 54 49 4f 4e |.X.SH LI|MITATION|
|00001bd0| 53 0a 58 53 65 65 20 4c | 49 4d 49 54 41 54 49 4f |S.XSee L|IMITATIO|
|00001be0| 4e 53 20 69 6e 20 74 68 | 65 20 6d 61 6e 2d 70 61 |NS in th|e man-pa|
|00001bf0| 67 65 20 74 68 61 74 20 | 64 65 73 63 72 69 62 65 |ge that |describe|
|00001c00| 73 20 60 60 63 68 61 6e | 67 65 62 61 72 27 27 2e |s ``chan|gebar''.|
|00001c10| 0a 58 2e 53 48 20 41 55 | 54 48 4f 52 0a 58 52 6f |.X.SH AU|THOR.XRo|
|00001c20| 62 20 50 65 63 6b 20 5c | 2d 20 41 72 64 65 6e 74 |b Peck \|- Ardent|
|00001c30| 20 43 6f 6d 70 75 74 65 | 72 0a 58 2e 53 48 20 46 | Compute|r.X.SH F|
|00001c40| 49 4c 45 53 0a 58 2f 75 | 73 72 2f 6c 6f 63 61 6c |ILES.X/u|sr/local|
|00001c50| 2f 6c 69 62 2f 63 68 62 | 61 72 2e 6c 65 78 0a 58 |/lib/chb|ar.lex.X|
|00001c60| 2e 62 72 0a 58 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |.br.X/us|r/local/|
|00001c70| 62 69 6e 2f 63 68 62 61 | 72 0a 58 2e 62 72 0a 58 |bin/chba|r.X.br.X|
|00001c80| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6c 69 62 2f 50 |/usr/loc|al/lib/P|
|00001c90| 41 54 43 48 2e 73 72 63 | 20 28 73 6f 75 72 63 65 |ATCH.src| (source|
|00001ca0| 20 64 69 72 65 63 74 6f | 72 79 29 0a 58 2e 62 72 | directo|ry).X.br|
|00001cb0| 0a 58 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 62 69 6e |.X/usr/l|ocal/bin|
|00001cc0| 2f 70 61 74 63 68 20 28 | 62 79 20 4c 61 72 72 79 |/patch (|by Larry|
|00001cd0| 20 57 61 6c 6c 29 20 5c | 2d 20 76 65 72 73 69 6f | Wall) \|- versio|
|00001ce0| 6e 20 32 2e 30 0a 58 2e | 62 72 0a 58 2f 75 73 72 |n 2.0.X.|br.X/usr|
|00001cf0| 2f 6c 6f 63 61 6c 2f 62 | 69 6e 2f 63 68 61 6e 67 |/local/b|in/chang|
|00001d00| 65 62 61 72 20 28 61 20 | 73 68 65 6c 6c 20 73 63 |ebar (a |shell sc|
|00001d10| 72 69 70 74 29 0a 58 2e | 53 48 20 42 55 47 53 0a |ript).X.|SH BUGS.|
|00001d20| 58 4e 6f 6e 65 20 6b 6e | 6f 77 6e 20 61 74 20 74 |XNone kn|own at t|
|00001d30| 68 69 73 20 74 69 6d 65 | 2e 0a 58 2e 53 48 20 44 |his time|..X.SH D|
|00001d40| 41 54 45 0a 58 31 30 2f | 37 2f 38 38 0a 45 4e 44 |ATE.X10/|7/88.END|
|00001d50| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00001d60| 20 31 33 35 36 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1356 -n|e `wc -c|
|00001d70| 20 3c 27 63 68 61 6e 67 | 65 62 61 72 2e 31 27 60 | <'chang|ebar.1'`|
|00001d80| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00001d90| 73 68 61 72 3a 20 5c 22 | 27 63 68 61 6e 67 65 62 |shar: \"|'changeb|
|00001da0| 61 72 2e 31 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ar.1'\" |unpacked|
|00001db0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00001dc0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 63 |!.fi.# e|nd of 'c|
|00001dd0| 68 61 6e 67 65 62 61 72 | 2e 31 27 0a 66 69 0a 69 |hangebar|.1'.fi.i|
|00001de0| 66 20 74 65 73 74 20 2d | 66 20 27 63 68 62 61 72 |f test -|f 'chbar|
|00001df0| 2e 6c 65 78 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.lex' -a| "${1}" |
|00001e00| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00001e10| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00001e20| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00001e30| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 63 |isting f|ile \"'c|
|00001e40| 68 62 61 72 2e 6c 65 78 | 27 5c 22 0a 65 6c 73 65 |hbar.lex|'\".else|
|00001e50| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00001e60| 61 63 74 69 6e 67 20 5c | 22 27 63 68 62 61 72 2e |acting \|"'chbar.|
|00001e70| 6c 65 78 27 5c 22 20 5c | 28 33 36 31 35 20 63 68 |lex'\" \|(3615 ch|
|00001e80| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00001e90| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 68 62 61 72 2e |s/^X//" |>'chbar.|
|00001ea0| 6c 65 78 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |lex' <<'|END_OF_F|
|00001eb0| 49 4c 45 27 0a 58 2f 2a | 20 43 6f 6d 70 69 6c 65 |ILE'.X/*| Compile|
|00001ec0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 75 73 | this pr|ogram us|
|00001ed0| 69 6e 67 20 6c 65 78 20 | 61 6e 64 20 63 63 2c 20 |ing lex |and cc, |
|00001ee0| 6e 61 6d 65 20 74 68 65 | 20 6f 62 6a 65 63 74 20 |name the| object |
|00001ef0| 66 69 6c 65 20 27 63 68 | 62 61 72 27 0a 58 20 2a |file 'ch|bar'.X *|
|00001f00| 20 61 6e 64 20 69 6e 73 | 74 61 6c 6c 20 69 74 20 | and ins|tall it |
|00001f10| 73 6f 6d 65 77 68 65 72 | 65 20 74 68 61 74 20 74 |somewher|e that t|
|00001f20| 68 65 20 73 79 73 74 65 | 6d 20 63 61 6e 20 67 65 |he syste|m can ge|
|00001f30| 74 20 74 6f 20 69 74 20 | 75 73 69 6e 67 20 74 68 |t to it |using th|
|00001f40| 65 0a 58 20 2a 20 27 63 | 68 61 6e 67 65 62 61 72 |e.X * 'c|hangebar|
|00001f50| 27 20 73 68 65 6c 6c 20 | 73 63 72 69 70 74 2e 0a |' shell |script..|
|00001f60| 58 20 2a 2f 0a 58 25 7b | 0a 58 69 6e 74 20 73 74 |X */.X%{|.Xint st|
|00001f70| 61 74 3d 30 3b 0a 58 69 | 6e 74 20 62 61 6e 67 73 |at=0;.Xi|nt bangs|
|00001f80| 74 61 74 3d 30 3b 0a 58 | 63 68 61 72 20 74 78 74 |tat=0;.X|char txt|
|00001f90| 62 75 66 5b 32 35 36 5d | 3d 30 3b 0a 58 25 7d 0a |buf[256]|=0;.X%}.|
|00001fa0| 58 25 25 0a 58 5e 5b 5e | 2d 5c 2a 5c 6e 5c 21 5d |X%%.X^[^|-\*\n\!]|
|00001fb0| 2e 2a 24 20 20 20 20 20 | 7b 0a 58 20 20 20 20 20 |.*$ |{.X |
|00001fc0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 49 66 | | /* If|
|00001fd0| 20 61 6c 72 65 61 64 79 | 20 63 6f 75 6e 74 69 6e | already| countin|
|00001fe0| 67 20 6c 69 6e 65 73 20 | 74 68 61 74 20 68 61 76 |g lines |that hav|
|00001ff0| 65 20 65 69 74 68 65 72 | 20 61 20 27 2d 20 27 0a |e either| a '- '.|
|00002000| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002010| 20 20 2a 20 6f 72 20 61 | 20 27 21 20 27 20 6f 72 | * or a| '! ' or|
|00002020| 20 61 20 27 2a 2e 2e 2e | 27 20 69 6e 20 74 68 65 | a '*...|' in the|
|00002030| 20 66 69 72 73 74 20 63 | 6f 6c 75 6d 6e 73 2c 20 | first c|olumns, |
|00002040| 61 6e 64 20 65 6e 63 6f | 75 6e 74 65 72 0a 58 20 |and enco|unter.X |
|00002050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002060| 2a 20 61 20 6c 69 6e 65 | 20 74 68 61 74 20 64 6f |* a line| that do|
|00002070| 65 73 20 4e 4f 54 20 68 | 61 76 65 20 74 68 61 74 |es NOT h|ave that|
|00002080| 2c 20 70 75 74 20 74 68 | 65 20 63 6c 6f 73 69 6e |, put th|e closin|
|00002090| 67 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |g.X | |
|000020a0| 20 20 20 20 2a 20 5e 47 | 2e 6d 63 20 61 74 20 74 | * ^G|.mc at t|
|000020b0| 68 65 20 74 61 69 6c 20 | 6f 66 20 74 68 65 20 70 |he tail |of the p|
|000020c0| 72 65 76 69 6f 75 73 20 | 6c 69 6e 65 20 61 6e 64 |revious |line and|
|000020d0| 20 64 69 73 61 62 6c 65 | 0a 58 20 20 20 20 20 20 | disable|.X |
|000020e0| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 74 68 65 | | * the|
|000020f0| 20 69 6e 73 65 72 74 69 | 6f 6e 20 6f 66 20 74 68 | inserti|on of th|
|00002100| 65 20 2e 6d 63 20 74 69 | 6c 6c 20 74 68 65 20 66 |e .mc ti|ll the f|
|00002110| 69 72 73 74 20 6c 69 6e | 65 20 77 69 74 68 0a 58 |irst lin|e with.X|
|00002120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002130| 20 2a 20 65 69 74 68 65 | 72 20 6f 66 20 74 68 65 | * eithe|r of the|
|00002140| 20 74 77 6f 20 6d 61 72 | 6b 65 72 73 20 68 61 70 | two mar|kers hap|
|00002150| 70 65 6e 73 20 61 67 61 | 69 6e 2e 0a 58 20 20 20 |pens aga|in..X |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00002170| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002180| 20 20 20 20 20 20 69 66 | 28 73 74 61 74 20 3d 3d | if|(stat ==|
|00002190| 20 31 29 20 7b 0a 58 20 | 20 20 20 20 20 20 20 20 | 1) {.X | |
|000021a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000021b0| 72 69 6e 74 66 28 22 25 | 73 5c 30 30 37 2e 6d 63 |rintf("%|s\007.mc|
|000021c0| 5c 6e 22 2c 74 78 74 62 | 75 66 29 3b 0a 58 20 20 |\n",txtb|uf);.X |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021e0| 20 20 20 20 20 20 73 74 | 61 74 20 3d 20 30 3b 0a | st|at = 0;.|
|000021f0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002200| 20 20 20 20 20 7d 0a 58 | 20 20 20 20 20 20 20 20 | }.X| |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 75 74 73 | | puts|
|00002220| 28 79 79 74 65 78 74 29 | 3b 0a 58 20 20 20 20 20 |(yytext)|;.X |
|00002230| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 58 0a 58 | | }.X.X|
|00002240| 5e 2d 2d 2d 5c 20 2e 2a | 24 20 20 20 20 20 20 20 |^---\ .*|$ |
|00002250| 7b 20 20 20 70 75 74 73 | 28 79 79 74 65 78 74 29 |{ puts|(yytext)|
|00002260| 3b 20 20 2f 2a 20 49 66 | 20 69 6e 20 61 20 27 2d |; /* If| in a '-|
|00002270| 2d 2d 27 20 62 6c 6f 63 | 6b 20 69 6e 20 61 20 63 |--' bloc|k in a c|
|00002280| 6f 6e 74 65 78 74 20 64 | 69 66 66 2c 0a 58 20 20 |ontext d|iff,.X |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 | | * |
|000022b0| 74 68 65 6e 20 64 69 73 | 61 62 6c 65 20 65 6e 74 |then dis|able ent|
|000022c0| 72 79 20 6f 66 20 2e 6d | 63 27 73 20 69 6e 20 74 |ry of .m|c's in t|
|000022d0| 65 78 74 20 6c 69 6e 65 | 73 2e 0a 58 20 20 20 20 |ext line|s..X |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0a 58 | | */.X|
|00002300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002310| 20 20 20 20 62 61 6e 67 | 73 74 61 74 20 3d 20 30 | bang|stat = 0|
|00002320| 3b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.X | |
|00002330| 20 20 20 7d 0a 58 0a 58 | 5e 5c 2a 5c 2a 5c 2a 5c | }.X.X|^\*\*\*\|
|00002340| 20 2e 2a 24 20 20 20 20 | 7b 20 20 20 70 75 74 73 | .*$ |{ puts|
|00002350| 28 79 79 74 65 78 74 29 | 3b 20 20 2f 2a 20 49 66 |(yytext)|; /* If|
|00002360| 20 69 6e 20 61 20 27 2a | 2a 2a 27 20 62 6c 6f 63 | in a '*|**' bloc|
|00002370| 6b 20 69 6e 20 61 20 63 | 6f 6e 74 65 78 74 20 64 |k in a c|ontext d|
|00002380| 69 66 66 2c 0a 58 20 20 | 20 20 20 20 20 20 20 20 |iff,.X | |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 20 20 20 20 20 2a 20 | 74 68 65 6e 20 65 6e 61 | * |then ena|
|000023b0| 62 6c 65 20 65 6e 74 72 | 79 20 6f 66 20 2e 6d 63 |ble entr|y of .mc|
|000023c0| 27 73 20 69 6e 20 74 65 | 78 74 20 6c 69 6e 65 73 |'s in te|xt lines|
|000023d0| 2e 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |..X | |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023f0| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 20 20 20 20 | */.X | |
|00002400| 20 20 20 20 20 20 20 20 | 20 20 20 62 61 6e 67 73 | | bangs|
|00002410| 74 61 74 20 3d 20 31 3b | 0a 58 20 20 20 20 20 20 |tat = 1;|.X |
|00002420| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 58 0a 58 5e | | }.X.X^|
|00002430| 5c 2a 5c 2a 5c 2a 2e 2a | 24 09 7b 20 20 20 70 75 |\*\*\*.*|$.{ pu|
|00002440| 74 73 28 79 79 74 65 78 | 74 29 3b 0a 58 09 09 7d |ts(yytex|t);.X..}|
|00002450| 0a 58 0a 58 5e 5c 2d 5c | 20 2e 2a 24 20 20 20 20 |.X.X^\-\| .*$ |
|00002460| 20 20 20 20 7b 0a 58 20 | 20 20 20 20 20 20 20 20 | {.X | |
|00002470| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 49 66 | | /* If|
|00002480| 20 66 69 6e 64 20 61 20 | 6c 69 6e 65 20 74 68 61 | find a |line tha|
|00002490| 74 20 62 65 67 69 6e 73 | 20 22 2d 20 3c 61 6e 79 |t begins| "- <any|
|000024a0| 74 68 69 6e 67 3e 22 2c | 20 61 6e 64 20 69 74 0a |thing>",| and it.|
|000024b0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|000024c0| 20 20 20 20 20 20 2a 20 | 69 73 20 74 68 65 20 66 | * |is the f|
|000024d0| 69 72 73 74 20 6c 69 6e | 65 20 6f 66 20 69 74 73 |irst lin|e of its|
|000024e0| 20 6b 69 6e 64 2c 20 74 | 68 65 6e 20 6d 61 72 6b | kind, t|hen mark|
|000024f0| 20 69 74 2e 0a 58 20 20 | 20 20 20 20 20 20 20 20 | it..X | |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 2a 2f 0a 58 20 | | */.X |
|00002510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00002520| 66 28 73 74 61 74 20 3d | 3d 20 30 29 20 7b 0a 58 |f(stat =|= 0) {.X|
|00002530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002540| 20 20 20 20 73 70 72 69 | 6e 74 66 28 74 78 74 62 | spri|ntf(txtb|
|00002550| 75 66 2c 22 2d 20 2e 6d | 63 20 5c 5c 73 2b 32 5c |uf,"- .m|c \\s+2\|
|00002560| 5c 28 62 72 5c 5c 73 2d | 32 5c 30 30 37 25 73 22 |\(br\\s-|2\007%s"|
|00002570| 2c 26 79 79 74 65 78 74 | 5b 32 5d 29 3b 0a 58 20 |,&yytext|[2]);.X |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002590| 20 20 20 73 74 61 74 20 | 3d 20 31 3b 0a 58 20 20 | stat |= 1;.X |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025b0| 20 20 7d 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|000025c0| 20 20 20 20 20 65 6c 73 | 65 20 7b 0a 58 20 20 20 | els|e {.X |
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025e0| 20 70 75 74 73 28 74 78 | 74 62 75 66 29 3b 0a 58 | puts(tx|tbuf);.X|
|000025f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002600| 20 20 20 20 73 70 72 69 | 6e 74 66 28 74 78 74 62 | spri|ntf(txtb|
|00002610| 75 66 2c 22 25 73 22 2c | 79 79 74 65 78 74 29 3b |uf,"%s",|yytext);|
|00002620| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002630| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|00002640| 20 20 20 20 20 20 20 20 | 20 7d 0a 58 0a 58 0a 58 | | }.X.X.X|
|00002650| 0a 58 0a 58 0a 58 0a 58 | 0a 58 0a 58 5e 5c 21 5c |.X.X.X.X|.X.X^\!\|
|00002660| 20 2e 2a 24 20 20 20 20 | 20 20 20 20 7b 0a 58 20 | .*$ | {.X |
|00002670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002680| 20 20 20 2f 2a 20 49 66 | 20 66 69 6e 64 20 61 20 | /* If| find a |
|00002690| 6c 69 6e 65 20 74 68 61 | 74 20 62 65 67 69 6e 73 |line tha|t begins|
|000026a0| 20 22 21 20 3c 61 6e 79 | 74 68 69 6e 67 3e 22 2c | "! <any|thing>",|
|000026b0| 20 61 6e 64 20 69 74 0a | 58 20 20 20 20 20 20 20 | and it.|X |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 20 | | * |
|000026d0| 69 73 20 74 68 65 20 66 | 69 72 73 74 20 6c 69 6e |is the f|irst lin|
|000026e0| 65 20 6f 66 20 69 74 73 | 20 6b 69 6e 64 2c 20 74 |e of its| kind, t|
|000026f0| 68 65 6e 20 6d 61 72 6b | 20 69 74 2e 0a 58 20 20 |hen mark| it..X |
|00002700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002710| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 20 20 20 20 | */.X | |
|00002720| 20 20 20 20 20 20 20 20 | 20 69 66 28 62 61 6e 67 | | if(bang|
|00002730| 73 74 61 74 3d 3d 31 29 | 20 0a 58 20 20 20 20 20 |stat==1)| .X |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0a 58 | | {.X|
|00002750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002760| 20 20 20 20 20 20 20 20 | 69 66 28 73 74 61 74 20 | |if(stat |
|00002770| 3d 3d 20 30 29 20 7b 0a | 58 20 20 20 20 20 20 20 |== 0) {.|X |
|00002780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002790| 20 20 20 73 70 72 69 6e | 74 66 28 74 78 74 62 75 | sprin|tf(txtbu|
|000027a0| 66 2c 22 21 20 2e 6d 63 | 20 5c 5c 73 2b 32 5c 5c |f,"! .mc| \\s+2\\|
|000027b0| 28 62 72 5c 5c 73 2d 32 | 5c 30 30 37 25 73 22 2c |(br\\s-2|\007%s",|
|000027c0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 20 20 20 20 20 20 20 | 26 79 79 74 65 78 74 5b | |&yytext[|
|000027f0| 32 5d 29 3b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |2]);.X | |
|00002800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002810| 73 74 61 74 20 3d 20 31 | 3b 0a 58 20 20 20 20 20 |stat = 1|;.X |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 7d 0a 58 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|00002840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el|
|00002850| 73 65 20 7b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |se {.X | |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002870| 70 75 74 73 28 74 78 74 | 62 75 66 29 3b 0a 58 20 |puts(txt|buf);.X |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002890| 20 20 20 20 20 20 20 20 | 20 73 70 72 69 6e 74 66 | | sprintf|
|000028a0| 28 74 78 74 62 75 66 2c | 22 25 73 22 2c 79 79 74 |(txtbuf,|"%s",yyt|
|000028b0| 65 78 74 29 3b 0a 58 20 | 20 20 20 20 20 20 20 20 |ext);.X | |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028d0| 20 7d 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|000028e0| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|000028f0| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 20 | | else |
|00002900| 7b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{.X | |
|00002910| 20 20 20 20 20 20 20 70 | 75 74 73 28 79 79 74 65 | p|uts(yyte|
|00002920| 78 74 29 3b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |xt);.X | |
|00002930| 20 20 20 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 | |}.X |
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 58 5c 6e | | }.X\n|
|00002950| 20 20 09 09 7b 0a 58 20 | 20 20 20 20 20 20 20 20 | ..{.X | |
|00002960| 20 20 20 20 20 20 20 20 | 20 20 3b 0a 58 09 09 20 | | ;.X.. |
|00002970| 20 20 2f 2a 20 49 66 20 | 74 68 65 72 65 20 69 73 | /* If |there is|
|00002980| 20 6e 6f 74 68 69 6e 67 | 20 62 75 74 20 61 20 6e | nothing| but a n|
|00002990| 65 77 6c 69 6e 65 2c 20 | 64 6f 20 6e 6f 74 68 69 |ewline, |do nothi|
|000029a0| 6e 67 2c 20 62 65 63 61 | 75 73 65 0a 58 20 20 20 |ng, beca|use.X |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029c0| 20 2a 20 77 65 20 61 72 | 65 20 69 6e 73 65 72 74 | * we ar|e insert|
|000029d0| 69 6e 67 20 6f 75 72 20 | 6f 77 6e 20 6e 65 77 6c |ing our |own newl|
|000029e0| 69 6e 65 73 20 61 73 20 | 6e 65 65 64 65 64 2e 0a |ines as |needed..|
|000029f0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002a00| 20 20 20 20 20 2a 2f 0a | 58 09 09 7d 0a 58 25 25 | */.|X..}.X%%|
|00002a10| 0a 58 79 79 77 72 61 70 | 28 29 0a 58 7b 0a 58 20 |.Xyywrap|().X{.X |
|00002a20| 20 20 20 69 66 20 28 73 | 74 61 74 20 3d 3d 20 31 | if (s|tat == 1|
|00002a30| 29 0a 58 20 20 20 20 20 | 20 20 20 70 72 69 6e 74 |).X | print|
|00002a40| 66 28 22 25 73 5c 30 30 | 37 2e 6d 63 5c 6e 22 2c |f("%s\00|7.mc\n",|
|00002a50| 74 78 74 62 75 66 29 3b | 0a 58 0a 58 20 20 20 20 |txtbuf);|.X.X |
|00002a60| 72 65 74 75 72 6e 20 28 | 31 29 3b 0a 58 7d 0a 58 |return (|1);.X}.X|
|00002a70| 2f 2a 0a 58 20 20 20 20 | 54 68 69 73 20 4c 45 58 |/*.X |This LEX|
|00002a80| 20 66 69 6c 65 20 61 64 | 64 73 20 63 68 61 6e 67 | file ad|ds chang|
|00002a90| 65 20 62 61 72 73 20 74 | 6f 20 74 68 65 20 6f 75 |e bars t|o the ou|
|00002aa0| 74 70 75 74 20 6f 66 20 | 61 20 27 64 69 66 66 20 |tput of |a 'diff |
|00002ab0| 2d 63 27 0a 58 20 20 20 | 20 74 6f 20 69 6e 64 69 |-c'.X | to indi|
|00002ac0| 63 61 74 65 20 74 6f 20 | 74 68 65 20 72 65 61 64 |cate to |the read|
|00002ad0| 65 72 20 77 68 65 72 65 | 20 73 65 63 74 69 6f 6e |er where| section|
|00002ae0| 73 20 68 61 76 65 20 62 | 65 65 6e 20 61 64 64 65 |s have b|een adde|
|00002af0| 64 0a 58 20 20 20 20 28 | 6e 6f 20 68 61 6e 64 6c |d.X (|no handl|
|00002b00| 69 6e 67 20 73 6f 20 66 | 61 72 20 66 6f 72 20 6c |ing so f|ar for l|
|00002b10| 69 6e 65 73 20 74 68 61 | 74 20 68 61 76 65 20 62 |ines tha|t have b|
|00002b20| 65 65 6e 20 64 65 6c 65 | 74 65 64 29 2e 0a 58 0a |een dele|ted)..X.|
|00002b30| 58 20 20 20 20 54 68 69 | 73 20 61 6c 6c 6f 77 73 |X Thi|s allows|
|00002b40| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 65 64 69 | the use|r to edi|
|00002b50| 74 20 75 6e 64 65 72 20 | 53 43 43 53 20 74 6f 20 |t under |SCCS to |
|00002b60| 79 6f 75 72 20 68 65 61 | 72 74 27 73 20 63 6f 6e |your hea|rt's con|
|00002b70| 74 65 6e 74 2c 0a 58 20 | 20 20 20 74 68 65 6e 20 |tent,.X | then |
|00002b80| 53 43 43 53 2d 65 78 74 | 72 61 63 74 20 74 68 65 |SCCS-ext|ract the|
|00002b90| 20 6f 6c 64 20 76 65 72 | 73 69 6f 6e 20 61 6e 64 | old ver|sion and|
|00002ba0| 20 74 68 65 20 6e 65 77 | 20 76 65 72 73 69 6f 6e | the new| version|
|00002bb0| 2e 2e 2e 0a 58 20 20 20 | 20 74 68 65 6e 3a 0a 58 |....X | then:.X|
|00002bc0| 0a 58 20 20 20 20 61 2e | 20 64 69 66 66 20 2d 63 |.X a.| diff -c|
|00002bd0| 20 6f 6c 64 66 69 6c 65 | 20 6e 65 77 66 69 6c 65 | oldfile| newfile|
|00002be0| 20 3e 20 66 69 6c 65 64 | 69 66 66 73 0a 58 20 20 | > filed|iffs.X |
|00002bf0| 20 20 62 2e 20 61 64 64 | 63 68 67 62 61 72 73 20 | b. add|chgbars |
|00002c00| 3c 20 66 69 6c 65 64 69 | 66 66 73 20 3e 20 66 69 |< filedi|ffs > fi|
|00002c10| 6c 65 6d 6f 64 73 0a 58 | 20 20 20 20 63 2e 20 70 |lemods.X| c. p|
|00002c20| 61 74 63 68 20 3c 20 66 | 69 6c 65 6d 6f 64 73 0a |atch < f|ilemods.|
|00002c30| 58 20 20 20 20 0a 58 20 | 20 20 20 23 20 6f 6c 64 |X .X | # old|
|00002c40| 66 69 6c 65 20 69 73 20 | 72 65 6e 61 6d 65 64 20 |file is |renamed |
|00002c50| 74 6f 20 6f 6c 64 66 69 | 6c 65 2e 6f 72 69 67 0a |to oldfi|le.orig.|
|00002c60| 58 20 20 20 20 23 20 6f | 6c 64 66 69 6c 65 20 62 |X # o|ldfile b|
|00002c70| 65 63 6f 6d 65 73 20 6e | 65 77 66 69 6c 65 2c 20 |ecomes n|ewfile, |
|00002c80| 62 75 74 20 77 69 74 68 | 20 63 68 61 6e 67 65 20 |but with| change |
|00002c90| 62 61 72 73 20 69 6e 73 | 74 61 6c 6c 65 64 0a 58 |bars ins|talled.X|
|00002ca0| 0a 58 20 20 20 20 64 2e | 20 74 72 20 27 5c 30 30 |.X d.| tr '\00|
|00002cb0| 37 27 20 27 5c 30 31 32 | 27 20 6f 6c 64 66 69 6c |7' '\012|' oldfil|
|00002cc0| 65 20 3e 20 66 69 6c 65 | 2e 74 6f 2e 70 72 69 6e |e > file|.to.prin|
|00002cd0| 74 0a 58 0a 58 20 20 20 | 20 23 20 63 68 61 6e 67 |t.X.X | # chang|
|00002ce0| 65 20 62 61 72 73 20 68 | 61 76 65 20 5e 47 20 69 |e bars h|ave ^G i|
|00002cf0| 6e 73 74 61 6c 6c 65 64 | 2c 20 68 61 73 20 74 6f |nstalled|, has to|
|00002d00| 20 62 65 20 63 68 61 6e | 67 65 64 20 69 6e 74 6f | be chan|ged into|
|00002d10| 20 61 20 5e 4a 3b 0a 58 | 20 20 20 20 23 20 6d 61 | a ^J;.X| # ma|
|00002d20| 6b 65 73 20 70 61 74 63 | 68 20 70 72 6f 67 72 61 |kes patc|h progra|
|00002d30| 6d 20 77 6f 72 6b 20 75 | 6e 6d 6f 64 69 66 69 65 |m work u|nmodifie|
|00002d40| 64 2e 0a 58 0a 58 2a 2f | 0a 45 4e 44 5f 4f 46 5f |d..X.X*/|.END_OF_|
|00002d50| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 33 36 31 |FILE.if |test 361|
|00002d60| 35 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 63 |5 -ne `w|c -c <'c|
|00002d70| 68 62 61 72 2e 6c 65 78 | 27 60 3b 20 74 68 65 6e |hbar.lex|'`; then|
|00002d80| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00002d90| 5c 22 27 63 68 62 61 72 | 2e 6c 65 78 27 5c 22 20 |\"'chbar|.lex'\" |
|00002da0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00002db0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00002dc0| 6e 64 20 6f 66 20 27 63 | 68 62 61 72 2e 6c 65 78 |nd of 'c|hbar.lex|
|00002dd0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00002de0| 27 64 65 6c 65 74 65 2e | 6e 6f 74 65 27 20 2d 61 |'delete.|note' -a|
|00002df0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00002e00| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00002e10| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00002e20| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00002e30| 69 6c 65 20 5c 22 27 64 | 65 6c 65 74 65 2e 6e 6f |ile \"'d|elete.no|
|00002e40| 74 65 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |te'\".el|se.echo |
|00002e50| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00002e60| 20 5c 22 27 64 65 6c 65 | 74 65 2e 6e 6f 74 65 27 | \"'dele|te.note'|
|00002e70| 5c 22 20 5c 28 36 33 34 | 20 63 68 61 72 61 63 74 |\" \(634| charact|
|00002e80| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00002e90| 2f 22 20 3e 27 64 65 6c | 65 74 65 2e 6e 6f 74 65 |/" >'del|ete.note|
|00002ea0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00002eb0| 27 0a 58 4d 41 52 4b 49 | 4e 47 20 44 45 4c 45 54 |'.XMARKI|NG DELET|
|00002ec0| 49 4f 4e 53 20 54 4f 20 | 54 48 45 20 54 45 58 54 |IONS TO |THE TEXT|
|00002ed0| 0a 58 0a 58 54 68 65 72 | 65 20 69 73 20 6e 6f 20 |.X.XTher|e is no |
|00002ee0| 45 41 53 59 20 77 61 79 | 20 49 20 63 61 6e 20 66 |EASY way| I can f|
|00002ef0| 69 6e 64 20 74 6f 20 61 | 70 70 72 6f 70 72 69 61 |ind to a|ppropria|
|00002f00| 74 65 6c 79 20 6d 61 72 | 6b 20 44 45 4c 45 54 49 |tely mar|k DELETI|
|00002f10| 4f 4e 53 20 74 6f 0a 58 | 61 20 66 69 6c 65 20 77 |ONS to.X|a file w|
|00002f20| 69 74 68 20 63 68 61 6e | 67 65 20 62 61 72 73 2e |ith chan|ge bars.|
|00002f30| 20 20 45 69 74 68 65 72 | 20 64 6f 20 64 65 6c 65 | Either| do dele|
|00002f40| 74 69 6f 6e 73 20 6d 61 | 6e 75 61 6c 6c 79 2c 20 |tions ma|nually, |
|00002f50| 6f 72 20 72 75 6e 20 74 | 68 69 73 0a 58 70 72 6f |or run t|his.Xpro|
|00002f60| 67 72 61 6d 20 69 6e 20 | 72 65 76 65 72 73 65 3a |gram in |reverse:|
|00002f70| 0a 58 0a 58 09 63 68 61 | 6e 67 65 62 61 72 20 4e |.X.X.cha|ngebar N|
|00002f80| 45 57 20 4f 4c 44 0a 58 | 0a 58 54 68 69 73 20 77 |EW OLD.X|.XThis w|
|00002f90| 69 6c 6c 20 63 72 65 61 | 74 65 20 61 20 66 69 6c |ill crea|te a fil|
|00002fa0| 65 20 6e 61 6d 65 64 20 | 4f 4c 44 2e 63 68 62 61 |e named |OLD.chba|
|00002fb0| 72 2c 20 77 68 69 63 68 | 20 77 69 6c 6c 20 62 65 |r, which| will be|
|00002fc0| 20 74 68 65 20 65 78 61 | 63 74 0a 58 65 71 75 69 | the exa|ct.Xequi|
|00002fd0| 76 61 6c 65 6e 74 20 6f | 66 20 74 68 65 20 4f 4c |valent o|f the OL|
|00002fe0| 44 20 66 69 6c 65 2c 20 | 62 75 74 20 77 69 74 68 |D file, |but with|
|00002ff0| 20 63 68 61 6e 67 65 20 | 62 61 72 73 20 6d 61 72 | change |bars mar|
|00003000| 6b 69 6e 67 20 74 68 65 | 20 64 65 6c 65 74 65 64 |king the| deleted|
|00003010| 0a 58 74 65 78 74 2e 20 | 20 59 6f 75 20 63 6f 75 |.Xtext. | You cou|
|00003020| 6c 64 20 74 68 65 72 65 | 66 6f 72 65 20 70 72 69 |ld there|fore pri|
|00003030| 6e 74 20 61 6e 20 4e 45 | 57 2e 63 68 62 61 72 20 |nt an NE|W.chbar |
|00003040| 28 65 71 75 61 6c 20 74 | 6f 20 74 68 65 20 4e 45 |(equal t|o the NE|
|00003050| 57 20 66 69 6c 65 0a 58 | 77 69 74 68 20 63 68 61 |W file.X|with cha|
|00003060| 6e 67 65 20 62 61 72 73 | 20 69 6e 64 69 63 61 74 |nge bars| indicat|
|00003070| 69 6e 67 20 61 64 64 65 | 64 20 74 65 78 74 29 20 |ing adde|d text) |
|00003080| 61 6e 64 20 4f 4c 44 2e | 63 68 62 61 72 20 28 65 |and OLD.|chbar (e|
|00003090| 71 75 61 6c 20 74 6f 20 | 74 68 65 0a 58 4f 4c 44 |qual to |the.XOLD|
|000030a0| 20 66 69 6c 65 20 77 69 | 74 68 20 64 65 6c 65 74 | file wi|th delet|
|000030b0| 65 64 20 74 65 78 74 20 | 68 69 67 68 6c 69 67 68 |ed text |highligh|
|000030c0| 74 65 64 29 20 66 6f 72 | 20 79 6f 75 72 20 75 73 |ted) for| your us|
|000030d0| 65 72 73 20 61 6e 64 20 | 74 68 65 79 27 64 0a 58 |ers and |they'd.X|
|000030e0| 68 61 76 65 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |have a c|omplete |
|000030f0| 70 69 63 74 75 72 65 20 | 73 68 6f 77 69 6e 67 20 |picture |showing |
|00003100| 77 68 61 74 20 79 6f 75 | 20 64 69 64 20 74 6f 20 |what you| did to |
|00003110| 74 68 65 20 66 69 6c 65 | 73 20 62 65 74 77 65 65 |the file|s betwee|
|00003120| 6e 0a 58 69 73 73 75 65 | 73 20 6f 66 20 74 68 65 |n.Xissue|s of the|
|00003130| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 45 4e 44 5f 4f | documen|t..END_O|
|00003140| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 36 |F_FILE.i|f test 6|
|00003150| 33 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |34 -ne `|wc -c <'|
|00003160| 64 65 6c 65 74 65 2e 6e | 6f 74 65 27 60 3b 20 74 |delete.n|ote'`; t|
|00003170| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003180| 72 3a 20 5c 22 27 64 65 | 6c 65 74 65 2e 6e 6f 74 |r: \"'de|lete.not|
|00003190| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|000031a0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000031b0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 64 65 6c 65 |i.# end |of 'dele|
|000031c0| 74 65 2e 6e 6f 74 65 27 | 0a 66 69 0a 65 63 68 6f |te.note'|.fi.echo|
|000031d0| 20 73 68 61 72 3a 20 45 | 6e 64 20 6f 66 20 73 68 | shar: E|nd of sh|
|000031e0| 65 6c 6c 20 61 72 63 68 | 69 76 65 2e 0a 65 78 69 |ell arch|ive..exi|
|000031f0| 74 20 30 0a | |t 0. | |
+--------+-------------------------+-------------------------+--------+--------+