home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: change.bar
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
| FileStar/2 toolBar (other/fileStar2ToolBar)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 77 75 | 67 61 74 65 21 77 75 63 |Path: wu|gate!wuc|
|00000010| 73 31 21 75 75 6e 65 74 | 21 62 62 6e 2e 63 6f 6d |s1!uunet|!bbn.com|
|00000020| 21 72 73 61 6c 7a 0a 46 | 72 6f 6d 3a 20 72 73 61 |!rsalz.F|rom: rsa|
|00000030| 6c 7a 40 75 75 6e 65 74 | 2e 75 75 2e 6e 65 74 20 |lz@uunet|.uu.net |
|00000040| 28 52 69 63 68 20 53 61 | 6c 7a 29 0a 4e 65 77 73 |(Rich Sa|lz).News|
|00000050| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000060| 72 63 65 73 2e 75 6e 69 | 78 2c 63 6f 6d 70 2e 74 |rces.uni|x,comp.t|
|00000070| 65 78 74 0a 53 75 62 6a | 65 63 74 3a 20 76 31 38 |ext.Subj|ect: v18|
|00000080| 69 30 31 38 3a 20 20 47 | 65 6e 65 72 61 74 65 20 |i018: G|enerate |
|00000090| 63 68 61 6e 67 65 62 61 | 72 73 20 69 6e 20 3f 72 |changeba|rs in ?r|
|000000a0| 6f 66 66 20 64 6f 63 73 | 20 75 73 69 6e 67 20 70 |off docs| using p|
|000000b0| 61 74 63 68 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |atch.Mes|sage-ID:|
|000000c0| 20 3c 31 35 35 34 40 70 | 61 70 61 79 61 2e 62 62 | <1554@p|apaya.bb|
|000000d0| 6e 2e 63 6f 6d 3e 0a 44 | 61 74 65 3a 20 31 33 20 |n.com>.D|ate: 13 |
|000000e0| 4d 61 72 20 38 39 20 32 | 33 3a 32 31 3a 32 35 20 |Mar 89 2|3:21:25 |
|000000f0| 47 4d 54 0a 4c 69 6e 65 | 73 3a 20 33 38 36 0a 41 |GMT.Line|s: 386.A|
|00000100| 70 70 72 6f 76 65 64 3a | 20 72 73 61 6c 7a 40 75 |pproved:| rsalz@u|
|00000110| 75 6e 65 74 2e 55 55 2e | 4e 45 54 0a 0a 53 75 62 |unet.UU.|NET..Sub|
|00000120| 6d 69 74 74 65 64 2d 62 | 79 3a 20 72 61 70 40 61 |mitted-b|y: rap@a|
|00000130| 72 64 65 6e 74 2e 63 6f | 6d 20 28 52 6f 62 20 50 |rdent.co|m (Rob P|
|00000140| 65 63 6b 29 0a 50 6f 73 | 74 69 6e 67 2d 6e 75 6d |eck).Pos|ting-num|
|00000150| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 31 38 2c 20 |ber: Vol|ume 18, |
|00000160| 49 73 73 75 65 20 31 38 | 0a 41 72 63 68 69 76 65 |Issue 18|.Archive|
|00000170| 2d 6e 61 6d 65 3a 20 63 | 68 61 6e 67 65 62 61 72 |-name: c|hangebar|
|00000180| 0a 0a 5b 20 20 54 68 69 | 73 20 69 73 20 74 68 65 |..[ Thi|s is the|
|00000190| 20 62 65 73 74 20 6f 66 | 20 74 68 65 20 73 65 76 | best of| the sev|
|000001a0| 65 72 61 6c 20 6f 66 20 | 74 68 65 73 65 20 74 68 |eral of |these th|
|000001b0| 61 74 20 49 27 76 65 20 | 73 65 65 6e 2e 20 20 2d |at I've |seen. -|
|000001c0| 72 24 20 5d 0a 0a 61 20 | 70 72 6f 67 72 61 6d 20 |r$ ]..a |program |
|000001d0| 66 6f 72 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |for auto|maticall|
|000001e0| 79 20 61 64 64 69 6e 67 | 20 63 68 61 6e 67 65 2d |y adding| change-|
|000001f0| 62 61 72 73 20 74 6f 20 | 6e 72 6f 66 66 2f 74 72 |bars to |nroff/tr|
|00000200| 6f 66 66 0a 64 6f 63 75 | 6d 65 6e 74 73 2e 20 20 |off.docu|ments. |
|00000210| 53 65 65 20 74 68 65 20 | 43 4f 4e 54 45 4e 54 53 |See the |CONTENTS|
|00000220| 20 66 69 6c 65 20 61 6e | 64 20 74 68 65 20 61 63 | file an|d the ac|
|00000230| 63 6f 6d 70 61 6e 79 69 | 6e 67 20 6d 61 6e 2d 70 |companyi|ng man-p|
|00000240| 61 67 65 73 0a 66 6f 72 | 20 6d 6f 72 65 20 69 6e |ages.for| more in|
|00000250| 66 6f 72 6d 61 74 69 6f | 6e 2e 20 20 4e 4f 54 45 |formatio|n. NOTE|
|00000260| 3a 20 52 45 51 55 49 52 | 45 53 20 4c 61 72 72 79 |: REQUIR|ES Larry|
|00000270| 20 57 61 6c 6c 27 73 20 | 27 70 61 74 63 68 27 20 | Wall's |'patch' |
|00000280| 70 72 6f 67 72 61 6d 2e | 0a 0a 52 6f 62 20 50 65 |program.|..Rob Pe|
|00000290| 63 6b 0a 41 72 64 65 6e | 74 20 43 6f 6d 70 75 74 |ck.Arden|t Comput|
|000002a0| 65 72 0a 09 09 09 09 09 | 09 09 20 0a 23 21 20 2f |er......|.. .#! /|
|000002b0| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|000002c0| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|000002d0| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|000002e0| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|000002f0| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|00000300| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|00000310| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|00000320| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|00000330| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|00000340| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|00000350| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|00000360| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|00000370| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|00000380| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000390| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|000003a0| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|000003b0| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|000003c0| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|000003d0| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|000003e0| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|000003f0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|00000400| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|00000410| 09 22 45 6e 64 20 6f 66 | 20 73 68 65 6c 6c 20 61 |."End of| shell a|
|00000420| 72 63 68 69 76 65 2e 22 | 0a 23 20 43 6f 6e 74 65 |rchive."|.# Conte|
|00000430| 6e 74 73 3a 20 20 43 4f | 4e 54 45 4e 54 53 20 52 |nts: CO|NTENTS R|
|00000440| 45 41 44 4d 45 20 63 68 | 61 6e 67 65 62 61 72 20 |EADME ch|angebar |
|00000450| 63 68 61 6e 67 65 62 61 | 72 2e 31 20 63 68 62 61 |changeba|r.1 chba|
|00000460| 72 2e 6c 65 78 0a 23 20 | 20 20 64 65 6c 65 74 65 |r.lex.# | delete|
|00000470| 2e 6e 6f 74 65 0a 23 20 | 57 72 61 70 70 65 64 20 |.note.# |Wrapped |
|00000480| 62 79 20 72 73 61 6c 7a | 40 70 61 70 61 79 61 2e |by rsalz|@papaya.|
|00000490| 62 62 6e 2e 63 6f 6d 20 | 6f 6e 20 4d 6f 6e 20 4d |bbn.com |on Mon M|
|000004a0| 61 72 20 31 33 20 31 38 | 3a 32 30 3a 30 32 20 31 |ar 13 18|:20:02 1|
|000004b0| 39 38 39 0a 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |989.PATH|=/bin:/u|
|000004c0| 73 72 2f 62 69 6e 3a 2f | 75 73 72 2f 75 63 62 20 |sr/bin:/|usr/ucb |
|000004d0| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 69 66 |; export| PATH.if|
|000004e0| 20 74 65 73 74 20 2d 66 | 20 27 43 4f 4e 54 45 4e | test -f| 'CONTEN|
|000004f0| 54 53 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |TS' -a "|${1}" !=|
|00000500| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00000510| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00000520| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00000530| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 43 4f 4e |ting fil|e \"'CON|
|00000540| 54 45 4e 54 53 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |TENTS'\"|.else.ec|
|00000550| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00000560| 69 6e 67 20 5c 22 27 43 | 4f 4e 54 45 4e 54 53 27 |ing \"'C|ONTENTS'|
|00000570| 5c 22 20 5c 28 31 35 36 | 35 20 63 68 61 72 61 63 |\" \(156|5 charac|
|00000580| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00000590| 2f 2f 22 20 3e 27 43 4f | 4e 54 45 4e 54 53 27 20 |//" >'CO|NTENTS' |
|000005a0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000005b0| 58 54 68 65 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |XThe she|ll scrip|
|000005c0| 74 20 27 63 68 61 6e 67 | 65 62 61 72 27 20 75 73 |t 'chang|ebar' us|
|000005d0| 65 73 20 4c 61 72 72 79 | 20 57 61 6c 6c 27 73 20 |es Larry| Wall's |
|000005e0| 27 70 61 74 63 68 27 20 | 70 72 6f 67 72 61 6d 0a |'patch' |program.|
|000005f0| 58 74 6f 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |Xto auto|maticall|
|00000600| 79 20 69 6e 73 74 61 6c | 6c 20 22 63 68 61 6e 67 |y instal|l "chang|
|00000610| 65 2d 62 61 72 73 22 20 | 69 6e 74 6f 20 61 6e 20 |e-bars" |into an |
|00000620| 6e 72 6f 66 66 2f 74 72 | 6f 66 66 20 64 6f 63 75 |nroff/tr|off docu|
|00000630| 6d 65 6e 74 2e 0a 58 54 | 68 65 20 6f 75 74 70 75 |ment..XT|he outpu|
|00000640| 74 20 6f 66 20 61 20 63 | 6f 6e 74 65 78 74 20 64 |t of a c|ontext d|
|00000650| 69 66 66 20 69 73 20 6d | 6f 64 69 66 69 65 64 20 |iff is m|odified |
|00000660| 62 79 20 61 20 6c 65 78 | 2d 67 65 6e 65 72 61 74 |by a lex|-generat|
|00000670| 65 64 20 63 20 70 72 6f | 67 72 61 6d 0a 58 74 6f |ed c pro|gram.Xto|
|00000680| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 20 74 68 65 | incorpo|rate the|
|00000690| 20 63 68 61 6e 67 65 62 | 61 72 73 20 61 73 20 74 | changeb|ars as t|
|000006a0| 68 6f 75 67 68 20 74 68 | 65 79 20 61 72 65 20 70 |hough th|ey are p|
|000006b0| 61 72 74 20 6f 66 20 74 | 68 65 20 64 69 66 66 65 |art of t|he diffe|
|000006c0| 72 65 6e 63 65 73 0a 58 | 62 65 74 77 65 65 6e 20 |rences.X|between |
|000006d0| 74 68 65 20 74 77 6f 20 | 66 69 6c 65 73 20 69 6e |the two |files in|
|000006e0| 20 74 68 65 20 66 69 72 | 73 74 20 70 6c 61 63 65 | the fir|st place|
|000006f0| 2e 20 20 54 68 65 6e 20 | 77 68 65 6e 20 70 61 74 |. Then |when pat|
|00000700| 63 68 20 72 75 6e 73 2c | 20 69 74 0a 58 61 64 64 |ch runs,| it.Xadd|
|00000710| 73 20 74 68 65 20 63 68 | 61 6e 67 65 20 62 61 72 |s the ch|ange bar|
|00000720| 73 20 74 6f 20 74 68 65 | 20 74 65 78 74 2e 20 20 |s to the| text. |
|00000730| 41 66 74 65 72 20 74 68 | 65 20 70 61 74 63 68 20 |After th|e patch |
|00000740| 70 72 6f 63 65 73 73 69 | 6e 67 2c 20 6f 6e 65 20 |processi|ng, one |
|00000750| 6d 6f 72 65 0a 58 70 6f | 73 74 2d 70 72 6f 63 65 |more.Xpo|st-proce|
|00000760| 73 73 69 6e 67 20 6f 70 | 65 72 61 74 69 6f 6e 20 |ssing op|eration |
|00000770| 69 73 20 70 65 72 66 6f | 72 6d 65 64 20 74 6f 20 |is perfo|rmed to |
|00000780| 61 64 64 20 6c 69 6e 65 | 20 66 65 65 64 73 20 74 |add line| feeds t|
|00000790| 6f 20 74 68 65 20 66 69 | 6e 61 6c 0a 58 74 65 78 |o the fi|nal.Xtex|
|000007a0| 74 2c 20 72 65 70 6c 61 | 63 69 6e 67 20 5e 47 20 |t, repla|cing ^G |
|000007b0| 63 68 61 72 61 63 74 65 | 72 73 20 74 68 61 74 20 |characte|rs that |
|000007c0| 77 65 72 65 20 69 6e 73 | 74 61 6c 6c 65 64 20 73 |were ins|talled s|
|000007d0| 6f 20 74 68 61 74 20 70 | 61 74 63 68 20 77 6f 75 |o that p|atch wou|
|000007e0| 6c 64 0a 58 62 65 20 61 | 62 6c 65 20 74 6f 20 72 |ld.Xbe a|ble to r|
|000007f0| 75 6e 20 65 6e 74 69 72 | 65 6c 79 20 75 6e 6d 6f |un entir|ely unmo|
|00000800| 64 69 66 69 65 64 2e 0a | 58 0a 58 4d 79 20 74 68 |dified..|X.XMy th|
|00000810| 61 6e 6b 73 20 74 6f 20 | 4c 61 72 72 79 20 57 61 |anks to |Larry Wa|
|00000820| 6c 6c 20 66 6f 72 20 63 | 72 65 61 74 69 6e 67 20 |ll for c|reating |
|00000830| 27 70 61 74 63 68 27 20 | 69 6e 20 74 68 65 20 66 |'patch' |in the f|
|00000840| 69 72 73 74 20 70 6c 61 | 63 65 2e 0a 58 54 68 69 |irst pla|ce..XThi|
|00000850| 73 20 70 72 6f 67 72 61 | 6d 20 77 61 73 20 70 72 |s progra|m was pr|
|00000860| 6f 6d 70 74 65 64 20 62 | 79 20 61 20 72 65 71 75 |ompted b|y a requ|
|00000870| 65 73 74 20 62 79 20 73 | 6f 6d 65 20 6f 66 20 6d |est by s|ome of m|
|00000880| 79 20 65 6e 67 69 6e 65 | 65 72 73 20 77 68 6f 0a |y engine|ers who.|
|00000890| 58 77 61 6e 74 65 64 20 | 74 6f 20 62 65 20 61 62 |Xwanted |to be ab|
|000008a0| 6c 65 20 74 6f 20 22 75 | 73 65 20 53 43 43 53 20 |le to "u|se SCCS |
|000008b0| 74 6f 20 65 64 69 74 20 | 74 6f 20 6d 79 20 68 65 |to edit |to my he|
|000008c0| 61 72 74 27 73 20 63 6f | 6e 74 65 6e 74 2c 20 74 |art's co|ntent, t|
|000008d0| 68 65 6e 0a 58 77 68 65 | 6e 20 66 69 6e 61 6c 6c |hen.Xwhe|n finall|
|000008e0| 79 20 72 65 61 64 79 20 | 74 6f 20 72 65 69 73 73 |y ready |to reiss|
|000008f0| 75 65 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 2c |ue the d|ocument,|
|00000900| 20 68 61 76 65 20 74 68 | 65 20 63 68 61 6e 67 65 | have th|e change|
|00000910| 20 62 61 72 73 0a 58 69 | 6e 73 74 61 6c 6c 65 64 | bars.Xi|nstalled|
|00000920| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 2e 22 | automat|ically."|
|00000930| 20 20 49 74 20 73 65 65 | 6d 73 20 74 6f 20 77 6f | It see|ms to wo|
|00000940| 72 6b 2c 20 73 6f 20 68 | 65 72 65 20 69 74 20 69 |rk, so h|ere it i|
|00000950| 73 2e 20 20 49 66 0a 58 | 61 6e 79 6f 6e 65 20 6d |s. If.X|anyone m|
|00000960| 61 6b 65 73 20 61 6e 79 | 20 63 68 61 6e 67 65 73 |akes any| changes|
|00000970| 2c 20 49 20 77 6f 75 6c | 64 20 6c 69 6b 65 20 74 |, I woul|d like t|
|00000980| 6f 20 68 65 61 72 20 61 | 62 6f 75 74 20 74 68 65 |o hear a|bout the|
|00000990| 6d 3b 20 68 6f 70 65 20 | 69 74 0a 58 68 65 6c 70 |m; hope |it.Xhelp|
|000009a0| 73 20 61 20 66 65 77 20 | 66 6f 6c 6b 73 2e 0a 58 |s a few |folks..X|
|000009b0| 0a 58 52 65 6c 65 61 73 | 65 64 20 74 6f 20 74 68 |.XReleas|ed to th|
|000009c0| 65 20 70 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 2c |e public| domain,|
|000009d0| 20 75 6e 73 75 70 70 6f | 72 74 65 64 2c 20 64 6f | unsuppo|rted, do|
|000009e0| 20 77 69 74 68 20 69 74 | 20 61 73 20 79 6f 75 20 | with it| as you |
|000009f0| 77 69 73 68 2e 0a 58 0a | 58 54 68 65 20 66 69 6c |wish..X.|XThe fil|
|00000a00| 65 73 20 63 6f 6e 74 61 | 69 6e 65 64 20 68 65 72 |es conta|ined her|
|00000a10| 65 20 61 72 65 3a 0a 58 | 09 63 68 61 6e 67 65 62 |e are:.X|.changeb|
|00000a20| 61 72 20 2d 20 61 20 73 | 68 65 6c 6c 20 73 63 72 |ar - a s|hell scr|
|00000a30| 69 70 74 0a 58 09 63 68 | 62 61 72 2e 6c 65 78 20 |ipt.X.ch|bar.lex |
|00000a40| 2d 20 74 68 65 20 6c 65 | 78 20 73 63 72 69 70 74 |- the le|x script|
|00000a50| 20 74 68 61 74 20 63 6f | 6d 70 69 6c 65 73 20 69 | that co|mpiles i|
|00000a60| 6e 74 6f 20 61 0a 58 09 | 09 20 20 20 20 63 6f 6e |nto a.X.|. con|
|00000a70| 74 65 78 74 2d 64 69 66 | 66 20 65 78 61 6d 69 6e |text-dif|f examin|
|00000a80| 65 72 2f 6d 6f 64 69 66 | 69 65 72 20 61 73 20 61 |er/modif|ier as a|
|00000a90| 0a 58 09 09 20 20 20 20 | 70 72 65 70 72 6f 63 65 |.X.. |preproce|
|00000aa0| 73 73 69 6e 67 20 73 74 | 65 70 20 62 65 66 6f 72 |ssing st|ep befor|
|00000ab0| 65 20 70 61 74 63 68 20 | 69 73 20 75 73 65 64 2e |e patch |is used.|
|00000ac0| 0a 58 09 63 68 62 61 72 | 2e 31 20 20 20 2d 20 74 |.X.chbar|.1 - t|
|00000ad0| 68 65 20 6d 61 6e 20 70 | 61 67 65 20 74 68 61 74 |he man p|age that|
|00000ae0| 20 65 78 70 6c 61 69 6e | 73 20 63 68 62 61 72 2e | explain|s chbar.|
|00000af0| 6c 65 78 0a 58 09 63 68 | 61 6e 67 65 62 61 72 2e |lex.X.ch|angebar.|
|00000b00| 31 20 2d 20 74 68 65 20 | 6d 61 6e 20 70 61 67 65 |1 - the |man page|
|00000b10| 20 66 6f 72 20 74 68 65 | 20 63 68 61 6e 67 65 62 | for the| changeb|
|00000b20| 61 72 20 73 63 72 69 70 | 74 2e 0a 58 09 09 20 20 |ar scrip|t..X.. |
|00000b30| 20 20 20 20 54 68 65 20 | 46 49 4c 45 53 20 69 74 | The |FILES it|
|00000b40| 65 6d 20 77 69 6c 6c 20 | 68 61 76 65 20 74 6f 20 |em will |have to |
|00000b50| 62 65 20 6d 6f 64 69 66 | 69 65 64 0a 58 09 09 20 |be modif|ied.X.. |
|00000b60| 20 20 20 20 20 64 65 70 | 65 6e 64 69 6e 67 20 6f | dep|ending o|
|00000b70| 6e 20 77 68 65 72 65 20 | 6f 6e 20 79 6f 75 72 20 |n where |on your |
|00000b80| 6f 77 6e 20 73 79 73 74 | 65 6d 0a 58 09 09 20 20 |own syst|em.X.. |
|00000b90| 20 20 20 20 79 6f 75 20 | 69 6e 73 74 61 6c 6c 20 | you |install |
|00000ba0| 74 68 69 6e 67 73 2e 0a | 58 0a 58 52 6f 62 20 50 |things..|X.XRob P|
|00000bb0| 65 63 6b 09 41 72 64 65 | 6e 74 20 43 6f 6d 70 75 |eck.Arde|nt Compu|
|00000bc0| 74 65 72 2c 20 38 38 30 | 20 57 2e 20 4d 61 75 64 |ter, 880| W. Maud|
|00000bd0| 65 20 41 76 65 2c 20 53 | 75 6e 6e 79 76 61 6c 65 |e Ave, S|unnyvale|
|00000be0| 2c 20 43 61 2e 20 39 34 | 30 38 36 0a 58 0a 45 4e |, Ca. 94|086.X.EN|
|00000bf0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00000c00| 74 20 31 35 36 35 20 2d | 6e 65 20 60 77 63 20 2d |t 1565 -|ne `wc -|
|00000c10| 63 20 3c 27 43 4f 4e 54 | 45 4e 54 53 27 60 3b 20 |c <'CONT|ENTS'`; |
|00000c20| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00000c30| 61 72 3a 20 5c 22 27 43 | 4f 4e 54 45 4e 54 53 27 |ar: \"'C|ONTENTS'|
|00000c40| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00000c50| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00000c60| 23 20 65 6e 64 20 6f 66 | 20 27 43 4f 4e 54 45 4e |# end of| 'CONTEN|
|00000c70| 54 53 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |TS'.fi.i|f test -|
|00000c80| 66 20 27 52 45 41 44 4d | 45 27 20 2d 61 20 22 24 |f 'READM|E' -a "$|
|00000c90| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00000ca0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00000cb0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00000cc0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00000cd0| 20 5c 22 27 52 45 41 44 | 4d 45 27 5c 22 0a 65 6c | \"'READ|ME'\".el|
|00000ce0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00000cf0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 52 45 41 44 |tracting| \"'READ|
|00000d00| 4d 45 27 5c 22 20 5c 28 | 36 33 31 20 63 68 61 72 |ME'\" \(|631 char|
|00000d10| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00000d20| 5e 58 2f 2f 22 20 3e 27 | 52 45 41 44 4d 45 27 20 |^X//" >'|README' |
|00000d30| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00000d40| 58 43 68 61 6e 67 65 62 | 61 72 20 6f 6e 6c 79 20 |XChangeb|ar only |
|00000d50| 77 6f 72 6b 73 20 77 69 | 74 68 20 66 69 6c 65 73 |works wi|th files|
|00000d60| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00000d70| 64 69 72 65 63 74 6f 72 | 79 2e 20 20 46 6f 72 20 |director|y. For |
|00000d80| 65 78 61 6d 70 6c 65 2c | 0a 58 0a 58 09 63 68 61 |example,|.X.X.cha|
|00000d90| 6e 67 65 62 61 72 20 66 | 6f 6f 31 20 66 6f 6f 32 |ngebar f|oo1 foo2|
|00000da0| 0a 58 0a 58 77 6f 72 6b | 73 20 66 69 6e 65 2c 20 |.X.Xwork|s fine, |
|00000db0| 62 75 74 3a 0a 58 0a 58 | 09 63 68 61 6e 67 65 62 |but:.X.X|.changeb|
|00000dc0| 61 72 20 2f 74 6d 70 2f | 66 6f 6f 31 20 2f 6f 74 |ar /tmp/|foo1 /ot|
|00000dd0| 68 65 72 70 61 74 68 2f | 66 6f 6f 32 0a 58 0a 58 |herpath/|foo2.X.X|
|00000de0| 64 6f 65 73 20 6e 6f 74 | 20 77 6f 72 6b 2e 20 20 |does not| work. |
|00000df0| 49 20 62 65 6c 69 65 76 | 65 20 74 68 61 74 20 70 |I believ|e that p|
|00000e00| 61 74 63 68 20 69 73 20 | 68 61 76 69 6e 67 20 61 |atch is |having a|
|00000e10| 20 70 72 6f 62 6c 65 6d | 20 77 69 74 68 20 70 61 | problem| with pa|
|00000e20| 74 68 73 2e 0a 58 0a 58 | 53 6f 20 74 68 69 73 20 |ths..X.X|So this |
|00000e30| 69 73 20 6a 75 73 74 20 | 61 20 71 75 69 63 6b 20 |is just |a quick |
|00000e40| 77 61 72 6e 69 6e 67 20 | 74 6f 20 75 73 65 72 73 |warning |to users|
|00000e50| 20 74 68 61 74 20 74 68 | 69 73 20 6c 69 6d 69 74 | that th|is limit|
|00000e60| 61 74 69 6f 6e 20 65 78 | 69 73 74 73 2e 0a 58 49 |ation ex|ists..XI|
|00000e70| 20 64 6f 20 6e 6f 74 20 | 70 6c 61 6e 20 74 6f 20 | do not |plan to |
|00000e80| 66 69 78 20 69 74 2c 20 | 68 6f 77 65 76 65 72 20 |fix it, |however |
|00000e90| 61 20 75 73 65 72 20 77 | 68 6f 20 77 61 6e 74 65 |a user w|ho wante|
|00000ea0| 64 20 74 6f 20 66 69 78 | 20 74 68 65 20 73 69 74 |d to fix| the sit|
|00000eb0| 75 61 74 69 6f 6e 0a 58 | 63 6f 75 6c 64 2c 20 49 |uation.X|could, I|
|00000ec0| 20 73 75 70 70 6f 73 65 | 2c 20 63 6f 70 79 20 65 | suppose|, copy e|
|00000ed0| 61 63 68 20 66 69 6c 65 | 20 74 6f 20 61 20 6b 6e |ach file| to a kn|
|00000ee0| 6f 77 6e 20 6e 61 6d 65 | 20 69 6e 20 2f 74 6d 70 |own name| in /tmp|
|00000ef0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 0a 58 |, for ex|ample,.X|
|00000f00| 74 68 65 6e 20 70 75 73 | 68 64 20 74 6f 20 2f 74 |then pus|hd to /t|
|00000f10| 6d 70 2c 20 64 6f 20 74 | 68 65 20 63 68 61 6e 67 |mp, do t|he chang|
|00000f20| 65 62 61 72 20 77 6f 72 | 6b 20 74 68 65 72 65 2c |ebar wor|k there,|
|00000f30| 20 74 68 65 6e 20 64 65 | 6c 65 74 65 20 74 68 65 | then de|lete the|
|00000f40| 20 74 65 6d 70 0a 58 66 | 69 6c 65 73 2c 20 63 6f | temp.Xf|iles, co|
|00000f50| 70 79 20 74 68 65 20 2e | 63 68 62 61 72 20 72 65 |py the .|chbar re|
|00000f60| 73 75 6c 74 20 74 6f 20 | 74 68 65 20 6f 72 69 67 |sult to |the orig|
|00000f70| 69 6e 61 6c 20 64 69 72 | 65 63 74 6f 72 79 20 61 |inal dir|ectory a|
|00000f80| 6e 64 20 66 69 6e 61 6c | 6c 79 0a 58 67 65 74 20 |nd final|ly.Xget |
|00000f90| 72 69 64 20 6f 66 20 61 | 6e 79 20 6f 74 68 65 72 |rid of a|ny other|
|00000fa0| 20 74 65 6d 70 20 66 69 | 6c 65 73 20 74 68 61 74 | temp fi|les that|
|00000fb0| 20 77 65 20 63 72 65 61 | 74 65 64 2e 0a 58 0a 58 | we crea|ted..X.X|
|00000fc0| 52 6f 62 20 50 65 63 6b | 0a 45 4e 44 5f 4f 46 5f |Rob Peck|.END_OF_|
|00000fd0| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 36 33 31 |FILE.if |test 631|
|00000fe0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 52 45 | -ne `wc| -c <'RE|
|00000ff0| 41 44 4d 45 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ADME'`; |then. |
|00001000| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 52 | echo sh|ar: \"'R|
|00001010| 45 41 44 4d 45 27 5c 22 | 20 75 6e 70 61 63 6b 65 |EADME'\"| unpacke|
|00001020| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001030| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00001040| 52 45 41 44 4d 45 27 0a | 66 69 0a 69 66 20 74 65 |README'.|fi.if te|
|00001050| 73 74 20 2d 66 20 27 63 | 68 61 6e 67 65 62 61 72 |st -f 'c|hangebar|
|00001060| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00001070| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00001080| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00001090| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000010a0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 63 68 61 6e 67 |ng file |\"'chang|
|000010b0| 65 62 61 72 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |ebar'\".|else.ech|
|000010c0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|000010d0| 6e 67 20 5c 22 27 63 68 | 61 6e 67 65 62 61 72 27 |ng \"'ch|angebar'|
|000010e0| 5c 22 20 5c 28 31 34 32 | 32 20 63 68 61 72 61 63 |\" \(142|2 charac|
|000010f0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00001100| 2f 2f 22 20 3e 27 63 68 | 61 6e 67 65 62 61 72 27 |//" >'ch|angebar'|
|00001110| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00001120| 0a 58 23 21 2f 62 69 6e | 2f 73 68 0a 58 23 0a 58 |.X#!/bin|/sh.X#.X|
|00001130| 23 20 20 53 63 72 69 70 | 74 20 74 6f 20 61 75 74 |# Scrip|t to aut|
|00001140| 6f 6d 61 74 69 63 61 6c | 6c 79 20 61 64 64 20 63 |omatical|ly add c|
|00001150| 68 61 6e 67 65 62 61 72 | 73 20 74 6f 20 74 72 6f |hangebar|s to tro|
|00001160| 66 66 20 64 6f 63 73 2e | 0a 58 23 0a 58 69 66 20 |ff docs.|.X#.Xif |
|00001170| 5b 20 24 23 20 2d 6c 74 | 20 31 20 5d 3b 20 74 68 |[ $# -lt| 1 ]; th|
|00001180| 65 6e 0a 58 23 0a 58 23 | 20 20 49 66 20 75 73 65 |en.X#.X#| If use|
|00001190| 72 20 64 6f 65 73 20 6e | 6f 74 20 65 6e 74 65 72 |r does n|ot enter|
|000011a0| 20 70 61 72 61 6d 65 74 | 65 72 73 2c 20 73 68 6f | paramet|ers, sho|
|000011b0| 77 20 75 73 61 67 65 20 | 69 6e 66 6f 2e 0a 58 23 |w usage |info..X#|
|000011c0| 0a 58 09 65 63 68 6f 0a | 58 09 65 63 68 6f 20 22 |.X.echo.|X.echo "|
|000011d0| 09 63 68 61 6e 67 65 62 | 61 72 20 2d 2d 3e 20 55 |.changeb|ar --> U|
|000011e0| 73 61 67 65 3a 20 20 20 | 63 68 61 6e 67 65 62 61 |sage: |changeba|
|000011f0| 72 20 4f 4c 44 46 49 4c | 45 20 4e 45 57 46 49 4c |r OLDFIL|E NEWFIL|
|00001200| 45 22 0a 58 09 65 63 68 | 6f 0a 58 09 65 63 68 6f |E".X.ech|o.X.echo|
|00001210| 20 22 09 50 72 6f 64 75 | 63 65 73 20 4e 45 57 46 | ".Produ|ces NEWF|
|00001220| 49 4c 45 2e 63 68 62 61 | 72 20 74 68 61 74 20 69 |ILE.chba|r that i|
|00001230| 73 20 4e 45 57 46 49 4c | 45 20 77 69 74 68 20 63 |s NEWFIL|E with c|
|00001240| 68 61 6e 67 65 62 61 72 | 73 2c 22 0a 58 09 65 63 |hangebar|s,".X.ec|
|00001250| 68 6f 20 22 09 6c 65 61 | 76 65 73 20 6f 72 69 67 |ho ".lea|ves orig|
|00001260| 69 6e 61 6c 20 66 69 6c | 65 73 20 69 6e 74 61 63 |inal fil|es intac|
|00001270| 74 2e 22 0a 58 09 65 63 | 68 6f 0a 58 65 6c 73 65 |t.".X.ec|ho.Xelse|
|00001280| 0a 58 23 20 20 52 75 6e | 20 61 20 63 6f 6e 74 65 |.X# Run| a conte|
|00001290| 78 74 20 64 69 66 66 20 | 6f 6e 20 74 68 65 20 74 |xt diff |on the t|
|000012a0| 77 6f 20 66 69 6c 65 73 | 0a 58 23 0a 58 09 64 69 |wo files|.X#.X.di|
|000012b0| 66 66 20 2d 63 20 24 32 | 20 24 31 20 3e 20 24 31 |ff -c $2| $1 > $1|
|000012c0| 2e 64 69 66 66 0a 58 23 | 0a 58 23 20 20 49 6e 73 |.diff.X#|.X# Ins|
|000012d0| 74 61 6c 6c 20 63 68 61 | 6e 67 65 20 62 61 72 73 |tall cha|nge bars|
|000012e0| 20 69 6e 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 | in the |context |
|000012f0| 64 69 66 66 2c 0a 58 23 | 20 20 66 6f 72 20 41 44 |diff,.X#| for AD|
|00001300| 44 49 54 49 4f 4e 53 20 | 61 6e 64 20 4d 4f 44 49 |DITIONS |and MODI|
|00001310| 46 49 43 41 54 49 4f 4e | 53 20 6f 6e 6c 79 2e 0a |FICATION|S only..|
|00001320| 58 23 20 20 44 45 4c 45 | 54 49 4f 4e 53 20 6e 6f |X# DELE|TIONS no|
|00001330| 74 20 6d 61 72 6b 65 64 | 20 2d 2d 20 72 65 76 65 |t marked| -- reve|
|00001340| 72 73 65 20 74 68 65 0a | 58 23 20 20 73 65 71 75 |rse the.|X# sequ|
|00001350| 65 6e 63 65 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |ence of |the file|
|00001360| 20 6e 61 6d 65 73 20 61 | 6e 64 20 72 75 6e 20 69 | names a|nd run i|
|00001370| 74 0a 58 23 20 20 61 67 | 61 69 6e 20 74 6f 20 67 |t.X# ag|ain to g|
|00001380| 65 74 20 61 6e 20 6f 72 | 69 67 69 6e 61 6c 20 66 |et an or|iginal f|
|00001390| 69 6c 65 20 77 69 74 68 | 0a 58 23 20 20 64 65 6c |ile with|.X# del|
|000013a0| 65 74 69 6f 6e 73 20 61 | 6e 64 20 6d 6f 64 69 66 |etions a|nd modif|
|000013b0| 69 63 61 74 69 6f 6e 73 | 20 6d 61 72 6b 65 64 2e |ications| marked.|
|000013c0| 0a 58 23 0a 58 09 63 68 | 62 61 72 20 3c 20 24 31 |.X#.X.ch|bar < $1|
|000013d0| 2e 64 69 66 66 20 3e 20 | 24 31 2e 70 61 74 63 68 |.diff > |$1.patch|
|000013e0| 0a 58 23 0a 58 23 20 20 | 52 75 6e 20 74 68 65 20 |.X#.X# |Run the |
|000013f0| 70 61 74 63 68 20 70 72 | 6f 67 72 61 6d 20 74 6f |patch pr|ogram to|
|00001400| 20 69 6e 73 74 61 6c 6c | 20 74 68 65 0a 58 23 20 | install| the.X# |
|00001410| 20 6e 6f 77 2d 6d 6f 64 | 69 66 69 65 64 20 63 6f | now-mod|ified co|
|00001420| 6e 74 65 78 74 20 64 69 | 66 66 73 2e 0a 58 23 0a |ntext di|ffs..X#.|
|00001430| 58 09 70 61 74 63 68 20 | 2d 52 20 3c 20 24 31 2e |X.patch |-R < $1.|
|00001440| 70 61 74 63 68 0a 58 23 | 0a 58 23 20 20 52 65 6d |patch.X#|.X# Rem|
|00001450| 6f 76 65 20 74 68 65 20 | 69 6e 74 65 72 6d 65 64 |ove the |intermed|
|00001460| 69 61 74 65 20 66 69 6c | 65 73 3b 0a 58 23 20 20 |iate fil|es;.X# |
|00001470| 61 73 73 75 6d 65 73 20 | 74 68 61 74 20 61 6c 6c |assumes |that all|
|00001480| 20 6f 66 20 74 68 65 20 | 70 61 74 63 68 65 73 20 | of the |patches |
|00001490| 77 6f 72 6b 65 64 2e 0a | 58 23 0a 58 09 72 6d 20 |worked..|X#.X.rm |
|000014a0| 24 31 2e 64 69 66 66 20 | 24 31 2e 70 61 74 63 68 |$1.diff |$1.patch|
|000014b0| 0a 58 23 0a 58 23 20 20 | 54 72 61 6e 73 6c 61 74 |.X#.X# |Translat|
|000014c0| 65 20 5e 47 20 74 6f 20 | 5c 6e 2c 20 69 6e 73 74 |e ^G to |\n, inst|
|000014d0| 61 6c 6c 65 64 20 66 6f | 72 0a 58 23 20 20 63 6f |alled fo|r.X# co|
|000014e0| 6e 76 65 6e 69 65 6e 63 | 65 20 74 6f 20 6d 61 6b |nvenienc|e to mak|
|000014f0| 65 20 70 61 74 63 68 20 | 77 6f 72 6b 20 75 6e 6d |e patch |work unm|
|00001500| 6f 64 69 66 69 65 64 2e | 0a 58 23 20 20 4e 61 6d |odified.|.X# Nam|
|00001510| 65 20 74 68 65 20 66 69 | 6c 74 65 72 65 64 20 76 |e the fi|ltered v|
|00001520| 65 72 73 69 6f 6e 20 61 | 73 20 24 32 2e 63 68 62 |ersion a|s $2.chb|
|00001530| 61 72 2e 0a 58 23 0a 58 | 09 74 72 20 27 5c 30 30 |ar..X#.X|.tr '\00|
|00001540| 37 27 20 27 5c 30 31 32 | 27 20 3c 20 24 31 20 3e |7' '\012|' < $1 >|
|00001550| 20 24 32 2e 63 68 62 61 | 72 0a 58 23 0a 58 23 20 | $2.chba|r.X#.X# |
|00001560| 20 4d 61 6b 65 20 74 68 | 65 20 70 61 74 63 68 65 | Make th|e patche|
|00001570| 64 20 28 69 6e 74 65 72 | 6d 65 64 69 61 74 65 29 |d (inter|mediate)|
|00001580| 20 66 69 6c 65 20 72 65 | 6d 6f 76 61 62 6c 65 0a | file re|movable.|
|00001590| 58 23 0a 58 09 63 68 6d | 6f 64 20 36 36 36 20 24 |X#.X.chm|od 666 $|
|000015a0| 31 0a 58 23 0a 58 23 20 | 20 50 61 74 63 68 20 72 |1.X#.X# | Patch r|
|000015b0| 65 6e 61 6d 65 64 20 6f | 72 69 67 69 6e 61 6c 20 |enamed o|riginal |
|000015c0| 66 69 6c 65 3b 0a 58 23 | 20 20 72 65 73 74 6f 72 |file;.X#| restor|
|000015d0| 65 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 6e |e the or|iginal n|
|000015e0| 61 6d 65 0a 58 23 0a 58 | 09 6d 76 20 24 31 2e 6f |ame.X#.X|.mv $1.o|
|000015f0| 72 69 67 20 24 31 0a 58 | 23 0a 58 23 20 20 4e 6f |rig $1.X|#.X# No|
|00001600| 77 20 74 65 6c 6c 20 74 | 68 65 20 75 73 65 72 20 |w tell t|he user |
|00001610| 77 68 61 74 20 77 65 20 | 64 69 64 2e 0a 58 23 0a |what we |did..X#.|
|00001620| 58 09 65 63 68 6f 20 0a | 58 09 65 63 68 6f 20 22 |X.echo .|X.echo "|
|00001630| 41 6c 6c 20 6f 66 20 74 | 68 65 20 68 75 6e 6b 73 |All of t|he hunks|
|00001640| 20 73 68 6f 75 6c 64 20 | 68 61 76 65 20 73 75 63 | should |have suc|
|00001650| 63 65 65 64 65 64 22 0a | 58 09 65 63 68 6f 0a 58 |ceeded".|X.echo.X|
|00001660| 09 65 63 68 6f 20 22 54 | 68 65 72 65 20 69 73 20 |.echo "T|here is |
|00001670| 6e 6f 77 20 61 20 6e 65 | 77 20 66 69 6c 65 20 6e |now a ne|w file n|
|00001680| 61 6d 65 64 20 24 32 2e | 63 68 62 61 72 20 74 68 |amed $2.|chbar th|
|00001690| 61 74 20 69 73 20 65 78 | 61 63 74 6c 79 22 0a 58 |at is ex|actly".X|
|000016a0| 09 65 63 68 6f 20 22 6c | 69 6b 65 20 79 6f 75 72 |.echo "l|ike your|
|000016b0| 20 66 69 6c 65 20 6e 61 | 6d 65 64 20 24 32 2c 20 | file na|med $2, |
|000016c0| 62 75 74 20 69 74 20 68 | 61 73 20 63 68 61 6e 67 |but it h|as chang|
|000016d0| 65 62 61 72 73 20 69 6e | 73 74 61 6c 6c 65 64 2e |ebars in|stalled.|
|000016e0| 22 0a 58 09 65 63 68 6f | 0a 58 66 69 0a 45 4e 44 |".X.echo|.Xfi.END|
|000016f0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00001700| 20 31 34 32 32 20 2d 6e | 65 20 60 77 63 20 2d 63 | 1422 -n|e `wc -c|
|00001710| 20 3c 27 63 68 61 6e 67 | 65 62 61 72 27 60 3b 20 | <'chang|ebar'`; |
|00001720| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00001730| 61 72 3a 20 5c 22 27 63 | 68 61 6e 67 65 62 61 72 |ar: \"'c|hangebar|
|00001740| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00001750| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00001760| 0a 23 20 65 6e 64 20 6f | 66 20 27 63 68 61 6e 67 |.# end o|f 'chang|
|00001770| 65 62 61 72 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |ebar'.fi|.if test|
|00001780| 20 2d 66 20 27 63 68 61 | 6e 67 65 62 61 72 2e 31 | -f 'cha|ngebar.1|
|00001790| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000017a0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000017b0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000017c0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000017d0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 63 68 61 6e 67 |ng file |\"'chang|
|000017e0| 65 62 61 72 2e 31 27 5c | 22 0a 65 6c 73 65 0a 65 |ebar.1'\|".else.e|
|000017f0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00001800| 74 69 6e 67 20 5c 22 27 | 63 68 61 6e 67 65 62 61 |ting \"'|changeba|
|00001810| 72 2e 31 27 5c 22 20 5c | 28 31 33 35 36 20 63 68 |r.1'\" \|(1356 ch|
|00001820| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00001830| 73 2f 5e 58 2f 2f 22 20 | 3e 27 63 68 61 6e 67 65 |s/^X//" |>'change|
|00001840| 62 61 72 2e 31 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |bar.1' <|<'END_OF|
|00001850| 5f 46 49 4c 45 27 0a 58 | 2e 54 48 20 43 48 42 41 |_FILE'.X|.TH CHBA|
|00001860| 52 20 31 4c 20 22 4f 63 | 74 6f 62 65 72 20 37 2c |R 1L "Oc|tober 7,|
|00001870| 20 31 39 38 38 22 20 22 | 22 20 22 55 73 65 72 20 | 1988" "|" "User |
|00001880| 43 6f 6e 74 72 69 62 75 | 74 65 64 20 53 6f 66 74 |Contribu|ted Soft|
|00001890| 77 61 72 65 22 0a 58 2e | 53 48 20 4e 41 4d 45 0a |ware".X.|SH NAME.|
|000018a0| 58 63 68 62 61 72 20 5c | 2d 20 6d 6f 64 69 66 79 |Xchbar \|- modify|
|000018b0| 20 61 20 63 6f 6e 74 65 | 78 74 20 64 69 66 66 20 | a conte|xt diff |
|000018c0| 74 6f 20 61 64 64 20 63 | 68 61 6e 67 65 20 62 61 |to add c|hange ba|
|000018d0| 72 73 20 0a 58 2e 62 72 | 0a 58 2e 6e 66 0a 58 20 |rs .X.br|.X.nf.X |
|000018e0| 20 20 20 20 20 20 20 62 | 65 66 6f 72 65 20 72 75 | b|efore ru|
|000018f0| 6e 6e 69 6e 67 20 70 61 | 74 63 68 0a 58 2e 66 69 |nning pa|tch.X.fi|
|00001900| 0a 58 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 58 |.X.SH SY|NOPSIS.X|
|00001910| 2e 42 20 63 68 61 6e 67 | 65 62 61 72 20 4f 4c 44 |.B chang|ebar OLD|
|00001920| 46 49 4c 45 20 4e 45 57 | 46 49 4c 45 0a 58 2e 53 |FILE NEW|FILE.X.S|
|00001930| 48 20 46 55 4e 43 54 49 | 4f 4e 0a 58 49 6e 73 74 |H FUNCTI|ON.XInst|
|00001940| 61 6c 6c 73 20 22 2e 6d | 63 20 7c 5e 47 22 20 61 |alls ".m|c |^G" a|
|00001950| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 66 69 |s part o|f the fi|
|00001960| 72 73 74 20 6c 69 6e 65 | 20 6f 66 20 61 20 63 68 |rst line| of a ch|
|00001970| 61 6e 67 65 64 2d 6c 69 | 6e 65 0a 58 72 65 67 69 |anged-li|ne.Xregi|
|00001980| 6f 6e 20 61 6e 64 20 69 | 73 20 70 61 72 74 20 6f |on and i|s part o|
|00001990| 66 20 74 68 65 20 66 69 | 72 73 74 20 6c 69 6e 65 |f the fi|rst line|
|000019a0| 20 6f 66 20 61 20 72 65 | 67 69 6f 6e 20 6f 66 20 | of a re|gion of |
|000019b0| 61 64 64 65 64 2d 6c 69 | 6e 65 73 0a 58 61 73 20 |added-li|nes.Xas |
|000019c0| 69 6e 64 69 63 61 74 65 | 64 20 62 79 20 61 20 63 |indicate|d by a c|
|000019d0| 6f 6e 74 65 78 74 20 64 | 69 66 66 20 0a 58 2e 62 |ontext d|iff .X.b|
|000019e0| 72 0a 58 2e 73 70 0a 58 | 2e 6e 66 0a 58 09 28 64 |r.X.sp.X|.nf.X.(d|
|000019f0| 69 66 66 20 2d 63 20 6f | 6c 64 66 69 6c 65 20 6e |iff -c o|ldfile n|
|00001a00| 65 77 66 69 6c 65 29 2e | 0a 58 2e 66 69 0a 58 2e |ewfile).|.X.fi.X.|
|00001a10| 73 70 0a 58 2e 50 50 0a | 58 41 6c 73 6f 20 69 6e |sp.X.PP.|XAlso in|
|00001a20| 73 74 61 6c 6c 73 20 22 | 5e 47 2e 6d 63 22 20 61 |stalls "|^G.mc" a|
|00001a30| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 6c 61 |s part o|f the la|
|00001a40| 73 74 20 6c 69 6e 65 20 | 6f 66 20 61 20 63 68 61 |st line |of a cha|
|00001a50| 6e 67 65 64 2d 6c 69 6e | 65 0a 58 72 65 67 69 6f |nged-lin|e.Xregio|
|00001a60| 6e 2c 20 61 6e 64 20 61 | 73 20 70 61 72 74 20 6f |n, and a|s part o|
|00001a70| 66 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |f the la|st line |
|00001a80| 6f 66 20 61 6e 20 61 64 | 64 65 64 2d 6c 69 6e 65 |of an ad|ded-line|
|00001a90| 20 72 65 67 69 6f 6e 2e | 0a 58 54 68 69 73 20 66 | region.|.XThis f|
|00001aa0| 6f 6f 6c 73 20 74 68 65 | 20 70 61 74 63 68 20 70 |ools the| patch p|
|00001ab0| 72 6f 67 72 61 6d 20 69 | 6e 74 6f 20 62 65 6c 69 |rogram i|nto beli|
|00001ac0| 65 76 69 6e 67 20 74 68 | 61 74 20 74 68 65 73 65 |eving th|at these|
|00001ad0| 20 63 68 61 72 61 63 74 | 65 72 73 0a 58 61 72 65 | charact|ers.Xare|
|00001ae0| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 70 61 74 | part of| the pat|
|00001af0| 63 68 20 74 6f 20 62 65 | 20 69 6e 73 74 61 6c 6c |ch to be| install|
|00001b00| 65 64 20 74 6f 20 63 72 | 65 61 74 65 20 74 68 65 |ed to cr|eate the|
|00001b10| 20 6e 65 77 20 66 69 6c | 65 2e 0a 58 46 6f 6c 6c | new fil|e..XFoll|
|00001b20| 6f 77 69 6e 67 20 72 75 | 6e 6e 69 6e 67 20 70 61 |owing ru|nning pa|
|00001b30| 74 63 68 2c 20 61 20 66 | 69 6c 74 65 72 20 6d 75 |tch, a f|ilter mu|
|00001b40| 73 74 20 62 65 20 72 75 | 6e 20 74 6f 20 63 68 61 |st be ru|n to cha|
|00001b50| 6e 67 65 20 74 68 65 0a | 58 43 6f 6e 74 72 6f 6c |nge the.|XControl|
|00001b60| 2d 47 20 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |-G chara|cters in|
|00001b70| 74 6f 20 6c 69 6e 65 20 | 66 65 65 64 73 3b 20 20 |to line |feeds; |
|00001b80| 72 65 73 75 6c 74 73 20 | 69 6e 20 70 6c 61 63 69 |results |in placi|
|00001b90| 6e 67 0a 58 74 68 65 20 | 22 2e 6d 63 20 7c 22 20 |ng.Xthe |".mc |" |
|00001ba0| 6f 6e 20 61 20 73 65 70 | 61 72 61 74 65 20 6c 69 |on a sep|arate li|
|00001bb0| 6e 65 20 61 68 65 61 64 | 20 6f 66 20 74 68 65 20 |ne ahead| of the |
|00001bc0| 63 68 61 6e 67 65 64 20 | 72 65 67 69 6f 6e 0a 58 |changed |region.X|
|00001bd0| 61 6e 64 20 74 68 65 20 | 22 2e 6d 63 22 20 6f 6e |and the |".mc" on|
|00001be0| 20 61 20 73 65 70 61 72 | 61 74 65 20 6c 69 6e 65 | a separ|ate line|
|00001bf0| 20 6a 75 73 74 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | just fo|llowing |
|00001c00| 74 68 65 20 65 6e 64 20 | 6f 66 0a 58 74 68 65 20 |the end |of.Xthe |
|00001c10| 63 68 61 6e 67 65 64 20 | 72 65 67 69 6f 6e 2c 20 |changed |region, |
|00001c20| 74 68 75 73 20 63 61 75 | 73 69 6e 67 20 74 68 65 |thus cau|sing the|
|00001c30| 20 72 65 67 69 6f 6e 20 | 74 6f 20 62 65 20 6d 61 | region |to be ma|
|00001c40| 72 6b 65 64 2e 0a 58 2e | 53 48 20 4c 49 4d 49 54 |rked..X.|SH LIMIT|
|00001c50| 41 54 49 4f 4e 53 0a 58 | 53 65 65 20 4c 49 4d 49 |ATIONS.X|See LIMI|
|00001c60| 54 41 54 49 4f 4e 53 20 | 69 6e 20 74 68 65 20 6d |TATIONS |in the m|
|00001c70| 61 6e 2d 70 61 67 65 20 | 74 68 61 74 20 64 65 73 |an-page |that des|
|00001c80| 63 72 69 62 65 73 20 60 | 60 63 68 61 6e 67 65 62 |cribes `|`changeb|
|00001c90| 61 72 27 27 2e 0a 58 2e | 53 48 20 41 55 54 48 4f |ar''..X.|SH AUTHO|
|00001ca0| 52 0a 58 52 6f 62 20 50 | 65 63 6b 20 5c 2d 20 41 |R.XRob P|eck \- A|
|00001cb0| 72 64 65 6e 74 20 43 6f | 6d 70 75 74 65 72 0a 58 |rdent Co|mputer.X|
|00001cc0| 2e 53 48 20 46 49 4c 45 | 53 0a 58 2f 75 73 72 2f |.SH FILE|S.X/usr/|
|00001cd0| 6c 6f 63 61 6c 2f 6c 69 | 62 2f 63 68 62 61 72 2e |local/li|b/chbar.|
|00001ce0| 6c 65 78 0a 58 2e 62 72 | 0a 58 2f 75 73 72 2f 6c |lex.X.br|.X/usr/l|
|00001cf0| 6f 63 61 6c 2f 62 69 6e | 2f 63 68 62 61 72 0a 58 |ocal/bin|/chbar.X|
|00001d00| 2e 62 72 0a 58 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |.br.X/us|r/local/|
|00001d10| 6c 69 62 2f 50 41 54 43 | 48 2e 73 72 63 20 28 73 |lib/PATC|H.src (s|
|00001d20| 6f 75 72 63 65 20 64 69 | 72 65 63 74 6f 72 79 29 |ource di|rectory)|
|00001d30| 0a 58 2e 62 72 0a 58 2f | 75 73 72 2f 6c 6f 63 61 |.X.br.X/|usr/loca|
|00001d40| 6c 2f 62 69 6e 2f 70 61 | 74 63 68 20 28 62 79 20 |l/bin/pa|tch (by |
|00001d50| 4c 61 72 72 79 20 57 61 | 6c 6c 29 20 5c 2d 20 76 |Larry Wa|ll) \- v|
|00001d60| 65 72 73 69 6f 6e 20 32 | 2e 30 0a 58 2e 62 72 0a |ersion 2|.0.X.br.|
|00001d70| 58 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 62 69 6e 2f |X/usr/lo|cal/bin/|
|00001d80| 63 68 61 6e 67 65 62 61 | 72 20 28 61 20 73 68 65 |changeba|r (a she|
|00001d90| 6c 6c 20 73 63 72 69 70 | 74 29 0a 58 2e 53 48 20 |ll scrip|t).X.SH |
|00001da0| 42 55 47 53 0a 58 4e 6f | 6e 65 20 6b 6e 6f 77 6e |BUGS.XNo|ne known|
|00001db0| 20 61 74 20 74 68 69 73 | 20 74 69 6d 65 2e 0a 58 | at this| time..X|
|00001dc0| 2e 53 48 20 44 41 54 45 | 0a 58 31 30 2f 37 2f 38 |.SH DATE|.X10/7/8|
|00001dd0| 38 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |8.END_OF|_FILE.if|
|00001de0| 20 74 65 73 74 20 31 33 | 35 36 20 2d 6e 65 20 60 | test 13|56 -ne `|
|00001df0| 77 63 20 2d 63 20 3c 27 | 63 68 61 6e 67 65 62 61 |wc -c <'|changeba|
|00001e00| 72 2e 31 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |r.1'`; t|hen. |
|00001e10| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 63 68 |echo sha|r: \"'ch|
|00001e20| 61 6e 67 65 62 61 72 2e | 31 27 5c 22 20 75 6e 70 |angebar.|1'\" unp|
|00001e30| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00001e40| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00001e50| 6f 66 20 27 63 68 61 6e | 67 65 62 61 72 2e 31 27 |of 'chan|gebar.1'|
|00001e60| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001e70| 63 68 62 61 72 2e 6c 65 | 78 27 20 2d 61 20 22 24 |chbar.le|x' -a "$|
|00001e80| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00001e90| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00001ea0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00001eb0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00001ec0| 20 5c 22 27 63 68 62 61 | 72 2e 6c 65 78 27 5c 22 | \"'chba|r.lex'\"|
|00001ed0| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00001ee0| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 63 | Extract|ing \"'c|
|00001ef0| 68 62 61 72 2e 6c 65 78 | 27 5c 22 20 5c 28 33 36 |hbar.lex|'\" \(36|
|00001f00| 31 35 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |15 chara|cters\).|
|00001f10| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 63 |sed "s/^|X//" >'c|
|00001f20| 68 62 61 72 2e 6c 65 78 | 27 20 3c 3c 27 45 4e 44 |hbar.lex|' <<'END|
|00001f30| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 20 43 6f |_OF_FILE|'.X/* Co|
|00001f40| 6d 70 69 6c 65 20 74 68 | 69 73 20 70 72 6f 67 72 |mpile th|is progr|
|00001f50| 61 6d 20 75 73 69 6e 67 | 20 6c 65 78 20 61 6e 64 |am using| lex and|
|00001f60| 20 63 63 2c 20 6e 61 6d | 65 20 74 68 65 20 6f 62 | cc, nam|e the ob|
|00001f70| 6a 65 63 74 20 66 69 6c | 65 20 27 63 68 62 61 72 |ject fil|e 'chbar|
|00001f80| 27 0a 58 20 2a 20 61 6e | 64 20 69 6e 73 74 61 6c |'.X * an|d instal|
|00001f90| 6c 20 69 74 20 73 6f 6d | 65 77 68 65 72 65 20 74 |l it som|ewhere t|
|00001fa0| 68 61 74 20 74 68 65 20 | 73 79 73 74 65 6d 20 63 |hat the |system c|
|00001fb0| 61 6e 20 67 65 74 20 74 | 6f 20 69 74 20 75 73 69 |an get t|o it usi|
|00001fc0| 6e 67 20 74 68 65 0a 58 | 20 2a 20 27 63 68 61 6e |ng the.X| * 'chan|
|00001fd0| 67 65 62 61 72 27 20 73 | 68 65 6c 6c 20 73 63 72 |gebar' s|hell scr|
|00001fe0| 69 70 74 2e 0a 58 20 2a | 2f 0a 58 25 7b 0a 58 69 |ipt..X *|/.X%{.Xi|
|00001ff0| 6e 74 20 73 74 61 74 3d | 30 3b 0a 58 69 6e 74 20 |nt stat=|0;.Xint |
|00002000| 62 61 6e 67 73 74 61 74 | 3d 30 3b 0a 58 63 68 61 |bangstat|=0;.Xcha|
|00002010| 72 20 74 78 74 62 75 66 | 5b 32 35 36 5d 3d 30 3b |r txtbuf|[256]=0;|
|00002020| 0a 58 25 7d 0a 58 25 25 | 0a 58 5e 5b 5e 2d 5c 2a |.X%}.X%%|.X^[^-\*|
|00002030| 5c 6e 5c 21 5d 2e 2a 24 | 20 20 20 20 20 7b 0a 58 |\n\!].*$| {.X|
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002050| 2f 2a 20 49 66 20 61 6c | 72 65 61 64 79 20 63 6f |/* If al|ready co|
|00002060| 75 6e 74 69 6e 67 20 6c | 69 6e 65 73 20 74 68 61 |unting l|ines tha|
|00002070| 74 20 68 61 76 65 20 65 | 69 74 68 65 72 20 61 20 |t have e|ither a |
|00002080| 27 2d 20 27 0a 58 20 20 | 20 20 20 20 20 20 20 20 |'- '.X | |
|00002090| 20 20 20 20 20 20 20 2a | 20 6f 72 20 61 20 27 21 | *| or a '!|
|000020a0| 20 27 20 6f 72 20 61 20 | 27 2a 2e 2e 2e 27 20 69 | ' or a |'*...' i|
|000020b0| 6e 20 74 68 65 20 66 69 | 72 73 74 20 63 6f 6c 75 |n the fi|rst colu|
|000020c0| 6d 6e 73 2c 20 61 6e 64 | 20 65 6e 63 6f 75 6e 74 |mns, and| encount|
|000020d0| 65 72 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |er.X | |
|000020e0| 20 20 20 20 20 2a 20 61 | 20 6c 69 6e 65 20 74 68 | * a| line th|
|000020f0| 61 74 20 64 6f 65 73 20 | 4e 4f 54 20 68 61 76 65 |at does |NOT have|
|00002100| 20 74 68 61 74 2c 20 70 | 75 74 20 74 68 65 20 63 | that, p|ut the c|
|00002110| 6c 6f 73 69 6e 67 0a 58 | 20 20 20 20 20 20 20 20 |losing.X| |
|00002120| 20 20 20 20 20 20 20 20 | 20 2a 20 5e 47 2e 6d 63 | | * ^G.mc|
|00002130| 20 61 74 20 74 68 65 20 | 74 61 69 6c 20 6f 66 20 | at the |tail of |
|00002140| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 6c 69 6e |the prev|ious lin|
|00002150| 65 20 61 6e 64 20 64 69 | 73 61 62 6c 65 0a 58 20 |e and di|sable.X |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002170| 2a 20 74 68 65 20 69 6e | 73 65 72 74 69 6f 6e 20 |* the in|sertion |
|00002180| 6f 66 20 74 68 65 20 2e | 6d 63 20 74 69 6c 6c 20 |of the .|mc till |
|00002190| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 77 |the firs|t line w|
|000021a0| 69 74 68 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |ith.X | |
|000021b0| 20 20 20 20 20 20 2a 20 | 65 69 74 68 65 72 20 6f | * |either o|
|000021c0| 66 20 74 68 65 20 74 77 | 6f 20 6d 61 72 6b 65 72 |f the tw|o marker|
|000021d0| 73 20 68 61 70 70 65 6e | 73 20 61 67 61 69 6e 2e |s happen|s again.|
|000021e0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|000021f0| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 20 20 20 20 | */.X | |
|00002200| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 28 73 74 | | if(st|
|00002210| 61 74 20 3d 3d 20 31 29 | 20 7b 0a 58 20 20 20 20 |at == 1)| {.X |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002230| 20 20 20 20 70 72 69 6e | 74 66 28 22 25 73 5c 30 | prin|tf("%s\0|
|00002240| 30 37 2e 6d 63 5c 6e 22 | 2c 74 78 74 62 75 66 29 |07.mc\n"|,txtbuf)|
|00002250| 3b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.X | |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 73 74 61 74 20 | | stat |
|00002270| 3d 20 30 3b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |= 0;.X | |
|00002280| 20 20 20 20 20 20 20 20 | 20 20 7d 0a 58 20 20 20 | | }.X |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022a0| 20 70 75 74 73 28 79 79 | 74 65 78 74 29 3b 0a 58 | puts(yy|text);.X|
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 7d 0a 58 0a 58 5e 2d 2d | 2d 5c 20 2e 2a 24 20 20 |}.X.X^--|-\ .*$ |
|000022d0| 20 20 20 20 20 7b 20 20 | 20 70 75 74 73 28 79 79 | { | puts(yy|
|000022e0| 74 65 78 74 29 3b 20 20 | 2f 2a 20 49 66 20 69 6e |text); |/* If in|
|000022f0| 20 61 20 27 2d 2d 2d 27 | 20 62 6c 6f 63 6b 20 69 | a '---'| block i|
|00002300| 6e 20 61 20 63 6f 6e 74 | 65 78 74 20 64 69 66 66 |n a cont|ext diff|
|00002310| 2c 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,.X | |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002330| 20 20 20 2a 20 74 68 65 | 6e 20 64 69 73 61 62 6c | * the|n disabl|
|00002340| 65 20 65 6e 74 72 79 20 | 6f 66 20 2e 6d 63 27 73 |e entry |of .mc's|
|00002350| 20 69 6e 20 74 65 78 74 | 20 6c 69 6e 65 73 2e 0a | in text| lines..|
|00002360| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002380| 20 2a 2f 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 | */.X | |
|00002390| 20 20 20 20 20 20 20 20 | 20 62 61 6e 67 73 74 61 | | bangsta|
|000023a0| 74 20 3d 20 30 3b 0a 58 | 20 20 20 20 20 20 20 20 |t = 0;.X| |
|000023b0| 20 20 20 20 20 20 20 20 | 7d 0a 58 0a 58 5e 5c 2a | |}.X.X^\*|
|000023c0| 5c 2a 5c 2a 5c 20 2e 2a | 24 20 20 20 20 7b 20 20 |\*\*\ .*|$ { |
|000023d0| 20 70 75 74 73 28 79 79 | 74 65 78 74 29 3b 20 20 | puts(yy|text); |
|000023e0| 2f 2a 20 49 66 20 69 6e | 20 61 20 27 2a 2a 2a 27 |/* If in| a '***'|
|000023f0| 20 62 6c 6f 63 6b 20 69 | 6e 20 61 20 63 6f 6e 74 | block i|n a cont|
|00002400| 65 78 74 20 64 69 66 66 | 2c 0a 58 20 20 20 20 20 |ext diff|,.X |
|00002410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 74 68 65 | | * the|
|00002430| 6e 20 65 6e 61 62 6c 65 | 20 65 6e 74 72 79 20 6f |n enable| entry o|
|00002440| 66 20 2e 6d 63 27 73 20 | 69 6e 20 74 65 78 74 20 |f .mc's |in text |
|00002450| 6c 69 6e 65 73 2e 0a 58 | 20 20 20 20 20 20 20 20 |lines..X| |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 20 20 20 20 | |*/.X |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002490| 62 61 6e 67 73 74 61 74 | 20 3d 20 31 3b 0a 58 20 |bangstat| = 1;.X |
|000024a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7d | | }|
|000024b0| 0a 58 0a 58 5e 5c 2a 5c | 2a 5c 2a 2e 2a 24 09 7b |.X.X^\*\|*\*.*$.{|
|000024c0| 20 20 20 70 75 74 73 28 | 79 79 74 65 78 74 29 3b | puts(|yytext);|
|000024d0| 0a 58 09 09 7d 0a 58 0a | 58 5e 5c 2d 5c 20 2e 2a |.X..}.X.|X^\-\ .*|
|000024e0| 24 20 20 20 20 20 20 20 | 20 7b 0a 58 20 20 20 20 |$ | {.X |
|000024f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002500| 2f 2a 20 49 66 20 66 69 | 6e 64 20 61 20 6c 69 6e |/* If fi|nd a lin|
|00002510| 65 20 74 68 61 74 20 62 | 65 67 69 6e 73 20 22 2d |e that b|egins "-|
|00002520| 20 3c 61 6e 79 74 68 69 | 6e 67 3e 22 2c 20 61 6e | <anythi|ng>", an|
|00002530| 64 20 69 74 0a 58 20 20 | 20 20 20 20 20 20 20 20 |d it.X | |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 2a 20 69 73 20 | | * is |
|00002550| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 6f |the firs|t line o|
|00002560| 66 20 69 74 73 20 6b 69 | 6e 64 2c 20 74 68 65 6e |f its ki|nd, then|
|00002570| 20 6d 61 72 6b 20 69 74 | 2e 0a 58 20 20 20 20 20 | mark it|..X |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002590| 2a 2f 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/.X | |
|000025a0| 20 20 20 20 69 66 28 73 | 74 61 74 20 3d 3d 20 30 | if(s|tat == 0|
|000025b0| 29 20 7b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |) {.X | |
|000025c0| 20 20 20 20 20 20 20 20 | 20 73 70 72 69 6e 74 66 | | sprintf|
|000025d0| 28 74 78 74 62 75 66 2c | 22 2d 20 2e 6d 63 20 5c |(txtbuf,|"- .mc \|
|000025e0| 5c 73 2b 32 5c 5c 28 62 | 72 5c 5c 73 2d 32 5c 30 |\s+2\\(b|r\\s-2\0|
|000025f0| 30 37 25 73 22 2c 26 79 | 79 74 65 78 74 5b 32 5d |07%s",&y|ytext[2]|
|00002600| 29 3b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.X | |
|00002610| 20 20 20 20 20 20 20 20 | 73 74 61 74 20 3d 20 31 | |stat = 1|
|00002620| 3b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.X | |
|00002630| 20 20 20 20 20 20 20 7d | 0a 58 20 20 20 20 20 20 | }|.X |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 7b | | else {|
|00002650| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002660| 20 20 20 20 20 20 70 75 | 74 73 28 74 78 74 62 75 | pu|ts(txtbu|
|00002670| 66 29 3b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |f);.X | |
|00002680| 20 20 20 20 20 20 20 20 | 20 73 70 72 69 6e 74 66 | | sprintf|
|00002690| 28 74 78 74 62 75 66 2c | 22 25 73 22 2c 79 79 74 |(txtbuf,|"%s",yyt|
|000026a0| 65 78 74 29 3b 0a 58 20 | 20 20 20 20 20 20 20 20 |ext);.X | |
|000026b0| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 58 20 20 | | }.X |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a | | }.|
|000026d0| 58 0a 58 0a 58 0a 58 0a | 58 0a 58 0a 58 0a 58 0a |X.X.X.X.|X.X.X.X.|
|000026e0| 58 5e 5c 21 5c 20 2e 2a | 24 20 20 20 20 20 20 20 |X^\!\ .*|$ |
|000026f0| 20 7b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.X | |
|00002700| 20 20 20 20 20 20 20 20 | 2f 2a 20 49 66 20 66 69 | |/* If fi|
|00002710| 6e 64 20 61 20 6c 69 6e | 65 20 74 68 61 74 20 62 |nd a lin|e that b|
|00002720| 65 67 69 6e 73 20 22 21 | 20 3c 61 6e 79 74 68 69 |egins "!| <anythi|
|00002730| 6e 67 3e 22 2c 20 61 6e | 64 20 69 74 0a 58 20 20 |ng>", an|d it.X |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002750| 20 20 20 2a 20 69 73 20 | 74 68 65 20 66 69 72 73 | * is |the firs|
|00002760| 74 20 6c 69 6e 65 20 6f | 66 20 69 74 73 20 6b 69 |t line o|f its ki|
|00002770| 6e 64 2c 20 74 68 65 6e | 20 6d 61 72 6b 20 69 74 |nd, then| mark it|
|00002780| 2e 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |..X | |
|00002790| 20 20 20 20 20 20 20 20 | 2a 2f 0a 58 20 20 20 20 | |*/.X |
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|000027b0| 28 62 61 6e 67 73 74 61 | 74 3d 3d 31 29 20 0a 58 |(bangsta|t==1) .X|
|000027c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027d0| 20 20 7b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 | {.X | |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 28 | | if(|
|000027f0| 73 74 61 74 20 3d 3d 20 | 30 29 20 7b 0a 58 20 20 |stat == |0) {.X |
|00002800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002810| 20 20 20 20 20 20 20 20 | 73 70 72 69 6e 74 66 28 | |sprintf(|
|00002820| 74 78 74 62 75 66 2c 22 | 21 20 2e 6d 63 20 5c 5c |txtbuf,"|! .mc \\|
|00002830| 73 2b 32 5c 5c 28 62 72 | 5c 5c 73 2d 32 5c 30 30 |s+2\\(br|\\s-2\00|
|00002840| 37 25 73 22 2c 0a 58 20 | 20 20 20 20 20 20 20 20 |7%s",.X | |
|00002850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 79 79 | | &yy|
|00002870| 74 65 78 74 5b 32 5d 29 | 3b 0a 58 20 20 20 20 20 |text[2])|;.X |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002890| 20 20 20 20 20 73 74 61 | 74 20 3d 20 31 3b 0a 58 | sta|t = 1;.X|
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028b0| 20 20 20 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 | |}.X |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028d0| 20 20 20 65 6c 73 65 20 | 7b 0a 58 20 20 20 20 20 | else |{.X |
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028f0| 20 20 20 20 20 70 75 74 | 73 28 74 78 74 62 75 66 | put|s(txtbuf|
|00002900| 29 3b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.X | |
|00002910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 70 | | sp|
|00002920| 72 69 6e 74 66 28 74 78 | 74 62 75 66 2c 22 25 73 |rintf(tx|tbuf,"%s|
|00002930| 22 2c 79 79 74 65 78 74 | 29 3b 0a 58 20 20 20 20 |",yytext|);.X |
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002950| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|00002960| 20 20 20 20 20 20 20 20 | 20 20 20 7d 0a 58 20 20 | | }.X |
|00002970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002980| 65 6c 73 65 20 7b 0a 58 | 20 20 20 20 20 20 20 20 |else {.X| |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 75 74 73 | | puts|
|000029a0| 28 79 79 74 65 78 74 29 | 3b 0a 58 20 20 20 20 20 |(yytext)|;.X |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0a 58 | | }.X|
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029d0| 7d 0a 58 5c 6e 20 20 09 | 09 7b 0a 58 20 20 20 20 |}.X\n .|.{.X |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|000029f0| 0a 58 09 09 20 20 20 2f | 2a 20 49 66 20 74 68 65 |.X.. /|* If the|
|00002a00| 72 65 20 69 73 20 6e 6f | 74 68 69 6e 67 20 62 75 |re is no|thing bu|
|00002a10| 74 20 61 20 6e 65 77 6c | 69 6e 65 2c 20 64 6f 20 |t a newl|ine, do |
|00002a20| 6e 6f 74 68 69 6e 67 2c | 20 62 65 63 61 75 73 65 |nothing,| because|
|00002a30| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002a40| 20 20 20 20 20 20 2a 20 | 77 65 20 61 72 65 20 69 | * |we are i|
|00002a50| 6e 73 65 72 74 69 6e 67 | 20 6f 75 72 20 6f 77 6e |nserting| our own|
|00002a60| 20 6e 65 77 6c 69 6e 65 | 73 20 61 73 20 6e 65 65 | newline|s as nee|
|00002a70| 64 65 64 2e 0a 58 20 20 | 20 20 20 20 20 20 20 20 |ded..X | |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 58 09 09 | | */.X..|
|00002a90| 7d 0a 58 25 25 0a 58 79 | 79 77 72 61 70 28 29 0a |}.X%%.Xy|ywrap().|
|00002aa0| 58 7b 0a 58 20 20 20 20 | 69 66 20 28 73 74 61 74 |X{.X |if (stat|
|00002ab0| 20 3d 3d 20 31 29 0a 58 | 20 20 20 20 20 20 20 20 | == 1).X| |
|00002ac0| 70 72 69 6e 74 66 28 22 | 25 73 5c 30 30 37 2e 6d |printf("|%s\007.m|
|00002ad0| 63 5c 6e 22 2c 74 78 74 | 62 75 66 29 3b 0a 58 0a |c\n",txt|buf);.X.|
|00002ae0| 58 20 20 20 20 72 65 74 | 75 72 6e 20 28 31 29 3b |X ret|urn (1);|
|00002af0| 0a 58 7d 0a 58 2f 2a 0a | 58 20 20 20 20 54 68 69 |.X}.X/*.|X Thi|
|00002b00| 73 20 4c 45 58 20 66 69 | 6c 65 20 61 64 64 73 20 |s LEX fi|le adds |
|00002b10| 63 68 61 6e 67 65 20 62 | 61 72 73 20 74 6f 20 74 |change b|ars to t|
|00002b20| 68 65 20 6f 75 74 70 75 | 74 20 6f 66 20 61 20 27 |he outpu|t of a '|
|00002b30| 64 69 66 66 20 2d 63 27 | 0a 58 20 20 20 20 74 6f |diff -c'|.X to|
|00002b40| 20 69 6e 64 69 63 61 74 | 65 20 74 6f 20 74 68 65 | indicat|e to the|
|00002b50| 20 72 65 61 64 65 72 20 | 77 68 65 72 65 20 73 65 | reader |where se|
|00002b60| 63 74 69 6f 6e 73 20 68 | 61 76 65 20 62 65 65 6e |ctions h|ave been|
|00002b70| 20 61 64 64 65 64 0a 58 | 20 20 20 20 28 6e 6f 20 | added.X| (no |
|00002b80| 68 61 6e 64 6c 69 6e 67 | 20 73 6f 20 66 61 72 20 |handling| so far |
|00002b90| 66 6f 72 20 6c 69 6e 65 | 73 20 74 68 61 74 20 68 |for line|s that h|
|00002ba0| 61 76 65 20 62 65 65 6e | 20 64 65 6c 65 74 65 64 |ave been| deleted|
|00002bb0| 29 2e 0a 58 0a 58 20 20 | 20 20 54 68 69 73 20 61 |)..X.X | This a|
|00002bc0| 6c 6c 6f 77 73 20 74 68 | 65 20 75 73 65 72 20 74 |llows th|e user t|
|00002bd0| 6f 20 65 64 69 74 20 75 | 6e 64 65 72 20 53 43 43 |o edit u|nder SCC|
|00002be0| 53 20 74 6f 20 79 6f 75 | 72 20 68 65 61 72 74 27 |S to you|r heart'|
|00002bf0| 73 20 63 6f 6e 74 65 6e | 74 2c 0a 58 20 20 20 20 |s conten|t,.X |
|00002c00| 74 68 65 6e 20 53 43 43 | 53 2d 65 78 74 72 61 63 |then SCC|S-extrac|
|00002c10| 74 20 74 68 65 20 6f 6c | 64 20 76 65 72 73 69 6f |t the ol|d versio|
|00002c20| 6e 20 61 6e 64 20 74 68 | 65 20 6e 65 77 20 76 65 |n and th|e new ve|
|00002c30| 72 73 69 6f 6e 2e 2e 2e | 0a 58 20 20 20 20 74 68 |rsion...|.X th|
|00002c40| 65 6e 3a 0a 58 0a 58 20 | 20 20 20 61 2e 20 64 69 |en:.X.X | a. di|
|00002c50| 66 66 20 2d 63 20 6f 6c | 64 66 69 6c 65 20 6e 65 |ff -c ol|dfile ne|
|00002c60| 77 66 69 6c 65 20 3e 20 | 66 69 6c 65 64 69 66 66 |wfile > |filediff|
|00002c70| 73 0a 58 20 20 20 20 62 | 2e 20 61 64 64 63 68 67 |s.X b|. addchg|
|00002c80| 62 61 72 73 20 3c 20 66 | 69 6c 65 64 69 66 66 73 |bars < f|ilediffs|
|00002c90| 20 3e 20 66 69 6c 65 6d | 6f 64 73 0a 58 20 20 20 | > filem|ods.X |
|00002ca0| 20 63 2e 20 70 61 74 63 | 68 20 3c 20 66 69 6c 65 | c. patc|h < file|
|00002cb0| 6d 6f 64 73 0a 58 20 20 | 20 20 0a 58 20 20 20 20 |mods.X | .X |
|00002cc0| 23 20 6f 6c 64 66 69 6c | 65 20 69 73 20 72 65 6e |# oldfil|e is ren|
|00002cd0| 61 6d 65 64 20 74 6f 20 | 6f 6c 64 66 69 6c 65 2e |amed to |oldfile.|
|00002ce0| 6f 72 69 67 0a 58 20 20 | 20 20 23 20 6f 6c 64 66 |orig.X | # oldf|
|00002cf0| 69 6c 65 20 62 65 63 6f | 6d 65 73 20 6e 65 77 66 |ile beco|mes newf|
|00002d00| 69 6c 65 2c 20 62 75 74 | 20 77 69 74 68 20 63 68 |ile, but| with ch|
|00002d10| 61 6e 67 65 20 62 61 72 | 73 20 69 6e 73 74 61 6c |ange bar|s instal|
|00002d20| 6c 65 64 0a 58 0a 58 20 | 20 20 20 64 2e 20 74 72 |led.X.X | d. tr|
|00002d30| 20 27 5c 30 30 37 27 20 | 27 5c 30 31 32 27 20 6f | '\007' |'\012' o|
|00002d40| 6c 64 66 69 6c 65 20 3e | 20 66 69 6c 65 2e 74 6f |ldfile >| file.to|
|00002d50| 2e 70 72 69 6e 74 0a 58 | 0a 58 20 20 20 20 23 20 |.print.X|.X # |
|00002d60| 63 68 61 6e 67 65 20 62 | 61 72 73 20 68 61 76 65 |change b|ars have|
|00002d70| 20 5e 47 20 69 6e 73 74 | 61 6c 6c 65 64 2c 20 68 | ^G inst|alled, h|
|00002d80| 61 73 20 74 6f 20 62 65 | 20 63 68 61 6e 67 65 64 |as to be| changed|
|00002d90| 20 69 6e 74 6f 20 61 20 | 5e 4a 3b 0a 58 20 20 20 | into a |^J;.X |
|00002da0| 20 23 20 6d 61 6b 65 73 | 20 70 61 74 63 68 20 70 | # makes| patch p|
|00002db0| 72 6f 67 72 61 6d 20 77 | 6f 72 6b 20 75 6e 6d 6f |rogram w|ork unmo|
|00002dc0| 64 69 66 69 65 64 2e 0a | 58 0a 58 2a 2f 0a 45 4e |dified..|X.X*/.EN|
|00002dd0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00002de0| 74 20 33 36 31 35 20 2d | 6e 65 20 60 77 63 20 2d |t 3615 -|ne `wc -|
|00002df0| 63 20 3c 27 63 68 62 61 | 72 2e 6c 65 78 27 60 3b |c <'chba|r.lex'`;|
|00002e00| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00002e10| 68 61 72 3a 20 5c 22 27 | 63 68 62 61 72 2e 6c 65 |har: \"'|chbar.le|
|00002e20| 78 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |x'\" unp|acked wi|
|00002e30| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00002e40| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 63 68 62 61 |i.# end |of 'chba|
|00002e50| 72 2e 6c 65 78 27 0a 66 | 69 0a 69 66 20 74 65 73 |r.lex'.f|i.if tes|
|00002e60| 74 20 2d 66 20 27 64 65 | 6c 65 74 65 2e 6e 6f 74 |t -f 'de|lete.not|
|00002e70| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|00002e80| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00002e90| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00002ea0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002eb0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 64 65 6c 65 |ing file| \"'dele|
|00002ec0| 74 65 2e 6e 6f 74 65 27 | 5c 22 0a 65 6c 73 65 0a |te.note'|\".else.|
|00002ed0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00002ee0| 63 74 69 6e 67 20 5c 22 | 27 64 65 6c 65 74 65 2e |cting \"|'delete.|
|00002ef0| 6e 6f 74 65 27 5c 22 20 | 5c 28 36 33 34 20 63 68 |note'\" |\(634 ch|
|00002f00| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00002f10| 73 2f 5e 58 2f 2f 22 20 | 3e 27 64 65 6c 65 74 65 |s/^X//" |>'delete|
|00002f20| 2e 6e 6f 74 65 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |.note' <|<'END_OF|
|00002f30| 5f 46 49 4c 45 27 0a 58 | 4d 41 52 4b 49 4e 47 20 |_FILE'.X|MARKING |
|00002f40| 44 45 4c 45 54 49 4f 4e | 53 20 54 4f 20 54 48 45 |DELETION|S TO THE|
|00002f50| 20 54 45 58 54 0a 58 0a | 58 54 68 65 72 65 20 69 | TEXT.X.|XThere i|
|00002f60| 73 20 6e 6f 20 45 41 53 | 59 20 77 61 79 20 49 20 |s no EAS|Y way I |
|00002f70| 63 61 6e 20 66 69 6e 64 | 20 74 6f 20 61 70 70 72 |can find| to appr|
|00002f80| 6f 70 72 69 61 74 65 6c | 79 20 6d 61 72 6b 20 44 |opriatel|y mark D|
|00002f90| 45 4c 45 54 49 4f 4e 53 | 20 74 6f 0a 58 61 20 66 |ELETIONS| to.Xa f|
|00002fa0| 69 6c 65 20 77 69 74 68 | 20 63 68 61 6e 67 65 20 |ile with| change |
|00002fb0| 62 61 72 73 2e 20 20 45 | 69 74 68 65 72 20 64 6f |bars. E|ither do|
|00002fc0| 20 64 65 6c 65 74 69 6f | 6e 73 20 6d 61 6e 75 61 | deletio|ns manua|
|00002fd0| 6c 6c 79 2c 20 6f 72 20 | 72 75 6e 20 74 68 69 73 |lly, or |run this|
|00002fe0| 0a 58 70 72 6f 67 72 61 | 6d 20 69 6e 20 72 65 76 |.Xprogra|m in rev|
|00002ff0| 65 72 73 65 3a 0a 58 0a | 58 09 63 68 61 6e 67 65 |erse:.X.|X.change|
|00003000| 62 61 72 20 4e 45 57 20 | 4f 4c 44 0a 58 0a 58 54 |bar NEW |OLD.X.XT|
|00003010| 68 69 73 20 77 69 6c 6c | 20 63 72 65 61 74 65 20 |his will| create |
|00003020| 61 20 66 69 6c 65 20 6e | 61 6d 65 64 20 4f 4c 44 |a file n|amed OLD|
|00003030| 2e 63 68 62 61 72 2c 20 | 77 68 69 63 68 20 77 69 |.chbar, |which wi|
|00003040| 6c 6c 20 62 65 20 74 68 | 65 20 65 78 61 63 74 0a |ll be th|e exact.|
|00003050| 58 65 71 75 69 76 61 6c | 65 6e 74 20 6f 66 20 74 |Xequival|ent of t|
|00003060| 68 65 20 4f 4c 44 20 66 | 69 6c 65 2c 20 62 75 74 |he OLD f|ile, but|
|00003070| 20 77 69 74 68 20 63 68 | 61 6e 67 65 20 62 61 72 | with ch|ange bar|
|00003080| 73 20 6d 61 72 6b 69 6e | 67 20 74 68 65 20 64 65 |s markin|g the de|
|00003090| 6c 65 74 65 64 0a 58 74 | 65 78 74 2e 20 20 59 6f |leted.Xt|ext. Yo|
|000030a0| 75 20 63 6f 75 6c 64 20 | 74 68 65 72 65 66 6f 72 |u could |therefor|
|000030b0| 65 20 70 72 69 6e 74 20 | 61 6e 20 4e 45 57 2e 63 |e print |an NEW.c|
|000030c0| 68 62 61 72 20 28 65 71 | 75 61 6c 20 74 6f 20 74 |hbar (eq|ual to t|
|000030d0| 68 65 20 4e 45 57 20 66 | 69 6c 65 0a 58 77 69 74 |he NEW f|ile.Xwit|
|000030e0| 68 20 63 68 61 6e 67 65 | 20 62 61 72 73 20 69 6e |h change| bars in|
|000030f0| 64 69 63 61 74 69 6e 67 | 20 61 64 64 65 64 20 74 |dicating| added t|
|00003100| 65 78 74 29 20 61 6e 64 | 20 4f 4c 44 2e 63 68 62 |ext) and| OLD.chb|
|00003110| 61 72 20 28 65 71 75 61 | 6c 20 74 6f 20 74 68 65 |ar (equa|l to the|
|00003120| 0a 58 4f 4c 44 20 66 69 | 6c 65 20 77 69 74 68 20 |.XOLD fi|le with |
|00003130| 64 65 6c 65 74 65 64 20 | 74 65 78 74 20 68 69 67 |deleted |text hig|
|00003140| 68 6c 69 67 68 74 65 64 | 29 20 66 6f 72 20 79 6f |hlighted|) for yo|
|00003150| 75 72 20 75 73 65 72 73 | 20 61 6e 64 20 74 68 65 |ur users| and the|
|00003160| 79 27 64 0a 58 68 61 76 | 65 20 61 20 63 6f 6d 70 |y'd.Xhav|e a comp|
|00003170| 6c 65 74 65 20 70 69 63 | 74 75 72 65 20 73 68 6f |lete pic|ture sho|
|00003180| 77 69 6e 67 20 77 68 61 | 74 20 79 6f 75 20 64 69 |wing wha|t you di|
|00003190| 64 20 74 6f 20 74 68 65 | 20 66 69 6c 65 73 20 62 |d to the| files b|
|000031a0| 65 74 77 65 65 6e 0a 58 | 69 73 73 75 65 73 20 6f |etween.X|issues o|
|000031b0| 66 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2e 0a |f the do|cument..|
|000031c0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000031d0| 65 73 74 20 36 33 34 20 | 2d 6e 65 20 60 77 63 20 |est 634 |-ne `wc |
|000031e0| 2d 63 20 3c 27 64 65 6c | 65 74 65 2e 6e 6f 74 65 |-c <'del|ete.note|
|000031f0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00003200| 6f 20 73 68 61 72 3a 20 | 5c 22 27 64 65 6c 65 74 |o shar: |\"'delet|
|00003210| 65 2e 6e 6f 74 65 27 5c | 22 20 75 6e 70 61 63 6b |e.note'\|" unpack|
|00003220| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00003230| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00003240| 27 64 65 6c 65 74 65 2e | 6e 6f 74 65 27 0a 66 69 |'delete.|note'.fi|
|00003250| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 6e 64 20 |.echo sh|ar: End |
|00003260| 6f 66 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 |of shell| archive|
|00003270| 2e 0a 65 78 69 74 20 30 | 0a 2d 2d 20 0a 50 6c 65 |..exit 0|.-- .Ple|
|00003280| 61 73 65 20 73 65 6e 64 | 20 63 6f 6d 70 2e 73 6f |ase send| comp.so|
|00003290| 75 72 63 65 73 2e 75 6e | 69 78 2d 72 65 6c 61 74 |urces.un|ix-relat|
|000032a0| 65 64 20 6d 61 69 6c 20 | 74 6f 20 72 73 61 6c 7a |ed mail |to rsalz|
|000032b0| 40 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 2e 0a |@uunet.u|u.net.. |
+--------+-------------------------+-------------------------+--------+--------+