home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sources / misc / 4114 < prev    next >
SHell self-extracting ARchive  |  1992-11-20  |  48.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: 4114

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 72 61 | 6d 40 65 69 66 66 65 6c |From: ra|m@eiffel|
|00000040| 2e 63 6f 6d 20 28 52 61 | 70 68 61 65 6c 20 4d 61 |.com (Ra|phael Ma|
|00000050| 6e 66 72 65 64 69 29 0a | 53 75 62 6a 65 63 74 3a |nfredi).|Subject:|
|00000060| 20 20 76 33 33 69 31 30 | 39 3a 20 20 6d 61 69 6c | v33i10|9: mail|
|00000070| 61 67 65 6e 74 20 2d 20 | 52 75 6c 65 20 42 61 73 |agent - |Rule Bas|
|00000080| 65 64 20 4d 61 69 6c 20 | 46 69 6c 74 65 72 69 6e |ed Mail |Filterin|
|00000090| 67 2c 20 50 61 72 74 31 | 37 2f 31 37 0a 4d 65 73 |g, Part1|7/17.Mes|
|000000a0| 73 61 67 65 2d 49 44 3a | 20 3c 31 39 39 32 4e 6f |sage-ID:| <1992No|
|000000b0| 76 32 30 2e 32 33 31 33 | 34 37 2e 32 38 33 32 34 |v20.2313|47.28324|
|000000c0| 40 73 70 61 72 6b 79 2e | 69 6d 64 2e 73 74 65 72 |@sparky.|imd.ster|
|000000d0| 6c 69 6e 67 2e 63 6f 6d | 3e 0a 46 6f 6c 6c 6f 77 |ling.com|>.Follow|
|000000e0| 75 70 2d 54 6f 3a 20 63 | 6f 6d 70 2e 73 6f 75 72 |up-To: c|omp.sour|
|000000f0| 63 65 73 2e 64 0a 58 2d | 4d 64 34 2d 53 69 67 6e |ces.d.X-|Md4-Sign|
|00000100| 61 74 75 72 65 3a 20 38 | 65 30 66 30 63 35 34 61 |ature: 8|e0f0c54a|
|00000110| 33 66 62 65 31 34 63 34 | 31 34 66 66 32 38 35 30 |3fbe14c4|14ff2850|
|00000120| 38 35 64 32 39 38 66 0a | 53 65 6e 64 65 72 3a 20 |85d298f.|Sender: |
|00000130| 6b 65 6e 74 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |kent@spa|rky.imd.|
|00000140| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 20 28 4b 65 |sterling|.com (Ke|
|00000150| 6e 74 20 4c 61 6e 64 66 | 69 65 6c 64 29 0a 4f 72 |nt Landf|ield).Or|
|00000160| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 53 74 65 72 |ganizati|on: Ster|
|00000170| 6c 69 6e 67 20 53 6f 66 | 74 77 61 72 65 0a 52 65 |ling Sof|tware.Re|
|00000180| 66 65 72 65 6e 63 65 73 | 3a 20 3c 63 73 6d 2d 76 |ferences|: <csm-v|
|00000190| 33 33 69 30 39 33 3d 6d | 61 69 6c 61 67 65 6e 74 |33i093=m|ailagent|
|000001a0| 2e 32 33 30 31 31 37 40 | 73 70 61 72 6b 79 2e 49 |.230117@|sparky.I|
|000001b0| 4d 44 2e 53 74 65 72 6c | 69 6e 67 2e 43 4f 4d 3e |MD.Sterl|ing.COM>|
|000001c0| 0a 44 61 74 65 3a 20 46 | 72 69 2c 20 32 30 20 4e |.Date: F|ri, 20 N|
|000001d0| 6f 76 20 31 39 39 32 20 | 32 33 3a 31 33 3a 34 37 |ov 1992 |23:13:47|
|000001e0| 20 47 4d 54 0a 41 70 70 | 72 6f 76 65 64 3a 20 6b | GMT.App|roved: k|
|000001f0| 65 6e 74 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |ent@spar|ky.imd.s|
|00000200| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 0a 4c 69 6e 65 |terling.|com.Line|
|00000210| 73 3a 20 31 34 39 35 0a | 0a 53 75 62 6d 69 74 74 |s: 1495.|.Submitt|
|00000220| 65 64 2d 62 79 3a 20 72 | 61 6d 40 65 69 66 66 65 |ed-by: r|am@eiffe|
|00000230| 6c 2e 63 6f 6d 20 28 52 | 61 70 68 61 65 6c 20 4d |l.com (R|aphael M|
|00000240| 61 6e 66 72 65 64 69 29 | 0a 50 6f 73 74 69 6e 67 |anfredi)|.Posting|
|00000250| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|00000260| 33 33 2c 20 49 73 73 75 | 65 20 31 30 39 0a 41 72 |33, Issu|e 109.Ar|
|00000270| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 6d 61 69 6c |chive-na|me: mail|
|00000280| 61 67 65 6e 74 2f 70 61 | 72 74 31 37 0a 45 6e 76 |agent/pa|rt17.Env|
|00000290| 69 72 6f 6e 6d 65 6e 74 | 3a 20 50 65 72 6c 2c 20 |ironment|: Perl, |
|000002a0| 53 65 6e 64 6d 61 69 6c | 2c 20 55 4e 49 58 0a 0a |Sendmail|, UNIX..|
|000002b0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|000002c0| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|000002d0| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|000002e0| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|000002f0| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 66 65 |is line,| then fe|
|00000300| 65 64 20 69 74 0a 23 20 | 69 6e 74 6f 20 61 20 73 |ed it.# |into a s|
|00000310| 68 65 6c 6c 20 76 69 61 | 20 22 73 68 20 66 69 6c |hell via| "sh fil|
|00000320| 65 22 20 6f 72 20 73 69 | 6d 69 6c 61 72 2e 20 20 |e" or si|milar. |
|00000330| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|00000340| 73 74 69 6e 67 20 66 69 | 6c 65 73 2c 0a 23 20 74 |sting fi|les,.# t|
|00000350| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|00000360| 2e 0a 23 20 43 6f 6e 74 | 65 6e 74 73 3a 20 20 4a |..# Cont|ents: J|
|00000370| 6d 61 6b 65 66 69 6c 65 | 20 61 67 65 6e 74 2f 65 |makefile| agent/e|
|00000380| 78 61 6d 70 6c 65 73 2f | 64 61 65 6d 6f 6e 20 61 |xamples/|daemon a|
|00000390| 67 65 6e 74 2f 65 78 61 | 6d 70 6c 65 73 2f 6d 61 |gent/exa|mples/ma|
|000003a0| 69 6c 66 6f 6c 64 65 72 | 73 0a 23 20 20 20 61 67 |ilfolder|s.# ag|
|000003b0| 65 6e 74 2f 65 78 61 6d | 70 6c 65 73 2f 6d 68 69 |ent/exam|ples/mhi|
|000003c0| 6e 63 20 61 67 65 6e 74 | 2f 65 78 61 6d 70 6c 65 |nc agent|/example|
|000003d0| 73 2f 70 72 6f 66 69 6c | 65 0a 23 20 20 20 61 67 |s/profil|e.# ag|
|000003e0| 65 6e 74 2f 65 78 61 6d | 70 6c 65 73 2f 76 61 63 |ent/exam|ples/vac|
|000003f0| 61 74 69 6f 6e 20 61 67 | 65 6e 74 2f 66 69 6c 65 |ation ag|ent/file|
|00000400| 73 2f 4a 6d 61 6b 65 66 | 69 6c 65 20 61 67 65 6e |s/Jmakef|ile agen|
|00000410| 74 2f 66 69 6c 65 73 2f | 63 6f 6d 6d 61 6e 64 73 |t/files/|commands|
|00000420| 0a 23 20 20 20 61 67 65 | 6e 74 2f 66 69 6c 74 65 |.# age|nt/filte|
|00000430| 72 2f 6d 73 67 2e 68 20 | 61 67 65 6e 74 2f 6d 61 |r/msg.h |agent/ma|
|00000440| 6e 2f 4a 6d 61 6b 65 66 | 69 6c 65 20 61 67 65 6e |n/Jmakef|ile agen|
|00000450| 74 2f 6d 61 6e 2f 6d 61 | 69 6c 64 69 73 74 2e 53 |t/man/ma|ildist.S|
|00000460| 48 0a 23 20 20 20 61 67 | 65 6e 74 2f 6d 61 6e 2f |H.# ag|ent/man/|
|00000470| 6d 61 69 6c 6c 69 73 74 | 2e 53 48 20 61 67 65 6e |maillist|.SH agen|
|00000480| 74 2f 6d 61 6e 2f 6d 61 | 69 6c 70 61 74 63 68 2e |t/man/ma|ilpatch.|
|00000490| 53 48 0a 23 20 20 20 61 | 67 65 6e 74 2f 74 65 73 |SH.# a|gent/tes|
|000004a0| 74 2f 63 6d 64 2f 61 62 | 6f 72 74 2e 74 20 61 67 |t/cmd/ab|ort.t ag|
|000004b0| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 61 6e 6e |ent/test|/cmd/ann|
|000004c0| 6f 74 61 74 65 2e 74 0a | 23 20 20 20 61 67 65 6e |otate.t.|# agen|
|000004d0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 62 65 67 69 6e |t/test/c|md/begin|
|000004e0| 2e 74 20 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d |.t agent|/test/cm|
|000004f0| 64 2f 62 6f 75 6e 63 65 | 2e 74 0a 23 20 20 20 61 |d/bounce|.t.# a|
|00000500| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 64 65 |gent/tes|t/cmd/de|
|00000510| 6c 65 74 65 2e 74 20 61 | 67 65 6e 74 2f 74 65 73 |lete.t a|gent/tes|
|00000520| 74 2f 63 6d 64 2f 66 65 | 65 64 2e 74 0a 23 20 20 |t/cmd/fe|ed.t.# |
|00000530| 20 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f | agent/t|est/cmd/|
|00000540| 66 6f 72 77 61 72 64 2e | 74 20 61 67 65 6e 74 2f |forward.|t agent/|
|00000550| 74 65 73 74 2f 63 6d 64 | 2f 6d 65 73 73 61 67 65 |test/cmd|/message|
|00000560| 2e 74 0a 23 20 20 20 61 | 67 65 6e 74 2f 74 65 73 |.t.# a|gent/tes|
|00000570| 74 2f 63 6d 64 2f 6e 6f | 70 2e 74 20 61 67 65 6e |t/cmd/no|p.t agen|
|00000580| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 6e 6f 74 69 66 |t/test/c|md/notif|
|00000590| 79 2e 74 20 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |y.t agen|t/test/c|
|000005a0| 6d 64 2f 70 61 73 73 2e | 74 0a 23 20 20 20 61 67 |md/pass.|t.# ag|
|000005b0| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 70 69 70 |ent/test|/cmd/pip|
|000005c0| 65 2e 74 20 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |e.t agen|t/test/c|
|000005d0| 6d 64 2f 70 6f 73 74 2e | 74 0a 23 20 20 20 61 67 |md/post.|t.# ag|
|000005e0| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 70 72 6f |ent/test|/cmd/pro|
|000005f0| 63 65 73 73 2e 74 20 61 | 67 65 6e 74 2f 74 65 73 |cess.t a|gent/tes|
|00000600| 74 2f 63 6d 64 2f 70 75 | 72 69 66 79 2e 74 0a 23 |t/cmd/pu|rify.t.#|
|00000610| 20 20 20 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d | agent|/test/cm|
|00000620| 64 2f 71 75 65 75 65 2e | 74 20 61 67 65 6e 74 2f |d/queue.|t agent/|
|00000630| 74 65 73 74 2f 63 6d 64 | 2f 72 65 6a 65 63 74 2e |test/cmd|/reject.|
|00000640| 74 0a 23 20 20 20 61 67 | 65 6e 74 2f 74 65 73 74 |t.# ag|ent/test|
|00000650| 2f 63 6d 64 2f 72 65 73 | 74 61 72 74 2e 74 20 61 |/cmd/res|tart.t a|
|00000660| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 72 65 |gent/tes|t/cmd/re|
|00000670| 73 79 6e 63 2e 74 0a 23 | 20 20 20 61 67 65 6e 74 |sync.t.#| agent|
|00000680| 2f 74 65 73 74 2f 63 6d | 64 2f 73 65 6c 65 63 74 |/test/cm|d/select|
|00000690| 2e 74 20 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d |.t agent|/test/cm|
|000006a0| 64 2f 73 75 62 73 74 2e | 74 20 61 67 65 6e 74 2f |d/subst.|t agent/|
|000006b0| 74 65 73 74 2f 63 6d 64 | 2f 74 72 2e 74 0a 23 20 |test/cmd|/tr.t.# |
|000006c0| 20 20 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 | agent/|test/cmd|
|000006d0| 2f 75 6e 6b 6e 6f 77 6e | 2e 74 20 61 67 65 6e 74 |/unknown|.t agent|
|000006e0| 2f 74 65 73 74 2f 63 6d | 64 2f 76 61 63 61 74 69 |/test/cm|d/vacati|
|000006f0| 6f 6e 2e 74 0a 23 20 20 | 20 61 67 65 6e 74 2f 74 |on.t.# | agent/t|
|00000700| 65 73 74 2f 66 69 6c 74 | 65 72 2f 63 61 73 65 2e |est/filt|er/case.|
|00000710| 74 20 61 67 65 6e 74 2f | 74 65 73 74 2f 66 69 6c |t agent/|test/fil|
|00000720| 74 65 72 2f 65 73 63 61 | 70 65 2e 74 0a 23 20 20 |ter/esca|pe.t.# |
|00000730| 20 61 67 65 6e 74 2f 74 | 65 73 74 2f 66 69 6c 74 | agent/t|est/filt|
|00000740| 65 72 2f 67 72 6f 75 70 | 2e 74 20 61 67 65 6e 74 |er/group|.t agent|
|00000750| 2f 74 65 73 74 2f 66 69 | 6c 74 65 72 2f 6c 6f 6f |/test/fi|lter/loo|
|00000760| 70 2e 74 0a 23 20 20 20 | 61 67 65 6e 74 2f 74 65 |p.t.# |agent/te|
|00000770| 73 74 2f 66 69 6c 74 65 | 72 2f 70 61 74 74 65 72 |st/filte|r/patter|
|00000780| 6e 2e 74 20 61 67 65 6e | 74 2f 74 65 73 74 2f 66 |n.t agen|t/test/f|
|00000790| 69 6c 74 65 72 2f 73 74 | 61 74 75 73 2e 74 0a 23 |ilter/st|atus.t.#|
|000007a0| 20 20 20 61 67 65 6e 74 | 2f 74 65 73 74 2f 6c 65 | agent|/test/le|
|000007b0| 76 65 6c 20 61 67 65 6e | 74 2f 74 65 73 74 2f 6f |vel agen|t/test/o|
|000007c0| 70 74 69 6f 6e 2f 4c 2e | 74 20 61 67 65 6e 74 2f |ption/L.|t agent/|
|000007d0| 74 65 73 74 2f 6f 70 74 | 69 6f 6e 2f 56 2e 74 0a |test/opt|ion/V.t.|
|000007e0| 23 20 20 20 61 67 65 6e | 74 2f 74 65 73 74 2f 6f |# agen|t/test/o|
|000007f0| 70 74 69 6f 6e 2f 68 2e | 74 20 61 67 65 6e 74 2f |ption/h.|t agent/|
|00000800| 74 65 73 74 2f 6f 70 74 | 69 6f 6e 2f 69 2e 74 20 |test/opt|ion/i.t |
|00000810| 61 67 65 6e 74 2f 74 65 | 73 74 2f 6f 70 74 69 6f |agent/te|st/optio|
|00000820| 6e 2f 6f 2e 74 0a 23 20 | 20 20 61 67 65 6e 74 2f |n/o.t.# | agent/|
|00000830| 74 65 73 74 2f 6f 70 74 | 69 6f 6e 2f 72 2e 74 20 |test/opt|ion/r.t |
|00000840| 61 67 65 6e 74 2f 74 65 | 73 74 2f 6f 70 74 69 6f |agent/te|st/optio|
|00000850| 6e 2f 74 2e 74 0a 23 20 | 20 20 61 67 65 6e 74 2f |n/t.t.# | agent/|
|00000860| 74 65 73 74 2f 6f 70 74 | 69 6f 6e 2f 77 68 61 74 |test/opt|ion/what|
|00000870| 2e 74 20 61 67 65 6e 74 | 2f 74 65 73 74 2f 70 6c |.t agent|/test/pl|
|00000880| 2f 63 6d 64 2e 70 6c 0a | 23 20 20 20 61 67 65 6e |/cmd.pl.|# agen|
|00000890| 74 2f 74 65 73 74 2f 70 | 6c 2f 66 69 6c 74 65 72 |t/test/p|l/filter|
|000008a0| 2e 70 6c 20 61 67 65 6e | 74 2f 74 65 73 74 2f 70 |.pl agen|t/test/p|
|000008b0| 6c 2f 69 6e 69 74 2e 70 | 6c 0a 23 20 20 20 61 67 |l/init.p|l.# ag|
|000008c0| 65 6e 74 2f 74 65 73 74 | 2f 70 6c 2f 6c 6f 67 66 |ent/test|/pl/logf|
|000008d0| 69 6c 65 2e 70 6c 20 70 | 61 74 63 68 6c 65 76 65 |ile.pl p|atchleve|
|000008e0| 6c 2e 68 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |l.h.# Wr|apped by|
|000008f0| 20 6b 65 6e 74 40 73 70 | 61 72 6b 79 20 6f 6e 20 | kent@sp|arky on |
|00000900| 57 65 64 20 4e 6f 76 20 | 31 38 20 32 32 3a 34 32 |Wed Nov |18 22:42|
|00000910| 3a 33 35 20 31 39 39 32 | 0a 50 41 54 48 3d 2f 62 |:35 1992|.PATH=/b|
|00000920| 69 6e 3a 2f 75 73 72 2f | 62 69 6e 3a 2f 75 73 72 |in:/usr/|bin:/usr|
|00000930| 2f 75 63 62 3a 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |/ucb:/us|r/local/|
|00000940| 62 69 6e 3a 2f 75 73 72 | 2f 6c 62 69 6e 20 3b 20 |bin:/usr|/lbin ; |
|00000950| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 65 63 68 6f |export P|ATH.echo|
|00000960| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|00000970| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|00000980| 75 20 77 69 6c 6c 20 73 | 65 65 20 74 68 65 20 66 |u will s|ee the f|
|00000990| 6f 6c 6c 6f 77 69 6e 67 | 20 6d 65 73 73 61 67 65 |ollowing| message|
|000009a0| 3a 0a 65 63 68 6f 20 27 | 20 20 20 20 20 20 20 20 |:.echo '| |
|000009b0| 20 20 22 73 68 61 72 3a | 20 45 6e 64 20 6f 66 20 | "shar:| End of |
|000009c0| 61 72 63 68 69 76 65 20 | 31 37 20 28 6f 66 20 31 |archive |17 (of 1|
|000009d0| 37 29 2e 22 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |7)."'.if| test -f|
|000009e0| 20 27 4a 6d 61 6b 65 66 | 69 6c 65 27 20 2d 61 20 | 'Jmakef|ile' -a |
|000009f0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000a00| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000a10| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00000a20| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00000a30| 6c 65 20 5c 22 27 4a 6d | 61 6b 65 66 69 6c 65 27 |le \"'Jm|akefile'|
|00000a40| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00000a50| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00000a60| 5c 22 27 4a 6d 61 6b 65 | 66 69 6c 65 27 5c 22 20 |\"'Jmake|file'\" |
|00000a70| 5c 28 34 37 30 20 63 68 | 61 72 61 63 74 65 72 73 |\(470 ch|aracters|
|00000a80| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00000a90| 22 20 3e 27 4a 6d 61 6b | 65 66 69 6c 65 27 20 3c |" >'Jmak|efile' <|
|00000aa0| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00000ab0| 2f 2a 0a 58 20 2a 20 4d | 61 69 6e 20 4a 6d 61 6b |/*.X * M|ain Jmak|
|00000ac0| 65 66 69 6c 65 20 66 6f | 72 20 6d 61 69 6c 61 67 |efile fo|r mailag|
|00000ad0| 65 6e 74 20 32 2e 39 0a | 58 20 2a 2f 0a 58 0a 58 |ent 2.9.|X */.X.X|
|00000ae0| 3b 23 20 24 49 64 3a 20 | 4a 6d 61 6b 65 66 69 6c |;# $Id: |Jmakefil|
|00000af0| 65 2c 76 20 32 2e 39 20 | 39 32 2f 30 37 2f 31 34 |e,v 2.9 |92/07/14|
|00000b00| 20 31 36 3a 34 36 3a 35 | 37 20 72 61 6d 20 45 78 | 16:46:5|7 ram Ex|
|00000b10| 70 20 24 0a 58 3b 23 0a | 58 3b 23 20 20 43 6f 70 |p $.X;#.|X;# Cop|
|00000b20| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 39 31 2c |yright (|c) 1991,|
|00000b30| 20 52 61 70 68 61 65 6c | 20 4d 61 6e 66 72 65 64 | Raphael| Manfred|
|00000b40| 69 0a 58 3b 23 0a 58 3b | 23 20 20 59 6f 75 20 6d |i.X;#.X;|# You m|
|00000b50| 61 79 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |ay redis|tribute |
|00000b60| 6f 6e 6c 79 20 75 6e 64 | 65 72 20 74 68 65 20 74 |only und|er the t|
|00000b70| 65 72 6d 73 20 6f 66 20 | 74 68 65 20 47 4e 55 20 |erms of |the GNU |
|00000b80| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 0a 58 |General |Public.X|
|00000b90| 3b 23 20 20 4c 69 63 65 | 6e 63 65 20 61 73 20 73 |;# Lice|nce as s|
|00000ba0| 70 65 63 69 66 69 65 64 | 20 69 6e 20 74 68 65 20 |pecified| in the |
|00000bb0| 52 45 41 44 4d 45 20 66 | 69 6c 65 20 74 68 61 74 |README f|ile that|
|00000bc0| 20 63 6f 6d 65 73 20 77 | 69 74 68 20 64 69 73 74 | comes w|ith dist|
|00000bd0| 2e 0a 58 3b 23 0a 58 3b | 23 20 24 4c 6f 67 3a 09 |..X;#.X;|# $Log:.|
|00000be0| 4a 6d 61 6b 65 66 69 6c | 65 2c 76 20 24 0a 58 3b |Jmakefil|e,v $.X;|
|00000bf0| 23 20 52 65 76 69 73 69 | 6f 6e 20 32 2e 39 20 20 |# Revisi|on 2.9 |
|00000c00| 39 32 2f 30 37 2f 31 34 | 20 20 31 36 3a 34 36 3a |92/07/14| 16:46:|
|00000c10| 35 37 20 20 72 61 6d 0a | 58 3b 23 20 33 2e 30 20 |57 ram.|X;# 3.0 |
|00000c20| 62 65 74 61 20 62 61 73 | 65 6c 69 6e 65 2e 0a 58 |beta bas|eline..X|
|00000c30| 3b 23 20 0a 58 0a 58 61 | 6c 6c 3a 3a 0a 58 0a 58 |;# .X.Xa|ll::.X.X|
|00000c40| 4e 6f 4d 61 6e 50 61 67 | 65 73 28 29 0a 58 53 65 |NoManPag|es().XSe|
|00000c50| 74 53 75 62 64 69 72 73 | 28 61 67 65 6e 74 29 0a |tSubdirs|(agent).|
|00000c60| 58 41 64 64 65 64 42 79 | 43 6f 6e 66 69 67 75 72 |XAddedBy|Configur|
|00000c70| 65 28 69 6e 73 74 61 6c | 6c 20 6d 6b 64 65 70 20 |e(instal|l mkdep |
|00000c80| 63 70 70 73 74 64 69 6e | 29 0a 58 44 65 70 65 6e |cppstdin|).XDepen|
|00000c90| 64 53 75 62 64 69 72 73 | 28 29 0a 45 4e 44 5f 4f |dSubdirs|().END_O|
|00000ca0| 46 5f 46 49 4c 45 0a 20 | 20 69 66 20 74 65 73 74 |F_FILE. | if test|
|00000cb0| 20 34 37 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 | 470 -ne| `wc -c |
|00000cc0| 3c 27 4a 6d 61 6b 65 66 | 69 6c 65 27 60 3b 20 74 |<'Jmakef|ile'`; t|
|00000cd0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00000ce0| 72 3a 20 5c 22 27 4a 6d | 61 6b 65 66 69 6c 65 27 |r: \"'Jm|akefile'|
|00000cf0| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00000d00| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00000d10| 69 0a 20 20 23 20 65 6e | 64 20 6f 66 20 27 4a 6d |i. # en|d of 'Jm|
|00000d20| 61 6b 65 66 69 6c 65 27 | 0a 66 69 0a 69 66 20 74 |akefile'|.fi.if t|
|00000d30| 65 73 74 20 2d 66 20 27 | 61 67 65 6e 74 2f 65 78 |est -f '|agent/ex|
|00000d40| 61 6d 70 6c 65 73 2f 64 | 61 65 6d 6f 6e 27 20 2d |amples/d|aemon' -|
|00000d50| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000d60| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000d70| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000d80| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000d90| 66 69 6c 65 20 5c 22 27 | 61 67 65 6e 74 2f 65 78 |file \"'|agent/ex|
|00000da0| 61 6d 70 6c 65 73 2f 64 | 61 65 6d 6f 6e 27 5c 22 |amples/d|aemon'\"|
|00000db0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00000dc0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00000dd0| 27 61 67 65 6e 74 2f 65 | 78 61 6d 70 6c 65 73 2f |'agent/e|xamples/|
|00000de0| 64 61 65 6d 6f 6e 27 5c | 22 20 5c 28 32 39 38 20 |daemon'\|" \(298 |
|00000df0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00000e00| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 61 67 |ed "s/^X|//" >'ag|
|00000e10| 65 6e 74 2f 65 78 61 6d | 70 6c 65 73 2f 64 61 65 |ent/exam|ples/dae|
|00000e20| 6d 6f 6e 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |mon' <<'|END_OF_F|
|00000e30| 49 4c 45 27 0a 58 23 0a | 58 23 20 52 75 6c 65 20 |ILE'.X#.|X# Rule |
|00000e40| 66 69 6c 65 20 66 6f 72 | 20 6d 61 69 6c 61 67 65 |file for| mailage|
|00000e50| 6e 74 0a 58 23 0a 58 0a | 58 6d 61 69 6c 64 69 72 |nt.X#.X.|Xmaildir|
|00000e60| 20 3d 20 7e 2f 6d 61 69 | 6c 3b 0a 58 0a 58 54 6f | = ~/mai|l;.X.XTo|
|00000e70| 20 43 63 3a 20 72 61 6d | 09 09 7b 20 42 45 47 49 | Cc: ram|..{ BEGI|
|00000e80| 4e 20 52 41 4d 3b 20 52 | 45 4a 45 43 54 20 7d 3b |N RAM; R|EJECT };|
|00000e90| 0a 58 0a 58 3c 52 41 4d | 3e 20 46 72 6f 6d 3a 20 |.X.X<RAM|> From: |
|00000ea0| 72 6f 6f 74 2c 20 6d 61 | 69 6c 65 72 2d 64 61 65 |root, ma|iler-dae|
|00000eb0| 6d 6f 6e 2c 20 75 75 63 | 70 09 7b 20 42 45 47 49 |mon, uuc|p.{ BEGI|
|00000ec0| 4e 20 49 4e 49 54 49 41 | 4c 3b 20 52 45 4a 45 43 |N INITIA|L; REJEC|
|00000ed0| 54 20 7d 3b 0a 58 3c 52 | 41 4d 3e 20 7b 20 4f 4e |T };.X<R|AM> { ON|
|00000ee0| 43 45 20 28 25 72 2c 76 | 61 63 61 74 69 6f 6e 2c |CE (%r,v|acation,|
|00000ef0| 31 64 29 20 4d 45 53 53 | 41 47 45 20 7e 2f 2e 76 |1d) MESS|AGE ~/.v|
|00000f00| 61 63 61 74 69 6f 6e 3b | 20 52 45 4a 45 43 54 20 |acation;| REJECT |
|00000f10| 7d 3b 0a 58 0a 58 7b 20 | 4c 45 41 56 45 3b 20 42 |};.X.X{ |LEAVE; B|
|00000f20| 4f 55 4e 43 45 20 72 61 | 6d 40 65 69 66 66 65 6c |OUNCE ra|m@eiffel|
|00000f30| 2e 66 72 20 7d 3b 0a 58 | 0a 58 3c 5f 53 45 45 4e |.fr };.X|.X<_SEEN|
|00000f40| 5f 3e 09 7b 20 44 45 4c | 45 54 45 20 7d 3b 0a 58 |_>.{ DEL|ETE };.X|
|00000f50| 0a 58 23 0a 58 23 20 45 | 6e 64 20 6f 66 20 6d 61 |.X#.X# E|nd of ma|
|00000f60| 69 6c 61 67 65 6e 74 20 | 72 75 6c 65 73 0a 58 23 |ilagent |rules.X#|
|00000f70| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|00000f80| 66 20 74 65 73 74 20 32 | 39 38 20 2d 6e 65 20 60 |f test 2|98 -ne `|
|00000f90| 77 63 20 2d 63 20 3c 27 | 61 67 65 6e 74 2f 65 78 |wc -c <'|agent/ex|
|00000fa0| 61 6d 70 6c 65 73 2f 64 | 61 65 6d 6f 6e 27 60 3b |amples/d|aemon'`;|
|00000fb0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00000fc0| 68 61 72 3a 20 5c 22 27 | 61 67 65 6e 74 2f 65 78 |har: \"'|agent/ex|
|00000fd0| 61 6d 70 6c 65 73 2f 64 | 61 65 6d 6f 6e 27 5c 22 |amples/d|aemon'\"|
|00000fe0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00000ff0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00001000| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 61 67 65 6e | # end |of 'agen|
|00001010| 74 2f 65 78 61 6d 70 6c | 65 73 2f 64 61 65 6d 6f |t/exampl|es/daemo|
|00001020| 6e 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |n'.fi.if| test -f|
|00001030| 20 27 61 67 65 6e 74 2f | 65 78 61 6d 70 6c 65 73 | 'agent/|examples|
|00001040| 2f 6d 61 69 6c 66 6f 6c | 64 65 72 73 27 20 2d 61 |/mailfol|ders' -a|
|00001050| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00001060| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00001070| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00001080| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00001090| 69 6c 65 20 5c 22 27 61 | 67 65 6e 74 2f 65 78 61 |ile \"'a|gent/exa|
|000010a0| 6d 70 6c 65 73 2f 6d 61 | 69 6c 66 6f 6c 64 65 72 |mples/ma|ilfolder|
|000010b0| 73 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |s'\".els|e. echo|
|000010c0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000010d0| 67 20 5c 22 27 61 67 65 | 6e 74 2f 65 78 61 6d 70 |g \"'age|nt/examp|
|000010e0| 6c 65 73 2f 6d 61 69 6c | 66 6f 6c 64 65 72 73 27 |les/mail|folders'|
|000010f0| 5c 22 20 5c 28 32 34 39 | 20 63 68 61 72 61 63 74 |\" \(249| charact|
|00001100| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00001110| 58 2f 2f 22 20 3e 27 61 | 67 65 6e 74 2f 65 78 61 |X//" >'a|gent/exa|
|00001120| 6d 70 6c 65 73 2f 6d 61 | 69 6c 66 6f 6c 64 65 72 |mples/ma|ilfolder|
|00001130| 73 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |s' <<'EN|D_OF_FIL|
|00001140| 45 27 0a 58 23 0a 58 23 | 20 46 6f 6c 64 65 72 73 |E'.X#.X#| Folders|
|00001150| 20 77 68 69 63 68 20 73 | 68 6f 75 6c 64 20 62 65 | which s|hould be|
|00001160| 20 73 63 61 6e 6e 65 64 | 20 62 79 20 6b 73 68 20 | scanned| by ksh |
|00001170| 66 6f 72 20 6e 65 77 20 | 6d 61 69 6c 0a 58 23 0a |for new |mail.X#.|
|00001180| 58 7e 2f 6d 61 69 6c 2f | 66 74 70 2e 6d 61 69 6c |X~/mail/|ftp.mail|
|00001190| 0a 58 7e 2f 6d 61 69 6c | 2f 63 6d 64 73 0a 58 7e |.X~/mail|/cmds.X~|
|000011a0| 2f 6d 62 6f 78 2e 66 69 | 6c 74 65 72 0a 58 7e 2f |/mbox.fi|lter.X~/|
|000011b0| 6d 62 6f 78 2e 75 72 67 | 65 6e 74 0a 58 7e 2f 6d |mbox.urg|ent.X~/m|
|000011c0| 61 69 6c 2f 67 75 65 0a | 58 7e 2f 6d 61 69 6c 2f |ail/gue.|X~/mail/|
|000011d0| 63 6f 6d 70 2e 6d 61 69 | 6c 2e 6d 68 0a 58 7e 2f |comp.mai|l.mh.X~/|
|000011e0| 6d 61 69 6c 2f 75 6e 69 | 78 2d 73 72 63 0a 58 7e |mail/uni|x-src.X~|
|000011f0| 2f 6d 61 69 6c 2f 75 6e | 69 78 2d 77 69 7a 0a 58 |/mail/un|ix-wiz.X|
|00001200| 7e 2f 6d 61 69 6c 2f 61 | 64 6d 69 6e 0a 58 7e 2f |~/mail/a|dmin.X~/|
|00001210| 6d 61 69 6c 2f 69 73 65 | 0a 58 7e 2f 6d 61 69 6c |mail/ise|.X~/mail|
|00001220| 2f 72 64 62 0a 58 7e 2f | 6d 61 69 6c 2f 64 69 73 |/rdb.X~/|mail/dis|
|00001230| 74 0a 58 7e 2f 6d 61 69 | 6c 2f 66 72 6f 67 0a 58 |t.X~/mai|l/frog.X|
|00001240| 7e 2f 6d 61 69 6c 2f 6d | 61 67 69 63 0a 45 4e 44 |~/mail/m|agic.END|
|00001250| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00001260| 73 74 20 32 34 39 20 2d | 6e 65 20 60 77 63 20 2d |st 249 -|ne `wc -|
|00001270| 63 20 3c 27 61 67 65 6e | 74 2f 65 78 61 6d 70 6c |c <'agen|t/exampl|
|00001280| 65 73 2f 6d 61 69 6c 66 | 6f 6c 64 65 72 73 27 60 |es/mailf|olders'`|
|00001290| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|000012a0| 73 68 61 72 3a 20 5c 22 | 27 61 67 65 6e 74 2f 65 |shar: \"|'agent/e|
|000012b0| 78 61 6d 70 6c 65 73 2f | 6d 61 69 6c 66 6f 6c 64 |xamples/|mailfold|
|000012c0| 65 72 73 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ers'\" u|npacked |
|000012d0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000012e0| 0a 20 20 66 69 0a 20 20 | 23 20 65 6e 64 20 6f 66 |. fi. |# end of|
|000012f0| 20 27 61 67 65 6e 74 2f | 65 78 61 6d 70 6c 65 73 | 'agent/|examples|
|00001300| 2f 6d 61 69 6c 66 6f 6c | 64 65 72 73 27 0a 66 69 |/mailfol|ders'.fi|
|00001310| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 67 65 |.if test| -f 'age|
|00001320| 6e 74 2f 65 78 61 6d 70 | 6c 65 73 2f 6d 68 69 6e |nt/examp|les/mhin|
|00001330| 63 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |c' -a "$|{1}" != |
|00001340| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00001350| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00001360| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00001370| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 67 65 6e |ing file| \"'agen|
|00001380| 74 2f 65 78 61 6d 70 6c | 65 73 2f 6d 68 69 6e 63 |t/exampl|es/mhinc|
|00001390| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|000013a0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000013b0| 20 5c 22 27 61 67 65 6e | 74 2f 65 78 61 6d 70 6c | \"'agen|t/exampl|
|000013c0| 65 73 2f 6d 68 69 6e 63 | 27 5c 22 20 5c 28 36 37 |es/mhinc|'\" \(67|
|000013d0| 36 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |6 charac|ters\). |
|000013e0| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|000013f0| 61 67 65 6e 74 2f 65 78 | 61 6d 70 6c 65 73 2f 6d |agent/ex|amples/m|
|00001400| 68 69 6e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |hinc' <<|'END_OF_|
|00001410| 46 49 4c 45 27 0a 58 23 | 21 20 2f 62 69 6e 2f 73 |FILE'.X#|! /bin/s|
|00001420| 68 0a 58 23 20 40 28 23 | 29 20 69 6e 63 6f 72 70 |h.X# @(#|) incorp|
|00001430| 6f 72 61 74 65 73 20 6d | 61 69 6c 20 69 6e 20 61 |orates m|ail in a|
|00001440| 6e 20 6d 68 20 66 6f 6c | 64 65 72 20 66 72 6f 6d |n mh fol|der from|
|00001450| 20 61 20 6d 61 69 6c 2f | 6e 65 77 73 20 66 6f 6c | a mail/|news fol|
|00001460| 64 65 72 0a 58 0a 58 69 | 66 20 74 65 73 74 20 24 |der.X.Xi|f test $|
|00001470| 23 20 2d 65 71 20 30 3b | 20 74 68 65 6e 0a 58 09 |# -eq 0;| then.X.|
|00001480| 65 78 65 63 20 69 6e 63 | 0a 58 66 69 0a 58 0a 58 |exec inc|.Xfi.X.X|
|00001490| 69 66 20 66 6f 6c 64 65 | 72 3d 22 24 48 4f 4d 45 |if folde|r="$HOME|
|000014a0| 2f 6d 61 69 6c 2f 24 31 | 22 20 26 26 20 74 65 73 |/mail/$1|" && tes|
|000014b0| 74 20 2d 73 20 24 66 6f | 6c 64 65 72 3b 20 74 68 |t -s $fo|lder; th|
|000014c0| 65 6e 0a 58 09 3a 0a 58 | 65 6c 69 66 20 66 6f 6c |en.X.:.X|elif fol|
|000014d0| 64 65 72 3d 22 24 48 4f | 4d 45 2f 6e 65 77 73 2f |der="$HO|ME/news/|
|000014e0| 24 31 22 20 26 26 20 74 | 65 73 74 20 2d 73 20 24 |$1" && t|est -s $|
|000014f0| 66 6f 6c 64 65 72 3b 20 | 74 68 65 6e 0a 58 09 3a |folder; |then.X.:|
|00001500| 0a 58 65 6c 73 65 0a 58 | 09 65 63 68 6f 20 22 6d |.Xelse.X|.echo "m|
|00001510| 68 69 6e 63 3a 20 6e 6f | 20 6d 61 69 6c 20 74 6f |hinc: no| mail to|
|00001520| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 22 0a 58 09 | incorpo|rate".X.|
|00001530| 65 78 69 74 20 30 0a 58 | 66 69 0a 58 0a 58 69 66 |exit 0.X|fi.X.Xif|
|00001540| 20 74 65 73 74 20 2d 64 | 20 24 66 6f 6c 64 65 72 | test -d| $folder|
|00001550| 3b 20 74 68 65 6e 0a 58 | 09 65 63 68 6f 20 22 6d |; then.X|.echo "m|
|00001560| 68 69 6e 63 3a 20 24 66 | 6f 6c 64 65 72 20 69 73 |hinc: $f|older is|
|00001570| 20 61 20 64 69 72 65 63 | 74 6f 72 79 21 22 0a 58 | a direc|tory!".X|
|00001580| 09 65 78 69 74 20 30 0a | 58 66 69 0a 58 0a 58 65 |.exit 0.|Xfi.X.Xe|
|00001590| 63 68 6f 20 22 6d 68 69 | 6e 63 3a 20 75 73 69 6e |cho "mhi|nc: usin|
|000015a0| 67 20 24 66 6f 6c 64 65 | 72 22 0a 58 69 6e 63 20 |g $folde|r".Xinc |
|000015b0| 2b 24 31 20 2d 66 69 6c | 65 20 24 66 6f 6c 64 65 |+$1 -fil|e $folde|
|000015c0| 72 20 2d 74 72 75 6e 63 | 61 74 65 0a 58 0a 58 23 |r -trunc|ate.X.X#|
|000015d0| 20 44 6f 20 6e 6f 74 20 | 6c 65 61 76 65 20 7a 65 | Do not |leave ze|
|000015e0| 72 6f 2d 6c 65 6e 67 74 | 68 20 66 69 6c 65 73 2e |ro-lengt|h files.|
|000015f0| 20 54 68 69 73 20 6d 61 | 79 20 6c 65 61 64 20 74 | This ma|y lead t|
|00001600| 6f 20 73 6f 6d 65 20 74 | 72 6f 75 62 6c 65 20 77 |o some t|rouble w|
|00001610| 68 65 6e 0a 58 23 20 73 | 61 76 69 6e 67 20 6e 65 |hen.X# s|aving ne|
|00001620| 77 73 20 61 72 74 69 63 | 6c 65 73 20 69 6e 20 74 |ws artic|les in t|
|00001630| 68 65 6d 20 28 74 72 6e | 20 77 69 6c 6c 20 6e 6f |hem (trn| will no|
|00001640| 74 20 72 65 63 6f 67 6e | 69 7a 65 20 74 68 65 20 |t recogn|ize the |
|00001650| 22 6d 61 69 6c 62 6f 78 | 22 0a 58 23 20 66 6f 72 |"mailbox|".X# for|
|00001660| 6d 61 74 2c 20 77 68 69 | 63 68 20 69 73 20 72 65 |mat, whi|ch is re|
|00001670| 71 75 69 72 65 64 20 62 | 79 20 69 6e 63 29 2e 0a |quired b|y inc)..|
|00001680| 58 0a 58 69 66 20 74 65 | 73 74 20 2d 73 20 24 66 |X.Xif te|st -s $f|
|00001690| 6f 6c 64 65 72 3b 20 74 | 68 65 6e 0a 58 09 65 63 |older; t|hen.X.ec|
|000016a0| 68 6f 20 22 6d 68 69 6e | 63 3a 20 66 6f 6c 64 65 |ho "mhin|c: folde|
|000016b0| 72 20 77 61 73 20 6e 6f | 74 20 65 6d 70 74 69 65 |r was no|t emptie|
|000016c0| 64 22 0a 58 65 6c 73 65 | 0a 58 09 72 6d 20 24 66 |d".Xelse|.X.rm $f|
|000016d0| 6f 6c 64 65 72 0a 58 66 | 69 0a 58 0a 45 4e 44 5f |older.Xf|i.X.END_|
|000016e0| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|000016f0| 74 20 36 37 36 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 676 -n|e `wc -c|
|00001700| 20 3c 27 61 67 65 6e 74 | 2f 65 78 61 6d 70 6c 65 | <'agent|/example|
|00001710| 73 2f 6d 68 69 6e 63 27 | 60 3b 20 74 68 65 6e 0a |s/mhinc'|`; then.|
|00001720| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001730| 22 27 61 67 65 6e 74 2f | 65 78 61 6d 70 6c 65 73 |"'agent/|examples|
|00001740| 2f 6d 68 69 6e 63 27 5c | 22 20 75 6e 70 61 63 6b |/mhinc'\|" unpack|
|00001750| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00001760| 7a 65 21 0a 20 20 66 69 | 0a 20 20 63 68 6d 6f 64 |ze!. fi|. chmod|
|00001770| 20 2b 78 20 27 61 67 65 | 6e 74 2f 65 78 61 6d 70 | +x 'age|nt/examp|
|00001780| 6c 65 73 2f 6d 68 69 6e | 63 27 0a 20 20 23 20 65 |les/mhin|c'. # e|
|00001790| 6e 64 20 6f 66 20 27 61 | 67 65 6e 74 2f 65 78 61 |nd of 'a|gent/exa|
|000017a0| 6d 70 6c 65 73 2f 6d 68 | 69 6e 63 27 0a 66 69 0a |mples/mh|inc'.fi.|
|000017b0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 67 65 6e |if test |-f 'agen|
|000017c0| 74 2f 65 78 61 6d 70 6c | 65 73 2f 70 72 6f 66 69 |t/exampl|es/profi|
|000017d0| 6c 65 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |le' -a "|${1}" !=|
|000017e0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|000017f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001800| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001810| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 67 65 |ting fil|e \"'age|
|00001820| 6e 74 2f 65 78 61 6d 70 | 6c 65 73 2f 70 72 6f 66 |nt/examp|les/prof|
|00001830| 69 6c 65 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |ile'\".e|lse. ec|
|00001840| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00001850| 69 6e 67 20 5c 22 27 61 | 67 65 6e 74 2f 65 78 61 |ing \"'a|gent/exa|
|00001860| 6d 70 6c 65 73 2f 70 72 | 6f 66 69 6c 65 27 5c 22 |mples/pr|ofile'\"|
|00001870| 20 5c 28 34 39 37 20 63 | 68 61 72 61 63 74 65 72 | \(497 c|haracter|
|00001880| 73 5c 29 0a 20 20 73 65 | 64 20 22 73 2f 5e 58 2f |s\). se|d "s/^X/|
|00001890| 2f 22 20 3e 27 61 67 65 | 6e 74 2f 65 78 61 6d 70 |/" >'age|nt/examp|
|000018a0| 6c 65 73 2f 70 72 6f 66 | 69 6c 65 27 20 3c 3c 27 |les/prof|ile' <<'|
|000018b0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 20 |END_OF_F|ILE'.X# |
|000018c0| 43 68 65 63 6b 20 66 6f | 72 20 6d 61 69 6c 20 65 |Check fo|r mail e|
|000018d0| 76 65 72 79 20 6d 69 6e | 75 74 65 0a 58 4d 41 49 |very min|ute.XMAI|
|000018e0| 4c 43 48 45 43 4b 3d 36 | 30 0a 58 65 78 70 6f 72 |LCHECK=6|0.Xexpor|
|000018f0| 74 20 4d 41 49 4c 43 48 | 45 43 4b 0a 58 0a 58 23 |t MAILCH|ECK.X.X#|
|00001900| 20 57 68 65 72 65 20 69 | 73 20 74 68 65 20 73 79 | Where i|s the sy|
|00001910| 73 74 65 6d 20 6d 61 69 | 6c 62 6f 78 20 3f 0a 58 |stem mai|lbox ?.X|
|00001920| 69 66 20 74 65 73 74 20 | 22 24 4d 41 49 4c 22 3b |if test |"$MAIL";|
|00001930| 20 74 68 65 6e 0a 58 09 | 6d 61 69 6c 62 6f 78 3d | then.X.|mailbox=|
|00001940| 24 4d 41 49 4c 0a 58 65 | 6c 69 66 20 74 65 73 74 |$MAIL.Xe|lif test|
|00001950| 20 2d 64 20 2f 75 73 72 | 2f 6d 61 69 6c 3b 20 74 | -d /usr|/mail; t|
|00001960| 68 65 6e 0a 58 09 6d 61 | 69 6c 62 6f 78 3d 2f 75 |hen.X.ma|ilbox=/u|
|00001970| 73 72 2f 6d 61 69 6c 2f | 72 61 6d 0a 58 65 6c 73 |sr/mail/|ram.Xels|
|00001980| 65 0a 58 09 6d 61 69 6c | 62 6f 78 3d 2f 75 73 72 |e.X.mail|box=/usr|
|00001990| 2f 73 70 6f 6f 6c 2f 6d | 61 69 6c 2f 72 61 6d 0a |/spool/m|ail/ram.|
|000019a0| 58 66 69 0a 58 0a 58 23 | 20 4c 69 73 74 20 6f 66 |Xfi.X.X#| List of|
|000019b0| 20 66 6f 6c 64 65 72 73 | 20 74 6f 20 6c 6f 6f 6b | folders| to look|
|000019c0| 20 61 74 20 66 6f 72 20 | 6e 65 77 20 6d 61 69 6c | at for |new mail|
|000019d0| 0a 58 4d 41 49 4c 50 41 | 54 48 3d 24 6d 61 69 6c |.XMAILPA|TH=$mail|
|000019e0| 62 6f 78 0a 58 0a 58 23 | 20 4c 69 73 74 20 61 6c |box.X.X#| List al|
|000019f0| 6c 20 74 68 65 20 66 6f | 6c 64 65 72 73 20 74 6f |l the fo|lders to|
|00001a00| 20 62 65 20 73 63 61 6e | 6e 65 64 20 66 6f 72 2c | be scan|ned for,|
|00001a10| 20 6f 6e 65 20 70 65 72 | 20 6c 69 6e 65 0a 58 69 | one per| line.Xi|
|00001a20| 66 20 74 65 73 74 20 2d | 66 20 24 48 4f 4d 45 2f |f test -|f $HOME/|
|00001a30| 2e 6d 61 69 6c 66 6f 6c | 64 65 72 73 3b 20 74 68 |.mailfol|ders; th|
|00001a40| 65 6e 0a 58 09 4d 41 49 | 4c 50 41 54 48 3d 60 73 |en.X.MAI|LPATH=`s|
|00001a50| 65 64 20 5c 0a 58 09 09 | 2d 65 20 27 2f 5e 5b 20 |ed \.X..|-e '/^[ |
|00001a60| 09 5d 2a 23 2f 64 27 20 | 5c 0a 58 09 09 2d 65 20 |.]*#/d' |\.X..-e |
|00001a70| 22 73 7c 7e 7c 24 48 4f | 4d 45 7c 67 22 20 3c 24 |"s|~|$HO|ME|g" <$|
|00001a80| 48 4f 4d 45 2f 2e 6d 61 | 69 6c 66 6f 6c 64 65 72 |HOME/.ma|ilfolder|
|00001a90| 73 20 5c 0a 58 09 09 7c | 20 74 72 20 27 5c 30 31 |s \.X..|| tr '\01|
|00001aa0| 32 27 20 27 3a 27 60 24 | 6d 61 69 6c 62 6f 78 0a |2' ':'`$|mailbox.|
|00001ab0| 58 66 69 0a 58 0a 58 65 | 78 70 6f 72 74 20 4d 41 |Xfi.X.Xe|xport MA|
|00001ac0| 49 4c 50 41 54 48 0a 45 | 4e 44 5f 4f 46 5f 46 49 |ILPATH.E|ND_OF_FI|
|00001ad0| 4c 45 0a 20 20 69 66 20 | 74 65 73 74 20 34 39 37 |LE. if |test 497|
|00001ae0| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 61 67 | -ne `wc| -c <'ag|
|00001af0| 65 6e 74 2f 65 78 61 6d | 70 6c 65 73 2f 70 72 6f |ent/exam|ples/pro|
|00001b00| 66 69 6c 65 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |file'`; |then. |
|00001b10| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 61 | echo sh|ar: \"'a|
|00001b20| 67 65 6e 74 2f 65 78 61 | 6d 70 6c 65 73 2f 70 72 |gent/exa|mples/pr|
|00001b30| 6f 66 69 6c 65 27 5c 22 | 20 75 6e 70 61 63 6b 65 |ofile'\"| unpacke|
|00001b40| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001b50| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00001b60| 6f 66 20 27 61 67 65 6e | 74 2f 65 78 61 6d 70 6c |of 'agen|t/exampl|
|00001b70| 65 73 2f 70 72 6f 66 69 | 6c 65 27 0a 66 69 0a 69 |es/profi|le'.fi.i|
|00001b80| 66 20 74 65 73 74 20 2d | 66 20 27 61 67 65 6e 74 |f test -|f 'agent|
|00001b90| 2f 65 78 61 6d 70 6c 65 | 73 2f 76 61 63 61 74 69 |/example|s/vacati|
|00001ba0| 6f 6e 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |on' -a "|${1}" !=|
|00001bb0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001bc0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001bd0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001be0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 67 65 |ting fil|e \"'age|
|00001bf0| 6e 74 2f 65 78 61 6d 70 | 6c 65 73 2f 76 61 63 61 |nt/examp|les/vaca|
|00001c00| 74 69 6f 6e 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |tion'\".|else. e|
|00001c10| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00001c20| 74 69 6e 67 20 5c 22 27 | 61 67 65 6e 74 2f 65 78 |ting \"'|agent/ex|
|00001c30| 61 6d 70 6c 65 73 2f 76 | 61 63 61 74 69 6f 6e 27 |amples/v|acation'|
|00001c40| 5c 22 20 5c 28 35 33 32 | 20 63 68 61 72 61 63 74 |\" \(532| charact|
|00001c50| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00001c60| 58 2f 2f 22 20 3e 27 61 | 67 65 6e 74 2f 65 78 61 |X//" >'a|gent/exa|
|00001c70| 6d 70 6c 65 73 2f 76 61 | 63 61 74 69 6f 6e 27 20 |mples/va|cation' |
|00001c80| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00001c90| 58 53 75 62 6a 65 63 74 | 3a 20 54 68 69 73 20 69 |XSubject|: This i|
|00001ca0| 73 20 61 20 72 65 63 6f | 72 64 69 6e 67 2e 2e 2e |s a reco|rding...|
|00001cb0| 20 5b 52 65 3a 20 25 52 | 5d 0a 58 4f 72 67 61 6e | [Re: %R|].XOrgan|
|00001cc0| 69 7a 61 74 69 6f 6e 3a | 20 25 6f 0a 58 0a 58 5b |ization:| %o.X.X[|
|00001cd0| 54 68 69 73 20 69 73 20 | 61 20 72 65 63 6f 72 64 |This is |a record|
|00001ce0| 69 6e 67 20 2d 2d 20 4c | 61 73 74 20 72 65 76 69 |ing -- L|ast revi|
|00001cf0| 73 69 6f 6e 20 77 61 73 | 20 6d 61 64 65 20 6f 6e |sion was| made on|
|00001d00| 20 25 54 5d 0a 58 0a 58 | 48 65 6c 6c 6f 20 25 4e | %T].X.X|Hello %N|
|00001d10| 3a 0a 58 0a 58 49 20 68 | 61 76 65 20 72 65 63 65 |:.X.XI h|ave rece|
|00001d20| 69 76 65 64 20 79 6f 75 | 72 20 6d 65 73 73 61 67 |ived you|r messag|
|00001d30| 65 20 6f 66 20 25 5b 44 | 61 74 65 5d 2c 20 77 68 |e of %[D|ate], wh|
|00001d40| 6f 73 65 20 73 75 62 6a | 65 63 74 0a 58 77 61 73 |ose subj|ect.Xwas|
|00001d50| 20 22 25 73 22 20 61 6e | 64 20 64 72 6f 70 70 65 | "%s" an|d droppe|
|00001d60| 64 20 69 74 20 69 6e 74 | 6f 20 25 75 27 73 20 6d |d it int|o %u's m|
|00001d70| 61 69 6c 62 6f 78 2e 0a | 58 49 27 6c 6c 20 73 65 |ailbox..|XI'll se|
|00001d80| 6e 64 20 79 6f 75 20 73 | 75 63 68 20 61 6e 20 61 |nd you s|uch an a|
|00001d90| 63 6b 6e 6f 77 6c 65 64 | 67 6d 65 6e 74 20 6f 6e |cknowled|gment on|
|00001da0| 6c 79 20 6f 6e 63 65 20 | 61 20 64 61 79 2c 20 75 |ly once |a day, u|
|00001db0| 6e 6c 65 73 73 20 79 6f | 75 72 20 6d 65 73 73 61 |nless yo|ur messa|
|00001dc0| 67 65 20 69 73 0a 58 66 | 69 6c 74 65 72 65 64 20 |ge is.Xf|iltered |
|00001dd0| 69 6e 74 6f 20 6f 6e 65 | 20 6f 66 20 25 75 27 73 |into one| of %u's|
|00001de0| 20 6d 61 69 6c 20 66 6f | 6c 64 65 72 73 2c 20 77 | mail fo|lders, w|
|00001df0| 68 6f 73 65 20 72 65 61 | 64 69 6e 67 20 69 73 20 |hose rea|ding is |
|00001e00| 64 65 6c 61 79 65 64 20 | 61 6e 79 77 61 79 2e 0a |delayed |anyway..|
|00001e10| 58 28 59 6f 75 72 20 6d | 61 69 6c 20 77 61 73 20 |X(Your m|ail was |
|00001e20| 72 65 63 65 69 76 65 64 | 20 62 79 20 61 20 70 72 |received| by a pr|
|00001e30| 6f 67 72 61 6d 2c 20 6e | 6f 74 20 62 79 20 61 20 |ogram, n|ot by a |
|00001e40| 70 65 72 73 6f 6e 2c 20 | 69 6e 20 63 61 73 65 20 |person, |in case |
|00001e50| 79 6f 75 20 77 6f 6e 64 | 65 72 2e 29 0a 58 0a 58 |you wond|er.).X.X|
|00001e60| 25 55 20 74 6f 6c 64 20 | 6d 65 3a 0a 58 0a 58 53 |%U told |me:.X.XS|
|00001e70| 75 69 74 61 62 6c 65 20 | 76 61 63 61 74 69 6f 6e |uitable |vacation|
|00001e80| 20 6d 65 73 73 61 67 65 | 20 67 6f 65 73 20 68 65 | message| goes he|
|00001e90| 72 65 2e 2e 2e 0a 58 0a | 58 2d 2d 20 6d 61 69 6c |re....X.|X-- mail|
|00001ea0| 61 67 65 6e 74 20 73 70 | 65 61 6b 69 6e 67 20 66 |agent sp|eaking f|
|00001eb0| 6f 72 20 25 75 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |or %u.EN|D_OF_FIL|
|00001ec0| 45 0a 20 20 69 66 20 74 | 65 73 74 20 35 33 32 20 |E. if t|est 532 |
|00001ed0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 61 67 65 |-ne `wc |-c <'age|
|00001ee0| 6e 74 2f 65 78 61 6d 70 | 6c 65 73 2f 76 61 63 61 |nt/examp|les/vaca|
|00001ef0| 74 69 6f 6e 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |tion'`; |then. |
|00001f00| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 61 | echo sh|ar: \"'a|
|00001f10| 67 65 6e 74 2f 65 78 61 | 6d 70 6c 65 73 2f 76 61 |gent/exa|mples/va|
|00001f20| 63 61 74 69 6f 6e 27 5c | 22 20 75 6e 70 61 63 6b |cation'\|" unpack|
|00001f30| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00001f40| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|00001f50| 20 6f 66 20 27 61 67 65 | 6e 74 2f 65 78 61 6d 70 | of 'age|nt/examp|
|00001f60| 6c 65 73 2f 76 61 63 61 | 74 69 6f 6e 27 0a 66 69 |les/vaca|tion'.fi|
|00001f70| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 67 65 |.if test| -f 'age|
|00001f80| 6e 74 2f 66 69 6c 65 73 | 2f 4a 6d 61 6b 65 66 69 |nt/files|/Jmakefi|
|00001f90| 6c 65 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |le' -a "|${1}" !=|
|00001fa0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001fb0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001fc0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001fd0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 67 65 |ting fil|e \"'age|
|00001fe0| 6e 74 2f 66 69 6c 65 73 | 2f 4a 6d 61 6b 65 66 69 |nt/files|/Jmakefi|
|00001ff0| 6c 65 27 5c 22 0a 65 6c | 73 65 0a 20 20 65 63 68 |le'\".el|se. ech|
|00002000| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00002010| 6e 67 20 5c 22 27 61 67 | 65 6e 74 2f 66 69 6c 65 |ng \"'ag|ent/file|
|00002020| 73 2f 4a 6d 61 6b 65 66 | 69 6c 65 27 5c 22 20 5c |s/Jmakef|ile'\" \|
|00002030| 28 36 35 33 20 63 68 61 | 72 61 63 74 65 72 73 5c |(653 cha|racters\|
|00002040| 29 0a 20 20 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |). sed |"s/^X//"|
|00002050| 20 3e 27 61 67 65 6e 74 | 2f 66 69 6c 65 73 2f 4a | >'agent|/files/J|
|00002060| 6d 61 6b 65 66 69 6c 65 | 27 20 3c 3c 27 45 4e 44 |makefile|' <<'END|
|00002070| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 0a 58 20 |_OF_FILE|'.X/*.X |
|00002080| 2a 20 4a 6d 61 6b 65 66 | 69 6c 65 20 66 6f 72 20 |* Jmakef|ile for |
|00002090| 6d 61 69 6c 61 67 65 6e | 74 27 73 20 66 69 6c 65 |mailagen|t's file|
|000020a0| 73 0a 58 20 2a 2f 0a 58 | 0a 58 3b 23 20 24 49 64 |s.X */.X|.X;# $Id|
|000020b0| 3a 20 4a 6d 61 6b 65 66 | 69 6c 65 2c 76 20 32 2e |: Jmakef|ile,v 2.|
|000020c0| 39 20 39 32 2f 30 37 2f | 31 34 20 31 36 3a 34 37 |9 92/07/|14 16:47|
|000020d0| 3a 33 32 20 72 61 6d 20 | 45 78 70 20 24 0a 58 3b |:32 ram |Exp $.X;|
|000020e0| 23 0a 58 3b 23 20 20 43 | 6f 70 79 72 69 67 68 74 |#.X;# C|opyright|
|000020f0| 20 28 63 29 20 31 39 39 | 31 2c 20 52 61 70 68 61 | (c) 199|1, Rapha|
|00002100| 65 6c 20 4d 61 6e 66 72 | 65 64 69 0a 58 3b 23 0a |el Manfr|edi.X;#.|
|00002110| 58 3b 23 20 20 59 6f 75 | 20 6d 61 79 20 72 65 64 |X;# You| may red|
|00002120| 69 73 74 72 69 62 75 74 | 65 20 6f 6e 6c 79 20 75 |istribut|e only u|
|00002130| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00002140| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|00002150| 6c 20 50 75 62 6c 69 63 | 0a 58 3b 23 20 20 4c 69 |l Public|.X;# Li|
|00002160| 63 65 6e 63 65 20 61 73 | 20 73 70 65 63 69 66 69 |cence as| specifi|
|00002170| 65 64 20 69 6e 20 74 68 | 65 20 52 45 41 44 4d 45 |ed in th|e README|
|00002180| 20 66 69 6c 65 20 74 68 | 61 74 20 63 6f 6d 65 73 | file th|at comes|
|00002190| 20 77 69 74 68 20 64 69 | 73 74 2e 0a 58 3b 23 0a | with di|st..X;#.|
|000021a0| 58 3b 23 20 24 4c 6f 67 | 3a 09 4a 6d 61 6b 65 66 |X;# $Log|:.Jmakef|
|000021b0| 69 6c 65 2c 76 20 24 0a | 58 3b 23 20 52 65 76 69 |ile,v $.|X;# Revi|
|000021c0| 73 69 6f 6e 20 32 2e 39 | 20 20 39 32 2f 30 37 2f |sion 2.9| 92/07/|
|000021d0| 31 34 20 20 31 36 3a 34 | 37 3a 33 32 20 20 72 61 |14 16:4|7:32 ra|
|000021e0| 6d 0a 58 3b 23 20 33 2e | 30 20 62 65 74 61 20 62 |m.X;# 3.|0 beta b|
|000021f0| 61 73 65 6c 69 6e 65 2e | 0a 58 3b 23 20 0a 58 0a |aseline.|.X;# .X.|
|00002200| 58 46 49 4c 45 53 20 3d | 20 61 67 65 6e 74 68 65 |XFILES =| agenthe|
|00002210| 6c 70 20 63 6f 6d 6d 61 | 6e 64 73 20 64 69 73 74 |lp comma|nds dist|
|00002220| 72 69 62 73 20 66 69 6c | 74 65 72 2e 73 68 20 6d |ribs fil|ter.sh m|
|00002230| 61 69 6c 61 67 65 6e 74 | 2e 63 66 20 70 72 6f 67 |ailagent|.cf prog|
|00002240| 6c 69 73 74 20 5c 0a 58 | 09 63 68 6b 61 67 65 6e |list \.X|.chkagen|
|00002250| 74 2e 73 68 0a 58 0a 58 | 3e 50 52 49 56 4c 49 42 |t.sh.X.X|>PRIVLIB|
|00002260| 09 2f 2a 20 46 6f 72 63 | 65 20 6d 65 74 61 63 6f |./* Forc|e metaco|
|00002270| 6e 66 69 67 20 74 6f 20 | 61 73 6b 20 66 6f 72 20 |nfig to |ask for |
|00002280| 70 72 69 76 6c 69 62 20 | 6c 6f 63 61 74 69 6f 6e |privlib |location|
|00002290| 20 2a 2f 0a 58 0a 58 61 | 6c 6c 3a 3a 0a 58 0a 58 | */.X.Xa|ll::.X.X|
|000022a0| 4d 61 6b 65 49 6e 73 74 | 61 6c 6c 44 69 72 65 63 |MakeInst|allDirec|
|000022b0| 74 6f 72 69 65 73 28 24 | 28 50 52 49 56 4c 49 42 |tories($|(PRIVLIB|
|000022c0| 29 20 24 28 50 52 49 56 | 4c 49 42 29 2f 6d 61 69 |) $(PRIV|LIB)/mai|
|000022d0| 6c 61 67 65 6e 74 29 0a | 58 49 6e 73 74 61 6c 6c |lagent).|XInstall|
|000022e0| 4d 75 6c 74 69 70 6c 65 | 44 65 73 74 46 6c 61 67 |Multiple|DestFlag|
|000022f0| 73 28 69 6e 73 74 61 6c | 6c 2c 24 28 46 49 4c 45 |s(instal|l,$(FILE|
|00002300| 53 29 2c 24 28 50 52 49 | 56 4c 49 42 29 2f 6d 61 |S),$(PRI|VLIB)/ma|
|00002310| 69 6c 61 67 65 6e 74 2c | 2d 6d 20 34 34 34 29 0a |ilagent,|-m 444).|
|00002320| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 20 20 69 66 |END_OF_F|ILE. if|
|00002330| 20 74 65 73 74 20 36 35 | 33 20 2d 6e 65 20 60 77 | test 65|3 -ne `w|
|00002340| 63 20 2d 63 20 3c 27 61 | 67 65 6e 74 2f 66 69 6c |c -c <'a|gent/fil|
|00002350| 65 73 2f 4a 6d 61 6b 65 | 66 69 6c 65 27 60 3b 20 |es/Jmake|file'`; |
|00002360| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00002370| 61 72 3a 20 5c 22 27 61 | 67 65 6e 74 2f 66 69 6c |ar: \"'a|gent/fil|
|00002380| 65 73 2f 4a 6d 61 6b 65 | 66 69 6c 65 27 5c 22 20 |es/Jmake|file'\" |
|00002390| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000023a0| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|000023b0| 20 23 20 65 6e 64 20 6f | 66 20 27 61 67 65 6e 74 | # end o|f 'agent|
|000023c0| 2f 66 69 6c 65 73 2f 4a | 6d 61 6b 65 66 69 6c 65 |/files/J|makefile|
|000023d0| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|000023e0| 27 61 67 65 6e 74 2f 66 | 69 6c 65 73 2f 63 6f 6d |'agent/f|iles/com|
|000023f0| 6d 61 6e 64 73 27 20 2d | 61 20 22 24 7b 31 7d 22 |mands' -|a "${1}"|
|00002400| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00002410| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00002420| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00002430| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00002440| 61 67 65 6e 74 2f 66 69 | 6c 65 73 2f 63 6f 6d 6d |agent/fi|les/comm|
|00002450| 61 6e 64 73 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |ands'\".|else. e|
|00002460| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00002470| 74 69 6e 67 20 5c 22 27 | 61 67 65 6e 74 2f 66 69 |ting \"'|agent/fi|
|00002480| 6c 65 73 2f 63 6f 6d 6d | 61 6e 64 73 27 5c 22 20 |les/comm|ands'\" |
|00002490| 5c 28 33 37 20 63 68 61 | 72 61 63 74 65 72 73 5c |\(37 cha|racters\|
|000024a0| 29 0a 20 20 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |). sed |"s/^X//"|
|000024b0| 20 3e 27 61 67 65 6e 74 | 2f 66 69 6c 65 73 2f 63 | >'agent|/files/c|
|000024c0| 6f 6d 6d 61 6e 64 73 27 | 20 3c 3c 27 45 4e 44 5f |ommands'| <<'END_|
|000024d0| 4f 46 5f 46 49 4c 45 27 | 0a 58 6d 61 69 6c 70 61 |OF_FILE'|.Xmailpa|
|000024e0| 74 63 68 0a 58 6d 61 69 | 6c 68 65 6c 70 0a 58 6d |tch.Xmai|lhelp.Xm|
|000024f0| 61 69 6c 6c 69 73 74 0a | 58 6d 61 69 6c 64 69 73 |aillist.|Xmaildis|
|00002500| 74 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 20 20 |t.END_OF|_FILE. |
|00002510| 69 66 20 74 65 73 74 20 | 33 37 20 2d 6e 65 20 60 |if test |37 -ne `|
|00002520| 77 63 20 2d 63 20 3c 27 | 61 67 65 6e 74 2f 66 69 |wc -c <'|agent/fi|
|00002530| 6c 65 73 2f 63 6f 6d 6d | 61 6e 64 73 27 60 3b 20 |les/comm|ands'`; |
|00002540| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00002550| 61 72 3a 20 5c 22 27 61 | 67 65 6e 74 2f 66 69 6c |ar: \"'a|gent/fil|
|00002560| 65 73 2f 63 6f 6d 6d 61 | 6e 64 73 27 5c 22 20 75 |es/comma|nds'\" u|
|00002570| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00002580| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00002590| 23 20 65 6e 64 20 6f 66 | 20 27 61 67 65 6e 74 2f |# end of| 'agent/|
|000025a0| 66 69 6c 65 73 2f 63 6f | 6d 6d 61 6e 64 73 27 0a |files/co|mmands'.|
|000025b0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 61 |fi.if te|st -f 'a|
|000025c0| 67 65 6e 74 2f 66 69 6c | 74 65 72 2f 6d 73 67 2e |gent/fil|ter/msg.|
|000025d0| 68 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |h' -a "$|{1}" != |
|000025e0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000025f0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00002600| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002610| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 67 65 6e |ing file| \"'agen|
|00002620| 74 2f 66 69 6c 74 65 72 | 2f 6d 73 67 2e 68 27 5c |t/filter|/msg.h'\|
|00002630| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00002640| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00002650| 22 27 61 67 65 6e 74 2f | 66 69 6c 74 65 72 2f 6d |"'agent/|filter/m|
|00002660| 73 67 2e 68 27 5c 22 20 | 5c 28 37 31 30 20 63 68 |sg.h'\" |\(710 ch|
|00002670| 61 72 61 63 74 65 72 73 | 5c 29 0a 20 20 73 65 64 |aracters|\). sed|
|00002680| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 61 67 65 6e | "s/^X//|" >'agen|
|00002690| 74 2f 66 69 6c 74 65 72 | 2f 6d 73 67 2e 68 27 20 |t/filter|/msg.h' |
|000026a0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000026b0| 58 2f 2a 0a 58 0a 58 20 | 23 20 20 20 20 23 20 20 |X/*.X.X |# # |
|000026c0| 20 23 23 23 23 20 20 20 | 20 23 23 23 23 20 20 20 | #### | #### |
|000026d0| 20 20 20 20 20 20 20 20 | 23 20 20 20 20 23 0a 58 | |# #.X|
|000026e0| 20 23 23 20 20 23 23 20 | 20 23 20 20 20 20 20 20 | ## ## | # |
|000026f0| 20 23 20 20 20 20 23 20 | 20 20 20 20 20 20 20 20 | # # | |
|00002700| 20 23 20 20 20 20 23 0a | 58 20 23 20 23 23 20 23 | # #.|X # ## #|
|00002710| 20 20 20 23 23 23 23 20 | 20 20 23 20 20 20 20 20 | #### | # |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 23 23 23 23 23 23 | | ######|
|00002730| 0a 58 20 23 20 20 20 20 | 23 20 20 20 20 20 20 20 |.X # |# |
|00002740| 23 20 20 23 20 20 23 23 | 23 20 20 20 23 23 23 20 |# # ##|# ### |
|00002750| 20 20 20 23 20 20 20 20 | 23 0a 58 20 23 20 20 20 | # |#.X # |
|00002760| 20 23 20 20 23 20 20 20 | 20 23 20 20 23 20 20 20 | # # | # # |
|00002770| 20 23 20 20 20 23 23 23 | 20 20 20 20 23 20 20 20 | # ###| # |
|00002780| 20 23 0a 58 20 23 20 20 | 20 20 23 20 20 20 23 23 | #.X # | # ##|
|00002790| 23 23 20 20 20 20 23 23 | 23 23 20 20 20 20 23 23 |## ##|## ##|
|000027a0| 23 20 20 20 20 23 20 20 | 20 20 23 0a 58 0a 58 09 |# # | #.X.X.|
|000027b0| 44 65 63 6c 61 72 61 74 | 69 6f 6e 20 6f 66 20 6d |Declarat|ion of m|
|000027c0| 65 73 73 61 67 65 20 72 | 65 6c 61 74 65 64 20 66 |essage r|elated f|
|000027d0| 75 6e 63 74 69 6f 6e 73 | 2e 0a 58 2a 2f 0a 58 0a |unctions|..X*/.X.|
|000027e0| 58 2f 2a 0a 58 20 2a 20 | 24 49 64 3a 20 6d 73 67 |X/*.X * |$Id: msg|
|000027f0| 2e 68 2c 76 20 32 2e 39 | 20 39 32 2f 30 37 2f 31 |.h,v 2.9| 92/07/1|
|00002800| 34 20 31 36 3a 34 38 3a | 33 34 20 72 61 6d 20 45 |4 16:48:|34 ram E|
|00002810| 78 70 20 24 0a 58 20 2a | 0a 58 20 2a 20 20 43 6f |xp $.X *|.X * Co|
|00002820| 70 79 72 69 67 68 74 20 | 28 63 29 20 31 39 39 32 |pyright |(c) 1992|
|00002830| 2c 20 52 61 70 68 61 65 | 6c 20 4d 61 6e 66 72 65 |, Raphae|l Manfre|
|00002840| 64 69 0a 58 20 2a 0a 58 | 20 2a 20 20 59 6f 75 20 |di.X *.X| * You |
|00002850| 6d 61 79 20 72 65 64 69 | 73 74 72 69 62 75 74 65 |may redi|stribute|
|00002860| 20 6f 6e 6c 79 20 75 6e | 64 65 72 20 74 68 65 20 | only un|der the |
|00002870| 74 65 72 6d 73 20 6f 66 | 20 74 68 65 20 47 4e 55 |terms of| the GNU|
|00002880| 20 47 65 6e 65 72 61 6c | 20 50 75 62 6c 69 63 0a | General| Public.|
|00002890| 58 20 2a 20 20 4c 69 63 | 65 6e 63 65 20 61 73 20 |X * Lic|ence as |
|000028a0| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 74 68 65 |specifie|d in the|
|000028b0| 20 52 45 41 44 4d 45 20 | 66 69 6c 65 20 74 68 61 | README |file tha|
|000028c0| 74 20 63 6f 6d 65 73 20 | 77 69 74 68 20 64 69 73 |t comes |with dis|
|000028d0| 74 2e 0a 58 20 2a 0a 58 | 20 2a 20 24 4c 6f 67 3a |t..X *.X| * $Log:|
|000028e0| 09 6d 73 67 2e 68 2c 76 | 20 24 0a 58 20 2a 20 52 |.msg.h,v| $.X * R|
|000028f0| 65 76 69 73 69 6f 6e 20 | 32 2e 39 20 20 39 32 2f |evision |2.9 92/|
|00002900| 30 37 2f 31 34 20 20 31 | 36 3a 34 38 3a 33 34 20 |07/14 1|6:48:34 |
|00002910| 20 72 61 6d 0a 58 20 2a | 20 33 2e 30 20 62 65 74 | ram.X *| 3.0 bet|
|00002920| 61 20 62 61 73 65 6c 69 | 6e 65 2e 0a 58 20 2a 20 |a baseli|ne..X * |
|00002930| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |.X */.X.|X#ifndef|
|00002940| 20 5f 6d 73 67 5f 68 5f | 0a 58 23 64 65 66 69 6e | _msg_h_|.X#defin|
|00002950| 65 20 5f 6d 73 67 5f 68 | 5f 0a 58 0a 58 65 78 74 |e _msg_h|_.X.Xext|
|00002960| 65 72 6e 20 76 6f 69 64 | 20 66 61 74 61 6c 28 29 |ern void| fatal()|
|00002970| 3b 09 09 09 09 2f 2a 20 | 46 6f 72 20 66 61 74 61 |;..../* |For fata|
|00002980| 6c 20 65 72 72 6f 72 73 | 20 2a 2f 0a 58 0a 58 23 |l errors| */.X.X#|
|00002990| 65 6e 64 69 66 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |endif.EN|D_OF_FIL|
|000029a0| 45 0a 20 20 69 66 20 74 | 65 73 74 20 37 31 30 20 |E. if t|est 710 |
|000029b0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 61 67 65 |-ne `wc |-c <'age|
|000029c0| 6e 74 2f 66 69 6c 74 65 | 72 2f 6d 73 67 2e 68 27 |nt/filte|r/msg.h'|
|000029d0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000029e0| 20 73 68 61 72 3a 20 5c | 22 27 61 67 65 6e 74 2f | shar: \|"'agent/|
|000029f0| 66 69 6c 74 65 72 2f 6d | 73 67 2e 68 27 5c 22 20 |filter/m|sg.h'\" |
|00002a00| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00002a10| 6f 6e 67 20 73 69 7a 65 | 21 0a 20 20 66 69 0a 20 |ong size|!. fi. |
|00002a20| 20 23 20 65 6e 64 20 6f | 66 20 27 61 67 65 6e 74 | # end o|f 'agent|
|00002a30| 2f 66 69 6c 74 65 72 2f | 6d 73 67 2e 68 27 0a 66 |/filter/|msg.h'.f|
|00002a40| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 67 |i.if tes|t -f 'ag|
|00002a50| 65 6e 74 2f 6d 61 6e 2f | 4a 6d 61 6b 65 66 69 6c |ent/man/|Jmakefil|
|00002a60| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|00002a70| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00002a80| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00002a90| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00002aa0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 67 65 6e |ing file| \"'agen|
|00002ab0| 74 2f 6d 61 6e 2f 4a 6d | 61 6b 65 66 69 6c 65 27 |t/man/Jm|akefile'|
|00002ac0| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00002ad0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00002ae0| 5c 22 27 61 67 65 6e 74 | 2f 6d 61 6e 2f 4a 6d 61 |\"'agent|/man/Jma|
|00002af0| 6b 65 66 69 6c 65 27 5c | 22 20 5c 28 35 35 35 20 |kefile'\|" \(555 |
|00002b00| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00002b10| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 61 67 |ed "s/^X|//" >'ag|
|00002b20| 65 6e 74 2f 6d 61 6e 2f | 4a 6d 61 6b 65 66 69 6c |ent/man/|Jmakefil|
|00002b30| 65 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |e' <<'EN|D_OF_FIL|
|00002b40| 45 27 0a 58 2f 2a 0a 58 | 20 2a 20 4a 6d 61 6b 65 |E'.X/*.X| * Jmake|
|00002b50| 66 69 6c 65 20 66 6f 72 | 20 6d 61 69 6c 61 67 65 |file for| mailage|
|00002b60| 6e 74 27 73 20 6d 61 6e | 75 61 6c 20 70 61 67 65 |nt's man|ual page|
|00002b70| 73 0a 58 20 2a 2f 0a 58 | 0a 58 3b 23 20 24 49 64 |s.X */.X|.X;# $Id|
|00002b80| 3a 20 4a 6d 61 6b 65 66 | 69 6c 65 2c 76 20 32 2e |: Jmakef|ile,v 2.|
|00002b90| 39 20 39 32 2f 30 37 2f | 31 34 20 31 36 3a 34 39 |9 92/07/|14 16:49|
|00002ba0| 3a 30 34 20 72 61 6d 20 | 45 78 70 20 24 0a 58 3b |:04 ram |Exp $.X;|
|00002bb0| 23 0a 58 3b 23 20 20 43 | 6f 70 79 72 69 67 68 74 |#.X;# C|opyright|
|00002bc0| 20 28 63 29 20 31 39 39 | 31 2c 20 52 61 70 68 61 | (c) 199|1, Rapha|
|00002bd0| 65 6c 20 4d 61 6e 66 72 | 65 64 69 0a 58 3b 23 0a |el Manfr|edi.X;#.|
|00002be0| 58 3b 23 20 20 59 6f 75 | 20 6d 61 79 20 72 65 64 |X;# You| may red|
|00002bf0| 69 73 74 72 69 62 75 74 | 65 20 6f 6e 6c 79 20 75 |istribut|e only u|
|00002c00| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|00002c10| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|00002c20| 6c 20 50 75 62 6c 69 63 | 0a 58 3b 23 20 20 4c 69 |l Public|.X;# Li|
|00002c30| 63 65 6e 63 65 20 61 73 | 20 73 70 65 63 69 66 69 |cence as| specifi|
|00002c40| 65 64 20 69 6e 20 74 68 | 65 20 52 45 41 44 4d 45 |ed in th|e README|
|00002c50| 20 66 69 6c 65 20 74 68 | 61 74 20 63 6f 6d 65 73 | file th|at comes|
|00002c60| 20 77 69 74 68 20 64 69 | 73 74 2e 0a 58 3b 23 0a | with di|st..X;#.|
|00002c70| 58 3b 23 20 24 4c 6f 67 | 3a 09 4a 6d 61 6b 65 66 |X;# $Log|:.Jmakef|
|00002c80| 69 6c 65 2c 76 20 24 0a | 58 3b 23 20 52 65 76 69 |ile,v $.|X;# Revi|
|00002c90| 73 69 6f 6e 20 32 2e 39 | 20 20 39 32 2f 30 37 2f |sion 2.9| 92/07/|
|00002ca0| 31 34 20 20 31 36 3a 34 | 39 3a 30 34 20 20 72 61 |14 16:4|9:04 ra|
|00002cb0| 6d 0a 58 3b 23 20 33 2e | 30 20 62 65 74 61 20 62 |m.X;# 3.|0 beta b|
|00002cc0| 61 73 65 6c 69 6e 65 2e | 0a 58 3b 23 20 0a 58 0a |aseline.|.X;# .X.|
|00002cd0| 58 3e 4c 09 09 2f 2a 20 | 49 20 65 78 70 65 63 74 |X>L../* |I expect|
|00002ce0| 20 74 6f 20 66 69 78 20 | 74 68 69 73 20 77 69 74 | to fix |this wit|
|00002cf0| 68 20 61 6e 20 7c 61 70 | 70 65 6e 64 20 63 6f 6d |h an |ap|pend com|
|00002d00| 6d 61 6e 64 20 2a 2f 0a | 58 0a 58 4d 50 41 47 45 |mand */.|X.XMPAGE|
|00002d10| 53 20 3d 20 6d 61 69 6c | 61 67 65 6e 74 2e 24 28 |S = mail|agent.$(|
|00002d20| 4c 29 20 6d 61 69 6c 64 | 69 73 74 2e 24 28 4c 29 |L) maild|ist.$(L)|
|00002d30| 20 6d 61 69 6c 6c 69 73 | 74 2e 24 28 4c 29 20 6d | maillis|t.$(L) m|
|00002d40| 61 69 6c 68 65 6c 70 2e | 24 28 4c 29 20 6d 61 69 |ailhelp.|$(L) mai|
|00002d50| 6c 70 61 74 63 68 2e 24 | 28 4c 29 0a 58 0a 58 43 |lpatch.$|(L).X.XC|
|00002d60| 6f 6d 70 6c 65 78 53 68 | 65 6c 6c 4d 61 6e 75 61 |omplexSh|ellManua|
|00002d70| 6c 54 61 72 67 65 74 28 | 24 28 4d 50 41 47 45 53 |lTarget(|$(MPAGES|
|00002d80| 29 29 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |)).END_O|F_FILE. |
|00002d90| 20 69 66 20 74 65 73 74 | 20 35 35 35 20 2d 6e 65 | if test| 555 -ne|
|00002da0| 20 60 77 63 20 2d 63 20 | 3c 27 61 67 65 6e 74 2f | `wc -c |<'agent/|
|00002db0| 6d 61 6e 2f 4a 6d 61 6b | 65 66 69 6c 65 27 60 3b |man/Jmak|efile'`;|
|00002dc0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00002dd0| 68 61 72 3a 20 5c 22 27 | 61 67 65 6e 74 2f 6d 61 |har: \"'|agent/ma|
|00002de0| 6e 2f 4a 6d 61 6b 65 66 | 69 6c 65 27 5c 22 20 75 |n/Jmakef|ile'\" u|
|00002df0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00002e00| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00002e10| 23 20 65 6e 64 20 6f 66 | 20 27 61 67 65 6e 74 2f |# end of| 'agent/|
|00002e20| 6d 61 6e 2f 4a 6d 61 6b | 65 66 69 6c 65 27 0a 66 |man/Jmak|efile'.f|
|00002e30| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 67 |i.if tes|t -f 'ag|
|00002e40| 65 6e 74 2f 6d 61 6e 2f | 6d 61 69 6c 64 69 73 74 |ent/man/|maildist|
|00002e50| 2e 53 48 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |.SH' -a |"${1}" !|
|00002e60| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00002e70| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00002e80| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00002e90| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 61 67 |sting fi|le \"'ag|
|00002ea0| 65 6e 74 2f 6d 61 6e 2f | 6d 61 69 6c 64 69 73 74 |ent/man/|maildist|
|00002eb0| 2e 53 48 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |.SH'\".e|lse. ec|
|00002ec0| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00002ed0| 69 6e 67 20 5c 22 27 61 | 67 65 6e 74 2f 6d 61 6e |ing \"'a|gent/man|
|00002ee0| 2f 6d 61 69 6c 64 69 73 | 74 2e 53 48 27 5c 22 20 |/maildis|t.SH'\" |
|00002ef0| 5c 28 34 36 34 20 63 68 | 61 72 61 63 74 65 72 73 |\(464 ch|aracters|
|00002f00| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00002f10| 22 20 3e 27 61 67 65 6e | 74 2f 6d 61 6e 2f 6d 61 |" >'agen|t/man/ma|
|00002f20| 69 6c 64 69 73 74 2e 53 | 48 27 20 3c 3c 27 45 4e |ildist.S|H' <<'EN|
|00002f30| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 63 61 73 65 |D_OF_FIL|E'.Xcase|
|00002f40| 20 24 43 4f 4e 46 49 47 | 20 69 6e 0a 58 27 27 29 | $CONFIG| in.X'')|
|00002f50| 0a 58 09 69 66 20 74 65 | 73 74 20 21 20 2d 66 20 |.X.if te|st ! -f |
|00002f60| 63 6f 6e 66 69 67 2e 73 | 68 3b 20 74 68 65 6e 0a |config.s|h; then.|
|00002f70| 58 09 09 6c 6e 20 2e 2e | 2f 63 6f 6e 66 69 67 2e |X..ln ..|/config.|
|00002f80| 73 68 20 2e 20 7c 7c 20 | 5c 0a 58 09 09 6c 6e 20 |sh . || |\.X..ln |
|00002f90| 2e 2e 2f 2e 2e 2f 63 6f | 6e 66 69 67 2e 73 68 20 |../../co|nfig.sh |
|00002fa0| 2e 20 7c 7c 20 5c 0a 58 | 09 09 6c 6e 20 2e 2e 2f |. || \.X|..ln ../|
|00002fb0| 2e 2e 2f 2e 2e 2f 63 6f | 6e 66 69 67 2e 73 68 20 |../../co|nfig.sh |
|00002fc0| 2e 20 7c 7c 20 5c 0a 58 | 09 09 28 65 63 68 6f 20 |. || \.X|..(echo |
|00002fd0| 22 43 61 6e 27 74 20 66 | 69 6e 64 20 63 6f 6e 66 |"Can't f|ind conf|
|00002fe0| 69 67 2e 73 68 2e 22 3b | 20 65 78 69 74 20 31 29 |ig.sh.";| exit 1)|
|00002ff0| 0a 58 09 66 69 0a 58 09 | 2e 20 63 6f 6e 66 69 67 |.X.fi.X.|. config|
|00003000| 2e 73 68 0a 58 09 3b 3b | 0a 58 65 73 61 63 0a 58 |.sh.X.;;|.Xesac.X|
|00003010| 63 61 73 65 20 22 24 30 | 22 20 69 6e 0a 58 2a 2f |case "$0|" in.X*/|
|00003020| 2a 29 20 63 64 20 60 65 | 78 70 72 20 58 24 30 20 |*) cd `e|xpr X$0 |
|00003030| 3a 20 27 58 5c 28 2e 2a | 5c 29 2f 27 60 20 3b 3b |: 'X\(.*|\)/'` ;;|
|00003040| 0a 58 65 73 61 63 0a 58 | 65 63 68 6f 20 22 45 78 |.Xesac.X|echo "Ex|
|00003050| 74 72 61 63 74 69 6e 67 | 20 61 67 65 6e 74 2f 6d |tracting| agent/m|
|00003060| 61 6e 2f 6d 61 69 6c 64 | 69 73 74 2e 24 6d 61 6e |an/maild|ist.$man|
|00003070| 65 78 74 20 28 77 69 74 | 68 20 76 61 72 69 61 62 |ext (wit|h variab|
|00003080| 6c 65 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 73 |le subst|itutions|
|00003090| 29 22 0a 58 24 72 6d 20 | 2d 66 20 6d 61 69 6c 64 |)".X$rm |-f maild|
|000030a0| 69 73 74 2e 24 6d 61 6e | 65 78 74 0a 58 24 73 70 |ist.$man|ext.X$sp|
|000030b0| 69 74 73 68 65 6c 6c 20 | 3e 6d 61 69 6c 64 69 73 |itshell |>maildis|
|000030c0| 74 2e 24 6d 61 6e 65 78 | 74 20 3c 3c 21 47 52 4f |t.$manex|t <<!GRO|
|000030d0| 4b 21 54 48 49 53 21 0a | 58 2e 73 6f 20 24 6d 61 |K!THIS!.|X.so $ma|
|000030e0| 6e 73 72 63 2f 6d 61 69 | 6c 68 65 6c 70 2e 24 6d |nsrc/mai|lhelp.$m|
|000030f0| 61 6e 65 78 74 0a 58 21 | 47 52 4f 4b 21 54 48 49 |anext.X!|GROK!THI|
|00003100| 53 21 0a 58 63 68 6d 6f | 64 20 34 34 34 20 6d 61 |S!.Xchmo|d 444 ma|
|00003110| 69 6c 64 69 73 74 2e 24 | 6d 61 6e 65 78 74 0a 45 |ildist.$|manext.E|
|00003120| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00003130| 74 65 73 74 20 34 36 34 | 20 2d 6e 65 20 60 77 63 |test 464| -ne `wc|
|00003140| 20 2d 63 20 3c 27 61 67 | 65 6e 74 2f 6d 61 6e 2f | -c <'ag|ent/man/|
|00003150| 6d 61 69 6c 64 69 73 74 | 2e 53 48 27 60 3b 20 74 |maildist|.SH'`; t|
|00003160| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00003170| 72 3a 20 5c 22 27 61 67 | 65 6e 74 2f 6d 61 6e 2f |r: \"'ag|ent/man/|
|00003180| 6d 61 69 6c 64 69 73 74 | 2e 53 48 27 5c 22 20 75 |maildist|.SH'\" u|
|00003190| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000031a0| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|000031b0| 63 68 6d 6f 64 20 2b 78 | 20 27 61 67 65 6e 74 2f |chmod +x| 'agent/|
|000031c0| 6d 61 6e 2f 6d 61 69 6c | 64 69 73 74 2e 53 48 27 |man/mail|dist.SH'|
|000031d0| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 61 67 65 |. # end| of 'age|
|000031e0| 6e 74 2f 6d 61 6e 2f 6d | 61 69 6c 64 69 73 74 2e |nt/man/m|aildist.|
|000031f0| 53 48 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |SH'.fi.i|f test -|
|00003200| 66 20 27 61 67 65 6e 74 | 2f 6d 61 6e 2f 6d 61 69 |f 'agent|/man/mai|
|00003210| 6c 6c 69 73 74 2e 53 48 | 27 20 2d 61 20 22 24 7b |llist.SH|' -a "${|
|00003220| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00003230| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00003240| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00003250| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00003260| 5c 22 27 61 67 65 6e 74 | 2f 6d 61 6e 2f 6d 61 69 |\"'agent|/man/mai|
|00003270| 6c 6c 69 73 74 2e 53 48 | 27 5c 22 0a 65 6c 73 65 |llist.SH|'\".else|
|00003280| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|00003290| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 67 65 6e |tracting| \"'agen|
|000032a0| 74 2f 6d 61 6e 2f 6d 61 | 69 6c 6c 69 73 74 2e 53 |t/man/ma|illist.S|
|000032b0| 48 27 5c 22 20 5c 28 34 | 36 34 20 63 68 61 72 61 |H'\" \(4|64 chara|
|000032c0| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|000032d0| 2f 5e 58 2f 2f 22 20 3e | 27 61 67 65 6e 74 2f 6d |/^X//" >|'agent/m|
|000032e0| 61 6e 2f 6d 61 69 6c 6c | 69 73 74 2e 53 48 27 20 |an/maill|ist.SH' |
|000032f0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00003300| 58 63 61 73 65 20 24 43 | 4f 4e 46 49 47 20 69 6e |Xcase $C|ONFIG in|
|00003310| 0a 58 27 27 29 0a 58 09 | 69 66 20 74 65 73 74 20 |.X'').X.|if test |
|00003320| 21 20 2d 66 20 63 6f 6e | 66 69 67 2e 73 68 3b 20 |! -f con|fig.sh; |
|00003330| 74 68 65 6e 0a 58 09 09 | 6c 6e 20 2e 2e 2f 63 6f |then.X..|ln ../co|
|00003340| 6e 66 69 67 2e 73 68 20 | 2e 20 7c 7c 20 5c 0a 58 |nfig.sh |. || \.X|
|00003350| 09 09 6c 6e 20 2e 2e 2f | 2e 2e 2f 63 6f 6e 66 69 |..ln ../|../confi|
|00003360| 67 2e 73 68 20 2e 20 7c | 7c 20 5c 0a 58 09 09 6c |g.sh . ||| \.X..l|
|00003370| 6e 20 2e 2e 2f 2e 2e 2f | 2e 2e 2f 63 6f 6e 66 69 |n ../../|../confi|
|00003380| 67 2e 73 68 20 2e 20 7c | 7c 20 5c 0a 58 09 09 28 |g.sh . ||| \.X..(|
|00003390| 65 63 68 6f 20 22 43 61 | 6e 27 74 20 66 69 6e 64 |echo "Ca|n't find|
|000033a0| 20 63 6f 6e 66 69 67 2e | 73 68 2e 22 3b 20 65 78 | config.|sh."; ex|
|000033b0| 69 74 20 31 29 0a 58 09 | 66 69 0a 58 09 2e 20 63 |it 1).X.|fi.X.. c|
|000033c0| 6f 6e 66 69 67 2e 73 68 | 0a 58 09 3b 3b 0a 58 65 |onfig.sh|.X.;;.Xe|
|000033d0| 73 61 63 0a 58 63 61 73 | 65 20 22 24 30 22 20 69 |sac.Xcas|e "$0" i|
|000033e0| 6e 0a 58 2a 2f 2a 29 20 | 63 64 20 60 65 78 70 72 |n.X*/*) |cd `expr|
|000033f0| 20 58 24 30 20 3a 20 27 | 58 5c 28 2e 2a 5c 29 2f | X$0 : '|X\(.*\)/|
|00003400| 27 60 20 3b 3b 0a 58 65 | 73 61 63 0a 58 65 63 68 |'` ;;.Xe|sac.Xech|
|00003410| 6f 20 22 45 78 74 72 61 | 63 74 69 6e 67 20 61 67 |o "Extra|cting ag|
|00003420| 65 6e 74 2f 6d 61 6e 2f | 6d 61 69 6c 6c 69 73 74 |ent/man/|maillist|
|00003430| 2e 24 6d 61 6e 65 78 74 | 20 28 77 69 74 68 20 76 |.$manext| (with v|
|00003440| 61 72 69 61 62 6c 65 20 | 73 75 62 73 74 69 74 75 |ariable |substitu|
|00003450| 74 69 6f 6e 73 29 22 0a | 58 24 72 6d 20 2d 66 20 |tions)".|X$rm -f |
|00003460| 6d 61 69 6c 6c 69 73 74 | 2e 24 6d 61 6e 65 78 74 |maillist|.$manext|
|00003470| 0a 58 24 73 70 69 74 73 | 68 65 6c 6c 20 3e 6d 61 |.X$spits|hell >ma|
|00003480| 69 6c 6c 69 73 74 2e 24 | 6d 61 6e 65 78 74 20 3c |illist.$|manext <|
|00003490| 3c 21 47 52 4f 4b 21 54 | 48 49 53 21 0a 58 2e 73 |<!GROK!T|HIS!.X.s|
|000034a0| 6f 20 24 6d 61 6e 73 72 | 63 2f 6d 61 69 6c 68 65 |o $mansr|c/mailhe|
|000034b0| 6c 70 2e 24 6d 61 6e 65 | 78 74 0a 58 21 47 52 4f |lp.$mane|xt.X!GRO|
|000034c0| 4b 21 54 48 49 53 21 0a | 58 63 68 6d 6f 64 20 34 |K!THIS!.|Xchmod 4|
|000034d0| 34 34 20 6d 61 69 6c 6c | 69 73 74 2e 24 6d 61 6e |44 maill|ist.$man|
|000034e0| 65 78 74 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |ext.END_|OF_FILE.|
|000034f0| 20 20 69 66 20 74 65 73 | 74 20 34 36 34 20 2d 6e | if tes|t 464 -n|
|00003500| 65 20 60 77 63 20 2d 63 | 20 3c 27 61 67 65 6e 74 |e `wc -c| <'agent|
|00003510| 2f 6d 61 6e 2f 6d 61 69 | 6c 6c 69 73 74 2e 53 48 |/man/mai|llist.SH|
|00003520| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00003530| 6f 20 73 68 61 72 3a 20 | 5c 22 27 61 67 65 6e 74 |o shar: |\"'agent|
|00003540| 2f 6d 61 6e 2f 6d 61 69 | 6c 6c 69 73 74 2e 53 48 |/man/mai|llist.SH|
|00003550| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00003560| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|00003570| 66 69 0a 20 20 63 68 6d | 6f 64 20 2b 78 20 27 61 |fi. chm|od +x 'a|
|00003580| 67 65 6e 74 2f 6d 61 6e | 2f 6d 61 69 6c 6c 69 73 |gent/man|/maillis|
|00003590| 74 2e 53 48 27 0a 20 20 | 23 20 65 6e 64 20 6f 66 |t.SH'. |# end of|
|000035a0| 20 27 61 67 65 6e 74 2f | 6d 61 6e 2f 6d 61 69 6c | 'agent/|man/mail|
|000035b0| 6c 69 73 74 2e 53 48 27 | 0a 66 69 0a 69 66 20 74 |list.SH'|.fi.if t|
|000035c0| 65 73 74 20 2d 66 20 27 | 61 67 65 6e 74 2f 6d 61 |est -f '|agent/ma|
|000035d0| 6e 2f 6d 61 69 6c 70 61 | 74 63 68 2e 53 48 27 20 |n/mailpa|tch.SH' |
|000035e0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000035f0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00003600| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00003610| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00003620| 20 66 69 6c 65 20 5c 22 | 27 61 67 65 6e 74 2f 6d | file \"|'agent/m|
|00003630| 61 6e 2f 6d 61 69 6c 70 | 61 74 63 68 2e 53 48 27 |an/mailp|atch.SH'|
|00003640| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00003650| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00003660| 5c 22 27 61 67 65 6e 74 | 2f 6d 61 6e 2f 6d 61 69 |\"'agent|/man/mai|
|00003670| 6c 70 61 74 63 68 2e 53 | 48 27 5c 22 20 5c 28 34 |lpatch.S|H'\" \(4|
|00003680| 36 38 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |68 chara|cters\).|
|00003690| 20 20 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e | sed "s|/^X//" >|
|000036a0| 27 61 67 65 6e 74 2f 6d | 61 6e 2f 6d 61 69 6c 70 |'agent/m|an/mailp|
|000036b0| 61 74 63 68 2e 53 48 27 | 20 3c 3c 27 45 4e 44 5f |atch.SH'| <<'END_|
|000036c0| 4f 46 5f 46 49 4c 45 27 | 0a 58 63 61 73 65 20 24 |OF_FILE'|.Xcase $|
|000036d0| 43 4f 4e 46 49 47 20 69 | 6e 0a 58 27 27 29 0a 58 |CONFIG i|n.X'').X|
|000036e0| 09 69 66 20 74 65 73 74 | 20 21 20 2d 66 20 63 6f |.if test| ! -f co|
|000036f0| 6e 66 69 67 2e 73 68 3b | 20 74 68 65 6e 0a 58 09 |nfig.sh;| then.X.|
|00003700| 09 6c 6e 20 2e 2e 2f 63 | 6f 6e 66 69 67 2e 73 68 |.ln ../c|onfig.sh|
|00003710| 20 2e 20 7c 7c 20 5c 0a | 58 09 09 6c 6e 20 2e 2e | . || \.|X..ln ..|
|00003720| 2f 2e 2e 2f 63 6f 6e 66 | 69 67 2e 73 68 20 2e 20 |/../conf|ig.sh . |
|00003730| 7c 7c 20 5c 0a 58 09 09 | 6c 6e 20 2e 2e 2f 2e 2e ||| \.X..|ln ../..|
|00003740| 2f 2e 2e 2f 63 6f 6e 66 | 69 67 2e 73 68 20 2e 20 |/../conf|ig.sh . |
|00003750| 7c 7c 20 5c 0a 58 09 09 | 28 65 63 68 6f 20 22 43 ||| \.X..|(echo "C|
|00003760| 61 6e 27 74 20 66 69 6e | 64 20 63 6f 6e 66 69 67 |an't fin|d config|
|00003770| 2e 73 68 2e 22 3b 20 65 | 78 69 74 20 31 29 0a 58 |.sh."; e|xit 1).X|
|00003780| 09 66 69 0a 58 09 2e 20 | 63 6f 6e 66 69 67 2e 73 |.fi.X.. |config.s|
|00003790| 68 0a 58 09 3b 3b 0a 58 | 65 73 61 63 0a 58 63 61 |h.X.;;.X|esac.Xca|
|000037a0| 73 65 20 22 24 30 22 20 | 69 6e 0a 58 2a 2f 2a 29 |se "$0" |in.X*/*)|
|000037b0| 20 63 64 20 60 65 78 70 | 72 20 58 24 30 20 3a 20 | cd `exp|r X$0 : |
|000037c0| 27 58 5c 28 2e 2a 5c 29 | 2f 27 60 20 3b 3b 0a 58 |'X\(.*\)|/'` ;;.X|
|000037d0| 65 73 61 63 0a 58 65 63 | 68 6f 20 22 45 78 74 72 |esac.Xec|ho "Extr|
|000037e0| 61 63 74 69 6e 67 20 61 | 67 65 6e 74 2f 6d 61 6e |acting a|gent/man|
|000037f0| 2f 6d 61 69 6c 70 61 74 | 63 68 2e 24 6d 61 6e 65 |/mailpat|ch.$mane|
|00003800| 78 74 20 28 77 69 74 68 | 20 76 61 72 69 61 62 6c |xt (with| variabl|
|00003810| 65 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 73 29 |e substi|tutions)|
|00003820| 22 0a 58 24 72 6d 20 2d | 66 20 6d 61 69 6c 70 61 |".X$rm -|f mailpa|
|00003830| 74 63 68 2e 24 6d 61 6e | 65 78 74 0a 58 24 73 70 |tch.$man|ext.X$sp|
|00003840| 69 74 73 68 65 6c 6c 20 | 3e 6d 61 69 6c 70 61 74 |itshell |>mailpat|
|00003850| 63 68 2e 24 6d 61 6e 65 | 78 74 20 3c 3c 21 47 52 |ch.$mane|xt <<!GR|
|00003860| 4f 4b 21 54 48 49 53 21 | 0a 58 2e 73 6f 20 24 6d |OK!THIS!|.X.so $m|
|00003870| 61 6e 73 72 63 2f 6d 61 | 69 6c 68 65 6c 70 2e 24 |ansrc/ma|ilhelp.$|
|00003880| 6d 61 6e 65 78 74 0a 58 | 21 47 52 4f 4b 21 54 48 |manext.X|!GROK!TH|
|00003890| 49 53 21 0a 58 63 68 6d | 6f 64 20 34 34 34 20 6d |IS!.Xchm|od 444 m|
|000038a0| 61 69 6c 70 61 74 63 68 | 2e 24 6d 61 6e 65 78 74 |ailpatch|.$manext|
|000038b0| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 20 20 69 |.END_OF_|FILE. i|
|000038c0| 66 20 74 65 73 74 20 34 | 36 38 20 2d 6e 65 20 60 |f test 4|68 -ne `|
|000038d0| 77 63 20 2d 63 20 3c 27 | 61 67 65 6e 74 2f 6d 61 |wc -c <'|agent/ma|
|000038e0| 6e 2f 6d 61 69 6c 70 61 | 74 63 68 2e 53 48 27 60 |n/mailpa|tch.SH'`|
|000038f0| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00003900| 73 68 61 72 3a 20 5c 22 | 27 61 67 65 6e 74 2f 6d |shar: \"|'agent/m|
|00003910| 61 6e 2f 6d 61 69 6c 70 | 61 74 63 68 2e 53 48 27 |an/mailp|atch.SH'|
|00003920| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00003930| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 20 20 66 | wrong s|ize!. f|
|00003940| 69 0a 20 20 63 68 6d 6f | 64 20 2b 78 20 27 61 67 |i. chmo|d +x 'ag|
|00003950| 65 6e 74 2f 6d 61 6e 2f | 6d 61 69 6c 70 61 74 63 |ent/man/|mailpatc|
|00003960| 68 2e 53 48 27 0a 20 20 | 23 20 65 6e 64 20 6f 66 |h.SH'. |# end of|
|00003970| 20 27 61 67 65 6e 74 2f | 6d 61 6e 2f 6d 61 69 6c | 'agent/|man/mail|
|00003980| 70 61 74 63 68 2e 53 48 | 27 0a 66 69 0a 69 66 20 |patch.SH|'.fi.if |
|00003990| 74 65 73 74 20 2d 66 20 | 27 61 67 65 6e 74 2f 74 |test -f |'agent/t|
|000039a0| 65 73 74 2f 63 6d 64 2f | 61 62 6f 72 74 2e 74 27 |est/cmd/|abort.t'|
|000039b0| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|000039c0| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|000039d0| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|000039e0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|000039f0| 67 20 66 69 6c 65 20 5c | 22 27 61 67 65 6e 74 2f |g file \|"'agent/|
|00003a00| 74 65 73 74 2f 63 6d 64 | 2f 61 62 6f 72 74 2e 74 |test/cmd|/abort.t|
|00003a10| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00003a20| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00003a30| 20 5c 22 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 | \"'agen|t/test/c|
|00003a40| 6d 64 2f 61 62 6f 72 74 | 2e 74 27 5c 22 20 5c 28 |md/abort|.t'\" \(|
|00003a50| 33 30 39 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |309 char|acters\)|
|00003a60| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00003a70| 3e 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |>'agent/|test/cmd|
|00003a80| 2f 61 62 6f 72 74 2e 74 | 27 20 3c 3c 27 45 4e 44 |/abort.t|' <<'END|
|00003a90| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 23 20 54 65 73 |_OF_FILE|'.X# Tes|
|00003aa0| 74 20 41 42 4f 52 54 20 | 63 6f 6d 6d 61 6e 64 0a |t ABORT |command.|
|00003ab0| 58 64 6f 20 27 2e 2e 2f | 70 6c 2f 63 6d 64 2e 70 |Xdo '../|pl/cmd.p|
|00003ac0| 6c 27 3b 0a 58 75 6e 6c | 69 6e 6b 20 22 24 75 73 |l';.Xunl|ink "$us|
|00003ad0| 65 72 2e 31 22 2c 20 27 | 61 6c 77 61 79 73 27 3b |er.1", '|always';|
|00003ae0| 0a 58 0a 58 26 61 64 64 | 5f 68 65 61 64 65 72 28 |.X.X&add|_header(|
|00003af0| 27 58 2d 54 61 67 3a 20 | 61 62 6f 72 74 27 29 3b |'X-Tag: |abort');|
|00003b00| 0a 58 60 24 63 6d 64 60 | 3b 0a 58 24 3f 20 3d 3d |.X`$cmd`|;.X$? ==|
|00003b10| 20 30 20 7c 7c 20 70 72 | 69 6e 74 20 22 31 5c 6e | 0 || pr|int "1\n|
|00003b20| 22 3b 0a 58 2d 66 20 22 | 24 75 73 65 72 2e 31 22 |";.X-f "|$user.1"|
|00003b30| 20 26 26 20 70 72 69 6e | 74 20 22 32 5c 6e 22 3b | && prin|t "2\n";|
|00003b40| 09 23 20 48 61 76 65 20 | 61 62 6f 72 74 65 64 0a |.# Have |aborted.|
|00003b50| 58 2d 66 20 22 24 75 73 | 65 72 22 20 26 26 20 70 |X-f "$us|er" && p|
|00003b60| 72 69 6e 74 20 22 33 5c | 6e 22 3b 09 09 23 20 6d |rint "3\|n";..# m|
|00003b70| 61 74 63 68 20 2d 3e 20 | 6e 6f 20 6c 65 61 76 65 |atch -> |no leave|
|00003b80| 0a 58 2d 66 20 27 61 6c | 77 61 79 73 27 20 7c 7c |.X-f 'al|ways' |||
|00003b90| 20 70 72 69 6e 74 20 22 | 34 5c 6e 22 3b 0a 58 0a | print "|4\n";.X.|
|00003ba0| 58 75 6e 6c 69 6e 6b 20 | 22 24 75 73 65 72 22 2c |Xunlink |"$user",|
|00003bb0| 20 22 24 75 73 65 72 2e | 31 22 2c 20 27 61 6c 77 | "$user.|1", 'alw|
|00003bc0| 61 79 73 27 2c 20 27 6d | 61 69 6c 27 3b 0a 58 70 |ays', 'm|ail';.Xp|
|00003bd0| 72 69 6e 74 20 22 30 5c | 6e 22 3b 0a 45 4e 44 5f |rint "0\|n";.END_|
|00003be0| 4f 46 5f 46 49 4c 45 0a | 20 20 69 66 20 74 65 73 |OF_FILE.| if tes|
|00003bf0| 74 20 33 30 39 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 309 -n|e `wc -c|
|00003c00| 20 3c 27 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d | <'agent|/test/cm|
|00003c10| 64 2f 61 62 6f 72 74 2e | 74 27 60 3b 20 74 68 65 |d/abort.|t'`; the|
|00003c20| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00003c30| 20 5c 22 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 | \"'agen|t/test/c|
|00003c40| 6d 64 2f 61 62 6f 72 74 | 2e 74 27 5c 22 20 75 6e |md/abort|.t'\" un|
|00003c50| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00003c60| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 23 |g size!.| fi. #|
|00003c70| 20 65 6e 64 20 6f 66 20 | 27 61 67 65 6e 74 2f 74 | end of |'agent/t|
|00003c80| 65 73 74 2f 63 6d 64 2f | 61 62 6f 72 74 2e 74 27 |est/cmd/|abort.t'|
|00003c90| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00003ca0| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 61 |agent/te|st/cmd/a|
|00003cb0| 6e 6e 6f 74 61 74 65 2e | 74 27 20 2d 61 20 22 24 |nnotate.|t' -a "$|
|00003cc0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00003cd0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00003ce0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00003cf0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00003d00| 20 5c 22 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 | \"'agen|t/test/c|
|00003d10| 6d 64 2f 61 6e 6e 6f 74 | 61 74 65 2e 74 27 5c 22 |md/annot|ate.t'\"|
|00003d20| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00003d30| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00003d40| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|00003d50| 61 6e 6e 6f 74 61 74 65 | 2e 74 27 5c 22 20 5c 28 |annotate|.t'\" \(|
|00003d60| 34 34 34 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |444 char|acters\)|
|00003d70| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00003d80| 3e 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |>'agent/|test/cmd|
|00003d90| 2f 61 6e 6e 6f 74 61 74 | 65 2e 74 27 20 3c 3c 27 |/annotat|e.t' <<'|
|00003da0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 23 20 |END_OF_F|ILE'.X# |
|00003db0| 54 65 73 74 20 41 4e 4e | 4f 54 41 54 45 20 63 6f |Test ANN|OTATE co|
|00003dc0| 6d 6d 61 6e 64 0a 58 64 | 6f 20 27 2e 2e 2f 70 6c |mmand.Xd|o '../pl|
|00003dd0| 2f 63 6d 64 2e 70 6c 27 | 3b 0a 58 0a 58 26 61 64 |/cmd.pl'|;.X.X&ad|
|00003de0| 64 5f 68 65 61 64 65 72 | 28 27 58 2d 54 61 67 3a |d_header|('X-Tag:|
|00003df0| 20 61 6e 6e 6f 74 61 74 | 65 27 29 3b 0a 58 60 24 | annotat|e');.X`$|
|00003e00| 63 6d 64 60 3b 0a 58 24 | 3f 20 3d 3d 20 30 20 7c |cmd`;.X$|? == 0 ||
|00003e10| 7c 20 70 72 69 6e 74 20 | 22 31 5c 6e 22 3b 0a 58 || print |"1\n";.X|
|00003e20| 2d 66 20 22 24 75 73 65 | 72 22 20 7c 7c 20 70 72 |-f "$use|r" || pr|
|00003e30| 69 6e 74 20 22 32 5c 6e | 22 3b 09 09 23 20 4e 6f |int "2\n|";..# No|
|00003e40| 20 6d 61 74 63 68 20 2d | 3e 20 6c 65 61 76 65 0a | match -|> leave.|
|00003e50| 58 26 67 65 74 5f 6c 6f | 67 28 33 2c 20 24 75 73 |X&get_lo|g(3, $us|
|00003e60| 65 72 29 3b 0a 58 26 63 | 68 65 63 6b 5f 6c 6f 67 |er);.X&c|heck_log|
|00003e70| 28 27 5e 58 2d 41 6e 6e | 6f 2d 31 3a 27 2c 20 34 |('^X-Ann|o-1:', 4|
|00003e80| 29 20 3d 3d 20 32 20 7c | 7c 20 70 72 69 6e 74 20 |) == 2 ||| print |
|00003e90| 22 35 5c 6e 22 3b 0a 58 | 26 63 68 65 63 6b 5f 6c |"5\n";.X|&check_l|
|00003ea0| 6f 67 28 27 5e 58 2d 41 | 6e 6e 6f 2d 32 3a 27 2c |og('^X-A|nno-2:',|
|00003eb0| 20 36 29 20 3d 3d 20 32 | 20 7c 7c 20 70 72 69 6e | 6) == 2| || prin|
|00003ec0| 74 20 22 37 5c 6e 22 3b | 0a 58 26 63 68 65 63 6b |t "7\n";|.X&check|
|00003ed0| 5f 6c 6f 67 28 27 5e 58 | 2d 41 6e 6e 6f 2d 33 3a |_log('^X|-Anno-3:|
|00003ee0| 27 2c 20 38 29 20 3d 3d | 20 31 20 7c 7c 20 70 72 |', 8) ==| 1 || pr|
|00003ef0| 69 6e 74 20 22 39 5c 6e | 22 3b 0a 58 26 63 68 65 |int "9\n|";.X&che|
|00003f00| 63 6b 5f 6c 6f 67 28 27 | 5e 58 2d 41 6e 6e 6f 2d |ck_log('|^X-Anno-|
|00003f10| 34 3a 27 2c 20 31 30 29 | 20 3d 3d 20 31 20 7c 7c |4:', 10)| == 1 |||
|00003f20| 20 70 72 69 6e 74 20 22 | 31 31 5c 6e 22 3b 0a 58 | print "|11\n";.X|
|00003f30| 26 6e 6f 74 5f 6c 6f 67 | 28 27 5e 58 2d 41 6e 6e |&not_log|('^X-Ann|
|00003f40| 6f 2d 45 72 72 6f 72 3a | 27 2c 20 31 32 29 3b 0a |o-Error:|', 12);.|
|00003f50| 58 0a 58 75 6e 6c 69 6e | 6b 20 22 24 75 73 65 72 |X.Xunlin|k "$user|
|00003f60| 22 2c 20 27 6d 61 69 6c | 27 3b 0a 58 70 72 69 6e |", 'mail|';.Xprin|
|00003f70| 74 20 22 30 5c 6e 22 3b | 0a 45 4e 44 5f 4f 46 5f |t "0\n";|.END_OF_|
|00003f80| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 34 |FILE. i|f test 4|
|00003f90| 34 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |44 -ne `|wc -c <'|
|00003fa0| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 61 |agent/te|st/cmd/a|
|00003fb0| 6e 6e 6f 74 61 74 65 2e | 74 27 60 3b 20 74 68 65 |nnotate.|t'`; the|
|00003fc0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00003fd0| 20 5c 22 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 | \"'agen|t/test/c|
|00003fe0| 6d 64 2f 61 6e 6e 6f 74 | 61 74 65 2e 74 27 5c 22 |md/annot|ate.t'\"|
|00003ff0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00004000| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|00004010| 20 20 23 20 65 6e 64 20 | 6f 66 20 27 61 67 65 6e | # end |of 'agen|
|00004020| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 61 6e 6e 6f 74 |t/test/c|md/annot|
|00004030| 61 74 65 2e 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |ate.t'.f|i.if tes|
|00004040| 74 20 2d 66 20 27 61 67 | 65 6e 74 2f 74 65 73 74 |t -f 'ag|ent/test|
|00004050| 2f 63 6d 64 2f 62 65 67 | 69 6e 2e 74 27 20 2d 61 |/cmd/beg|in.t' -a|
|00004060| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00004070| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00004080| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00004090| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000040a0| 69 6c 65 20 5c 22 27 61 | 67 65 6e 74 2f 74 65 73 |ile \"'a|gent/tes|
|000040b0| 74 2f 63 6d 64 2f 62 65 | 67 69 6e 2e 74 27 5c 22 |t/cmd/be|gin.t'\"|
|000040c0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|000040d0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000040e0| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|000040f0| 62 65 67 69 6e 2e 74 27 | 5c 22 20 5c 28 34 30 35 |begin.t'|\" \(405|
|00004100| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00004110| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 61 |sed "s/^|X//" >'a|
|00004120| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 62 65 |gent/tes|t/cmd/be|
|00004130| 67 69 6e 2e 74 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |gin.t' <|<'END_OF|
|00004140| 5f 46 49 4c 45 27 0a 58 | 23 20 54 65 73 74 20 42 |_FILE'.X|# Test B|
|00004150| 45 47 49 4e 20 63 6f 6d | 6d 61 6e 64 0a 58 64 6f |EGIN com|mand.Xdo|
|00004160| 20 27 2e 2e 2f 70 6c 2f | 63 6d 64 2e 70 6c 27 3b | '../pl/|cmd.pl';|
|00004170| 0a 58 75 6e 6c 69 6e 6b | 20 27 6f 6e 65 27 2c 20 |.Xunlink| 'one', |
|00004180| 27 74 77 6f 27 2c 20 27 | 74 68 72 65 65 27 3b 0a |'two', '|three';.|
|00004190| 58 0a 58 26 61 64 64 5f | 68 65 61 64 65 72 28 27 |X.X&add_|header('|
|000041a0| 58 2d 54 61 67 3a 20 62 | 65 67 69 6e 27 29 3b 0a |X-Tag: b|egin');.|
|000041b0| 58 60 24 63 6d 64 60 3b | 0a 58 24 3f 20 3d 3d 20 |X`$cmd`;|.X$? == |
|000041c0| 30 20 7c 7c 20 70 72 69 | 6e 74 20 22 31 5c 6e 22 |0 || pri|nt "1\n"|
|000041d0| 3b 0a 58 2d 66 20 27 6f | 6e 65 27 20 26 26 20 70 |;.X-f 'o|ne' && p|
|000041e0| 72 69 6e 74 20 22 32 5c | 6e 22 3b 09 09 23 20 43 |rint "2\|n";..# C|
|000041f0| 61 6e 6e 6f 74 20 68 61 | 70 70 65 6e 20 69 6e 20 |annot ha|ppen in |
|00004200| 54 57 4f 20 6d 6f 64 65 | 0a 58 2d 66 20 27 74 77 |TWO mode|.X-f 'tw|
|00004210| 6f 27 20 7c 7c 20 70 72 | 69 6e 74 20 22 33 5c 6e |o' || pr|int "3\n|
|00004220| 22 3b 09 09 23 20 4d 75 | 73 74 20 62 65 20 73 61 |";..# Mu|st be sa|
|00004230| 76 65 64 20 68 65 72 65 | 0a 58 2d 66 20 27 74 68 |ved here|.X-f 'th|
|00004240| 72 65 65 27 20 7c 7c 20 | 70 72 69 6e 74 20 22 34 |ree' || |print "4|
|00004250| 5c 6e 22 3b 09 09 23 20 | 41 6e 64 20 61 6c 73 6f |\n";..# |And also|
|00004260| 20 68 65 72 65 20 62 79 | 20 54 48 52 45 45 20 6d | here by| THREE m|
|00004270| 6f 64 65 0a 58 2d 66 20 | 22 24 75 73 65 72 22 20 |ode.X-f |"$user" |
|00004280| 26 26 20 70 72 69 6e 74 | 20 22 35 5c 6e 22 3b 09 |&& print| "5\n";.|
|00004290| 09 23 20 53 6f 20 64 65 | 66 61 75 6c 74 20 61 63 |.# So de|fault ac|
|000042a0| 74 69 6f 6e 20 64 69 64 | 20 6e 6f 74 20 61 70 70 |tion did| not app|
|000042b0| 6c 79 0a 58 0a 58 75 6e | 6c 69 6e 6b 20 27 6f 6e |ly.X.Xun|link 'on|
|000042c0| 65 27 2c 20 27 74 77 6f | 27 2c 20 27 74 68 72 65 |e', 'two|', 'thre|
|000042d0| 65 27 2c 20 27 6d 61 69 | 6c 27 3b 0a 58 70 72 69 |e', 'mai|l';.Xpri|
|000042e0| 6e 74 20 22 30 5c 6e 22 | 3b 0a 45 4e 44 5f 4f 46 |nt "0\n"|;.END_OF|
|000042f0| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00004300| 34 30 35 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |405 -ne |`wc -c <|
|00004310| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|00004320| 62 65 67 69 6e 2e 74 27 | 60 3b 20 74 68 65 6e 0a |begin.t'|`; then.|
|00004330| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00004340| 22 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |"'agent/|test/cmd|
|00004350| 2f 62 65 67 69 6e 2e 74 | 27 5c 22 20 75 6e 70 61 |/begin.t|'\" unpa|
|00004360| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00004370| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|00004380| 6e 64 20 6f 66 20 27 61 | 67 65 6e 74 2f 74 65 73 |nd of 'a|gent/tes|
|00004390| 74 2f 63 6d 64 2f 62 65 | 67 69 6e 2e 74 27 0a 66 |t/cmd/be|gin.t'.f|
|000043a0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 67 |i.if tes|t -f 'ag|
|000043b0| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 62 6f 75 |ent/test|/cmd/bou|
|000043c0| 6e 63 65 2e 74 27 20 2d | 61 20 22 24 7b 31 7d 22 |nce.t' -|a "${1}"|
|000043d0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000043e0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000043f0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00004400| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00004410| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 62 |agent/te|st/cmd/b|
|00004420| 6f 75 6e 63 65 2e 74 27 | 5c 22 0a 65 6c 73 65 0a |ounce.t'|\".else.|
|00004430| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|00004440| 72 61 63 74 69 6e 67 20 | 5c 22 27 61 67 65 6e 74 |racting |\"'agent|
|00004450| 2f 74 65 73 74 2f 63 6d | 64 2f 62 6f 75 6e 63 65 |/test/cm|d/bounce|
|00004460| 2e 74 27 5c 22 20 5c 28 | 36 36 20 63 68 61 72 61 |.t'\" \(|66 chara|
|00004470| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00004480| 2f 5e 58 2f 2f 22 20 3e | 27 61 67 65 6e 74 2f 74 |/^X//" >|'agent/t|
|00004490| 65 73 74 2f 63 6d 64 2f | 62 6f 75 6e 63 65 2e 74 |est/cmd/|bounce.t|
|000044a0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000044b0| 27 0a 58 23 20 54 65 73 | 74 20 42 4f 55 4e 43 45 |'.X# Tes|t BOUNCE|
|000044c0| 20 63 6f 6d 6d 61 6e 64 | 0a 58 70 72 69 6e 74 20 | command|.Xprint |
|000044d0| 22 2d 31 5c 6e 22 3b 09 | 23 20 41 75 74 6f 6d 61 |"-1\n";.|# Automa|
|000044e0| 74 69 63 20 74 65 73 74 | 69 6e 67 20 64 69 66 66 |tic test|ing diff|
|000044f0| 69 63 75 6c 74 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |icult.EN|D_OF_FIL|
|00004500| 45 0a 20 20 69 66 20 74 | 65 73 74 20 36 36 20 2d |E. if t|est 66 -|
|00004510| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 61 67 65 6e |ne `wc -|c <'agen|
|00004520| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 62 6f 75 6e 63 |t/test/c|md/bounc|
|00004530| 65 2e 74 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |e.t'`; t|hen. |
|00004540| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 61 67 |echo sha|r: \"'ag|
|00004550| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 62 6f 75 |ent/test|/cmd/bou|
|00004560| 6e 63 65 2e 74 27 5c 22 | 20 75 6e 70 61 63 6b 65 |nce.t'\"| unpacke|
|00004570| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00004580| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00004590| 6f 66 20 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |of 'agen|t/test/c|
|000045a0| 6d 64 2f 62 6f 75 6e 63 | 65 2e 74 27 0a 66 69 0a |md/bounc|e.t'.fi.|
|000045b0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 67 65 6e |if test |-f 'agen|
|000045c0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 64 65 6c 65 74 |t/test/c|md/delet|
|000045d0| 65 2e 74 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |e.t' -a |"${1}" !|
|000045e0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|000045f0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00004600| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00004610| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 61 67 |sting fi|le \"'ag|
|00004620| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 64 65 6c |ent/test|/cmd/del|
|00004630| 65 74 65 2e 74 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |ete.t'\"|.else. |
|00004640| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00004650| 63 74 69 6e 67 20 5c 22 | 27 61 67 65 6e 74 2f 74 |cting \"|'agent/t|
|00004660| 65 73 74 2f 63 6d 64 2f | 64 65 6c 65 74 65 2e 74 |est/cmd/|delete.t|
|00004670| 27 5c 22 20 5c 28 31 37 | 36 20 63 68 61 72 61 63 |'\" \(17|6 charac|
|00004680| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00004690| 5e 58 2f 2f 22 20 3e 27 | 61 67 65 6e 74 2f 74 65 |^X//" >'|agent/te|
|000046a0| 73 74 2f 63 6d 64 2f 64 | 65 6c 65 74 65 2e 74 27 |st/cmd/d|elete.t'|
|000046b0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000046c0| 0a 58 23 20 54 65 73 74 | 20 44 45 4c 45 54 45 20 |.X# Test| DELETE |
|000046d0| 63 6f 6d 6d 61 6e 64 0a | 58 64 6f 20 27 2e 2e 2f |command.|Xdo '../|
|000046e0| 70 6c 2f 63 6d 64 2e 70 | 6c 27 3b 0a 58 0a 58 26 |pl/cmd.p|l';.X.X&|
|000046f0| 61 64 64 5f 68 65 61 64 | 65 72 28 27 58 2d 54 61 |add_head|er('X-Ta|
|00004700| 67 3a 20 64 65 6c 65 74 | 65 27 29 3b 0a 58 60 24 |g: delet|e');.X`$|
|00004710| 63 6d 64 60 3b 0a 58 24 | 3f 20 3d 3d 20 30 20 7c |cmd`;.X$|? == 0 ||
|00004720| 7c 20 70 72 69 6e 74 20 | 22 31 5c 6e 22 3b 0a 58 || print |"1\n";.X|
|00004730| 2d 66 20 22 24 75 73 65 | 72 22 20 26 26 20 70 72 |-f "$use|r" && pr|
|00004740| 69 6e 74 20 22 32 5c 6e | 22 3b 09 09 23 20 4d 61 |int "2\n|";..# Ma|
|00004750| 69 6c 20 64 65 6c 65 74 | 65 64 0a 58 0a 58 75 6e |il delet|ed.X.Xun|
|00004760| 6c 69 6e 6b 20 27 6d 61 | 69 6c 27 3b 0a 58 70 72 |link 'ma|il';.Xpr|
|00004770| 69 6e 74 20 22 30 5c 6e | 22 3b 0a 45 4e 44 5f 4f |int "0\n|";.END_O|
|00004780| 46 5f 46 49 4c 45 0a 20 | 20 69 66 20 74 65 73 74 |F_FILE. | if test|
|00004790| 20 31 37 36 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 | 176 -ne| `wc -c |
|000047a0| 3c 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |<'agent/|test/cmd|
|000047b0| 2f 64 65 6c 65 74 65 2e | 74 27 60 3b 20 74 68 65 |/delete.|t'`; the|
|000047c0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|000047d0| 20 5c 22 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 | \"'agen|t/test/c|
|000047e0| 6d 64 2f 64 65 6c 65 74 | 65 2e 74 27 5c 22 20 75 |md/delet|e.t'\" u|
|000047f0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004800| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00004810| 23 20 65 6e 64 20 6f 66 | 20 27 61 67 65 6e 74 2f |# end of| 'agent/|
|00004820| 74 65 73 74 2f 63 6d 64 | 2f 64 65 6c 65 74 65 2e |test/cmd|/delete.|
|00004830| 74 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |t'.fi.if| test -f|
|00004840| 20 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 | 'agent/|test/cmd|
|00004850| 2f 66 65 65 64 2e 74 27 | 20 2d 61 20 22 24 7b 31 |/feed.t'| -a "${1|
|00004860| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00004870| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00004880| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00004890| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000048a0| 22 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |"'agent/|test/cmd|
|000048b0| 2f 66 65 65 64 2e 74 27 | 5c 22 0a 65 6c 73 65 0a |/feed.t'|\".else.|
|000048c0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|000048d0| 72 61 63 74 69 6e 67 20 | 5c 22 27 61 67 65 6e 74 |racting |\"'agent|
|000048e0| 2f 74 65 73 74 2f 63 6d | 64 2f 66 65 65 64 2e 74 |/test/cm|d/feed.t|
|000048f0| 27 5c 22 20 5c 28 33 38 | 35 20 63 68 61 72 61 63 |'\" \(38|5 charac|
|00004900| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00004910| 5e 58 2f 2f 22 20 3e 27 | 61 67 65 6e 74 2f 74 65 |^X//" >'|agent/te|
|00004920| 73 74 2f 63 6d 64 2f 66 | 65 65 64 2e 74 27 20 3c |st/cmd/f|eed.t' <|
|00004930| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00004940| 23 20 54 65 73 74 20 46 | 45 45 44 20 63 6f 6d 6d |# Test F|EED comm|
|00004950| 61 6e 64 0a 58 64 6f 20 | 27 2e 2e 2f 70 6c 2f 63 |and.Xdo |'../pl/c|
|00004960| 6d 64 2e 70 6c 27 3b 0a | 58 75 6e 6c 69 6e 6b 20 |md.pl';.|Xunlink |
|00004970| 27 6f 6b 27 2c 20 27 6e | 6f 5f 72 65 73 79 6e 63 |'ok', 'n|o_resync|
|00004980| 27 3b 0a 58 0a 58 26 61 | 64 64 5f 68 65 61 64 65 |';.X.X&a|dd_heade|
|00004990| 72 28 27 58 2d 54 61 67 | 3a 20 66 65 65 64 27 29 |r('X-Tag|: feed')|
|000049a0| 3b 0a 58 60 24 63 6d 64 | 60 3b 0a 58 24 3f 20 3d |;.X`$cmd|`;.X$? =|
|000049b0| 3d 20 30 20 7c 7c 20 70 | 72 69 6e 74 20 22 31 5c |= 0 || p|rint "1\|
|000049c0| 6e 22 3b 0a 58 2d 66 20 | 22 24 75 73 65 72 22 20 |n";.X-f |"$user" |
|000049d0| 26 26 20 70 72 69 6e 74 | 20 22 32 5c 6e 22 3b 09 |&& print| "2\n";.|
|000049e0| 09 23 20 4d 61 69 6c 20 | 73 61 76 65 64 2e 2e 2e |.# Mail |saved...|
|000049f0| 0a 58 2d 66 20 27 6f 6b | 27 20 7c 7c 20 70 72 69 |.X-f 'ok|' || pri|
|00004a00| 6e 74 20 22 33 5c 6e 22 | 3b 09 09 09 23 20 2e 2e |nt "3\n"|;...# ..|
|00004a10| 2e 68 65 72 65 0a 58 26 | 67 65 74 5f 6c 6f 67 28 |.here.X&|get_log(|
|00004a20| 34 2c 20 27 6f 6b 27 29 | 3b 0a 58 26 6e 6f 74 5f |4, 'ok')|;.X&not_|
|00004a30| 6c 6f 67 28 27 5e 54 6f | 3a 27 2c 20 35 29 3b 09 |log('^To|:', 5);.|
|00004a40| 09 09 23 20 4d 61 6b 65 | 20 73 75 72 65 20 54 6f |..# Make| sure To|
|00004a50| 3a 20 64 69 73 61 70 70 | 65 61 72 65 64 0a 58 2d |: disapp|eared.X-|
|00004a60| 66 20 27 6e 6f 5f 72 65 | 73 79 6e 63 27 20 7c 7c |f 'no_re|sync' |||
|00004a70| 20 70 72 69 6e 74 20 22 | 36 5c 6e 22 3b 09 23 20 | print "|6\n";.# |
|00004a80| 45 6e 73 75 72 65 20 68 | 65 61 64 65 72 20 6e 6f |Ensure h|eader no|
|00004a90| 74 20 64 69 73 74 75 72 | 62 65 64 0a 58 0a 58 75 |t distur|bed.X.Xu|
|00004aa0| 6e 6c 69 6e 6b 20 27 6f | 6b 27 2c 20 27 6e 6f 5f |nlink 'o|k', 'no_|
|00004ab0| 72 65 73 79 6e 63 27 2c | 20 27 6d 61 69 6c 27 3b |resync',| 'mail';|
|00004ac0| 0a 58 70 72 69 6e 74 20 | 22 30 5c 6e 22 3b 0a 45 |.Xprint |"0\n";.E|
|00004ad0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00004ae0| 74 65 73 74 20 33 38 35 | 20 2d 6e 65 20 60 77 63 |test 385| -ne `wc|
|00004af0| 20 2d 63 20 3c 27 61 67 | 65 6e 74 2f 74 65 73 74 | -c <'ag|ent/test|
|00004b00| 2f 63 6d 64 2f 66 65 65 | 64 2e 74 27 60 3b 20 74 |/cmd/fee|d.t'`; t|
|00004b10| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004b20| 72 3a 20 5c 22 27 61 67 | 65 6e 74 2f 74 65 73 74 |r: \"'ag|ent/test|
|00004b30| 2f 63 6d 64 2f 66 65 65 | 64 2e 74 27 5c 22 20 75 |/cmd/fee|d.t'\" u|
|00004b40| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00004b50| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00004b60| 23 20 65 6e 64 20 6f 66 | 20 27 61 67 65 6e 74 2f |# end of| 'agent/|
|00004b70| 74 65 73 74 2f 63 6d 64 | 2f 66 65 65 64 2e 74 27 |test/cmd|/feed.t'|
|00004b80| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004b90| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 66 |agent/te|st/cmd/f|
|00004ba0| 6f 72 77 61 72 64 2e 74 | 27 20 2d 61 20 22 24 7b |orward.t|' -a "${|
|00004bb0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00004bc0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00004bd0| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00004be0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00004bf0| 5c 22 27 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d |\"'agent|/test/cm|
|00004c00| 64 2f 66 6f 72 77 61 72 | 64 2e 74 27 5c 22 0a 65 |d/forwar|d.t'\".e|
|00004c10| 6c 73 65 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |lse. ec|ho shar:|
|00004c20| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 61 | Extract|ing \"'a|
|00004c30| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 66 6f |gent/tes|t/cmd/fo|
|00004c40| 72 77 61 72 64 2e 74 27 | 5c 22 20 5c 28 36 37 20 |rward.t'|\" \(67 |
|00004c50| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|00004c60| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 61 67 |ed "s/^X|//" >'ag|
|00004c70| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 66 6f 72 |ent/test|/cmd/for|
|00004c80| 77 61 72 64 2e 74 27 20 | 3c 3c 27 45 4e 44 5f 4f |ward.t' |<<'END_O|
|00004c90| 46 5f 46 49 4c 45 27 0a | 58 23 20 54 65 73 74 20 |F_FILE'.|X# Test |
|00004ca0| 46 4f 52 57 41 52 44 20 | 63 6f 6d 6d 61 6e 64 0a |FORWARD |command.|
|00004cb0| 58 70 72 69 6e 74 20 22 | 2d 31 5c 6e 22 3b 09 23 |Xprint "|-1\n";.#|
|00004cc0| 20 41 75 74 6f 6d 61 74 | 69 63 20 74 65 73 74 69 | Automat|ic testi|
|00004cd0| 6e 67 20 64 69 66 66 69 | 63 75 6c 74 0a 45 4e 44 |ng diffi|cult.END|
|00004ce0| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00004cf0| 73 74 20 36 37 20 2d 6e | 65 20 60 77 63 20 2d 63 |st 67 -n|e `wc -c|
|00004d00| 20 3c 27 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d | <'agent|/test/cm|
|00004d10| 64 2f 66 6f 72 77 61 72 | 64 2e 74 27 60 3b 20 74 |d/forwar|d.t'`; t|
|00004d20| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|00004d30| 72 3a 20 5c 22 27 61 67 | 65 6e 74 2f 74 65 73 74 |r: \"'ag|ent/test|
|00004d40| 2f 63 6d 64 2f 66 6f 72 | 77 61 72 64 2e 74 27 5c |/cmd/for|ward.t'\|
|00004d50| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00004d60| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|00004d70| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 61 67 65 |. # end| of 'age|
|00004d80| 6e 74 2f 74 65 73 74 2f | 63 6d 64 2f 66 6f 72 77 |nt/test/|cmd/forw|
|00004d90| 61 72 64 2e 74 27 0a 66 | 69 0a 69 66 20 74 65 73 |ard.t'.f|i.if tes|
|00004da0| 74 20 2d 66 20 27 61 67 | 65 6e 74 2f 74 65 73 74 |t -f 'ag|ent/test|
|00004db0| 2f 63 6d 64 2f 6d 65 73 | 73 61 67 65 2e 74 27 20 |/cmd/mes|sage.t' |
|00004dc0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00004dd0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00004de0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00004df0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00004e00| 20 66 69 6c 65 20 5c 22 | 27 61 67 65 6e 74 2f 74 | file \"|'agent/t|
|00004e10| 65 73 74 2f 63 6d 64 2f | 6d 65 73 73 61 67 65 2e |est/cmd/|message.|
|00004e20| 74 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |t'\".els|e. echo|
|00004e30| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00004e40| 67 20 5c 22 27 61 67 65 | 6e 74 2f 74 65 73 74 2f |g \"'age|nt/test/|
|00004e50| 63 6d 64 2f 6d 65 73 73 | 61 67 65 2e 74 27 5c 22 |cmd/mess|age.t'\"|
|00004e60| 20 5c 28 36 37 20 63 68 | 61 72 61 63 74 65 72 73 | \(67 ch|aracters|
|00004e70| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00004e80| 22 20 3e 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |" >'agen|t/test/c|
|00004e90| 6d 64 2f 6d 65 73 73 61 | 67 65 2e 74 27 20 3c 3c |md/messa|ge.t' <<|
|00004ea0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00004eb0| 20 54 65 73 74 20 4d 45 | 53 53 41 47 45 20 63 6f | Test ME|SSAGE co|
|00004ec0| 6d 6d 61 6e 64 0a 58 70 | 72 69 6e 74 20 22 2d 31 |mmand.Xp|rint "-1|
|00004ed0| 5c 6e 22 3b 09 23 20 41 | 75 74 6f 6d 61 74 69 63 |\n";.# A|utomatic|
|00004ee0| 20 74 65 73 74 69 6e 67 | 20 64 69 66 66 69 63 75 | testing| difficu|
|00004ef0| 6c 74 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |lt.END_O|F_FILE. |
|00004f00| 20 69 66 20 74 65 73 74 | 20 36 37 20 2d 6e 65 20 | if test| 67 -ne |
|00004f10| 60 77 63 20 2d 63 20 3c | 27 61 67 65 6e 74 2f 74 |`wc -c <|'agent/t|
|00004f20| 65 73 74 2f 63 6d 64 2f | 6d 65 73 73 61 67 65 2e |est/cmd/|message.|
|00004f30| 74 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |t'`; the|n. ec|
|00004f40| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 61 67 65 6e |ho shar:| \"'agen|
|00004f50| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 6d 65 73 73 61 |t/test/c|md/messa|
|00004f60| 67 65 2e 74 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ge.t'\" |unpacked|
|00004f70| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00004f80| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00004f90| 66 20 27 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d |f 'agent|/test/cm|
|00004fa0| 64 2f 6d 65 73 73 61 67 | 65 2e 74 27 0a 66 69 0a |d/messag|e.t'.fi.|
|00004fb0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 67 65 6e |if test |-f 'agen|
|00004fc0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 6e 6f 70 2e 74 |t/test/c|md/nop.t|
|00004fd0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004fe0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004ff0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00005000| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00005010| 6e 67 20 66 69 6c 65 20 | 5c 22 27 61 67 65 6e 74 |ng file |\"'agent|
|00005020| 2f 74 65 73 74 2f 63 6d | 64 2f 6e 6f 70 2e 74 27 |/test/cm|d/nop.t'|
|00005030| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00005040| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005050| 5c 22 27 61 67 65 6e 74 | 2f 74 65 73 74 2f 63 6d |\"'agent|/test/cm|
|00005060| 64 2f 6e 6f 70 2e 74 27 | 5c 22 20 5c 28 32 30 38 |d/nop.t'|\" \(208|
|00005070| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00005080| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 61 |sed "s/^|X//" >'a|
|00005090| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 6e 6f |gent/tes|t/cmd/no|
|000050a0| 70 2e 74 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |p.t' <<'|END_OF_F|
|000050b0| 49 4c 45 27 0a 58 23 20 | 54 68 65 20 4e 4f 50 20 |ILE'.X# |The NOP |
|000050c0| 63 6f 6d 6d 61 6e 64 0a | 58 64 6f 20 27 2e 2e 2f |command.|Xdo '../|
|000050d0| 70 6c 2f 63 6d 64 2e 70 | 6c 27 3b 0a 58 0a 58 23 |pl/cmd.p|l';.X.X#|
|000050e0| 20 4d 61 6b 65 20 73 75 | 72 65 20 4e 4f 50 20 69 | Make su|re NOP i|
|000050f0| 73 20 72 65 63 6f 67 6e | 69 7a 65 64 20 28 6e 6f |s recogn|ized (no|
|00005100| 74 20 64 65 66 61 75 6c | 74 65 64 20 74 6f 20 4c |t defaul|ted to L|
|00005110| 45 41 56 45 29 0a 58 26 | 61 64 64 5f 68 65 61 64 |EAVE).X&|add_head|
|00005120| 65 72 28 27 58 2d 54 61 | 67 3a 20 6e 6f 70 27 29 |er('X-Ta|g: nop')|
|00005130| 3b 0a 58 60 24 63 6d 64 | 60 3b 0a 58 24 3f 20 3d |;.X`$cmd|`;.X$? =|
|00005140| 3d 20 30 20 7c 7c 20 70 | 72 69 6e 74 20 22 31 5c |= 0 || p|rint "1\|
|00005150| 6e 22 3b 0a 58 2d 66 20 | 22 24 75 73 65 72 22 20 |n";.X-f |"$user" |
|00005160| 26 26 20 70 72 69 6e 74 | 20 22 32 5c 6e 22 3b 0a |&& print| "2\n";.|
|00005170| 58 0a 58 75 6e 6c 69 6e | 6b 20 27 6d 61 69 6c 27 |X.Xunlin|k 'mail'|
|00005180| 3b 0a 58 70 72 69 6e 74 | 20 22 30 5c 6e 22 3b 0a |;.Xprint| "0\n";.|
|00005190| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 20 20 69 66 |END_OF_F|ILE. if|
|000051a0| 20 74 65 73 74 20 32 30 | 38 20 2d 6e 65 20 60 77 | test 20|8 -ne `w|
|000051b0| 63 20 2d 63 20 3c 27 61 | 67 65 6e 74 2f 74 65 73 |c -c <'a|gent/tes|
|000051c0| 74 2f 63 6d 64 2f 6e 6f | 70 2e 74 27 60 3b 20 74 |t/cmd/no|p.t'`; t|
|000051d0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000051e0| 72 3a 20 5c 22 27 61 67 | 65 6e 74 2f 74 65 73 74 |r: \"'ag|ent/test|
|000051f0| 2f 63 6d 64 2f 6e 6f 70 | 2e 74 27 5c 22 20 75 6e |/cmd/nop|.t'\" un|
|00005200| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00005210| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 23 |g size!.| fi. #|
|00005220| 20 65 6e 64 20 6f 66 20 | 27 61 67 65 6e 74 2f 74 | end of |'agent/t|
|00005230| 65 73 74 2f 63 6d 64 2f | 6e 6f 70 2e 74 27 0a 66 |est/cmd/|nop.t'.f|
|00005240| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 67 |i.if tes|t -f 'ag|
|00005250| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 6e 6f 74 |ent/test|/cmd/not|
|00005260| 69 66 79 2e 74 27 20 2d | 61 20 22 24 7b 31 7d 22 |ify.t' -|a "${1}"|
|00005270| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00005280| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00005290| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000052a0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000052b0| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 6e |agent/te|st/cmd/n|
|000052c0| 6f 74 69 66 79 2e 74 27 | 5c 22 0a 65 6c 73 65 0a |otify.t'|\".else.|
|000052d0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|000052e0| 72 61 63 74 69 6e 67 20 | 5c 22 27 61 67 65 6e 74 |racting |\"'agent|
|000052f0| 2f 74 65 73 74 2f 63 6d | 64 2f 6e 6f 74 69 66 79 |/test/cm|d/notify|
|00005300| 2e 74 27 5c 22 20 5c 28 | 36 36 20 63 68 61 72 61 |.t'\" \(|66 chara|
|00005310| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00005320| 2f 5e 58 2f 2f 22 20 3e | 27 61 67 65 6e 74 2f 74 |/^X//" >|'agent/t|
|00005330| 65 73 74 2f 63 6d 64 2f | 6e 6f 74 69 66 79 2e 74 |est/cmd/|notify.t|
|00005340| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00005350| 27 0a 58 23 20 54 65 73 | 74 20 4e 4f 54 49 46 59 |'.X# Tes|t NOTIFY|
|00005360| 20 63 6f 6d 6d 61 6e 64 | 0a 58 70 72 69 6e 74 20 | command|.Xprint |
|00005370| 22 2d 31 5c 6e 22 3b 09 | 23 20 41 75 74 6f 6d 61 |"-1\n";.|# Automa|
|00005380| 74 69 63 20 74 65 73 74 | 69 6e 67 20 64 69 66 66 |tic test|ing diff|
|00005390| 69 63 75 6c 74 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |icult.EN|D_OF_FIL|
|000053a0| 45 0a 20 20 69 66 20 74 | 65 73 74 20 36 36 20 2d |E. if t|est 66 -|
|000053b0| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 61 67 65 6e |ne `wc -|c <'agen|
|000053c0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 6e 6f 74 69 66 |t/test/c|md/notif|
|000053d0| 79 2e 74 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |y.t'`; t|hen. |
|000053e0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 61 67 |echo sha|r: \"'ag|
|000053f0| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 6e 6f 74 |ent/test|/cmd/not|
|00005400| 69 66 79 2e 74 27 5c 22 | 20 75 6e 70 61 63 6b 65 |ify.t'\"| unpacke|
|00005410| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00005420| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00005430| 6f 66 20 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |of 'agen|t/test/c|
|00005440| 6d 64 2f 6e 6f 74 69 66 | 79 2e 74 27 0a 66 69 0a |md/notif|y.t'.fi.|
|00005450| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 67 65 6e |if test |-f 'agen|
|00005460| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 61 73 73 2e |t/test/c|md/pass.|
|00005470| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|00005480| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005490| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000054a0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000054b0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 67 65 6e |ing file| \"'agen|
|000054c0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 61 73 73 2e |t/test/c|md/pass.|
|000054d0| 74 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |t'\".els|e. echo|
|000054e0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000054f0| 67 20 5c 22 27 61 67 65 | 6e 74 2f 74 65 73 74 2f |g \"'age|nt/test/|
|00005500| 63 6d 64 2f 70 61 73 73 | 2e 74 27 5c 22 20 5c 28 |cmd/pass|.t'\" \(|
|00005510| 34 35 39 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |459 char|acters\)|
|00005520| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|00005530| 3e 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |>'agent/|test/cmd|
|00005540| 2f 70 61 73 73 2e 74 27 | 20 3c 3c 27 45 4e 44 5f |/pass.t'| <<'END_|
|00005550| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 20 54 68 65 20 |OF_FILE'|.X# The |
|00005560| 50 41 53 53 20 63 6f 6d | 6d 61 6e 64 0a 58 64 6f |PASS com|mand.Xdo|
|00005570| 20 27 2e 2e 2f 70 6c 2f | 63 6d 64 2e 70 6c 27 3b | '../pl/|cmd.pl';|
|00005580| 0a 58 75 6e 6c 69 6e 6b | 20 27 6f 75 74 70 75 74 |.Xunlink| 'output|
|00005590| 27 3b 0a 58 0a 58 26 61 | 64 64 5f 68 65 61 64 65 |';.X.X&a|dd_heade|
|000055a0| 72 28 27 58 2d 54 61 67 | 3a 20 70 61 73 73 27 29 |r('X-Tag|: pass')|
|000055b0| 3b 0a 58 60 24 63 6d 64 | 60 3b 0a 58 24 3f 20 3d |;.X`$cmd|`;.X$? =|
|000055c0| 3d 20 30 20 7c 7c 20 70 | 72 69 6e 74 20 22 31 5c |= 0 || p|rint "1\|
|000055d0| 6e 22 3b 0a 58 2d 66 20 | 27 6f 75 74 70 75 74 27 |n";.X-f |'output'|
|000055e0| 20 7c 7c 20 70 72 69 6e | 74 20 22 32 5c 6e 22 3b | || prin|t "2\n";|
|000055f0| 09 09 23 20 57 68 65 72 | 65 20 6d 61 69 6c 20 69 |..# Wher|e mail i|
|00005600| 73 20 73 61 76 65 64 0a | 58 60 67 72 65 70 20 2d |s saved.|X`grep -|
|00005610| 76 20 58 2d 46 69 6c 74 | 65 72 3a 20 6f 75 74 70 |v X-Filt|er: outp|
|00005620| 75 74 20 3e 20 63 6f 6d | 70 60 3b 0a 58 24 3f 20 |ut > com|p`;.X$? |
|00005630| 3d 3d 20 30 20 7c 7c 20 | 70 72 69 6e 74 20 22 33 |== 0 || |print "3|
|00005640| 5c 6e 22 3b 0a 58 60 67 | 72 65 70 20 2d 76 20 61 |\n";.X`g|rep -v a|
|00005650| 6e 64 20 6d 61 69 6c 20 | 3e 20 6f 6b 60 3b 0a 58 |nd mail |> ok`;.X|
|00005660| 28 28 2d 73 20 27 63 6f | 6d 70 27 29 20 2d 20 31 |((-s 'co|mp') - 1|
|00005670| 29 20 3d 3d 20 2d 73 20 | 27 6f 6b 27 20 7c 7c 20 |) == -s |'ok' || |
|00005680| 70 72 69 6e 74 20 22 34 | 5c 6e 22 3b 09 23 20 53 |print "4|\n";.# S|
|00005690| 41 56 45 20 61 64 64 73 | 20 65 78 74 72 61 20 66 |AVE adds| extra f|
|000056a0| 69 6e 61 6c 20 6e 65 77 | 2d 6c 69 6e 65 0a 58 2d |inal new|-line.X-|
|000056b0| 73 20 27 63 6f 6d 70 27 | 20 21 3d 20 2d 73 20 27 |s 'comp'| != -s '|
|000056c0| 6f 75 74 70 75 74 27 20 | 7c 7c 20 70 72 69 6e 74 |output' ||| print|
|000056d0| 20 22 35 5c 6e 22 3b 09 | 23 20 43 61 73 75 61 6c | "5\n";.|# Casual|
|000056e0| 6c 79 20 63 68 65 63 6b | 20 58 2d 46 69 6c 74 65 |ly check| X-Filte|
|000056f0| 72 20 77 61 73 20 74 68 | 65 72 65 0a 58 0a 58 75 |r was th|ere.X.Xu|
|00005700| 6e 6c 69 6e 6b 20 27 6f | 75 74 70 75 74 27 2c 20 |nlink 'o|utput', |
|00005710| 27 6d 61 69 6c 27 2c 20 | 27 6f 6b 27 2c 20 27 63 |'mail', |'ok', 'c|
|00005720| 6f 6d 70 27 3b 0a 58 70 | 72 69 6e 74 20 22 30 5c |omp';.Xp|rint "0\|
|00005730| 6e 22 3b 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |n";.END_|OF_FILE.|
|00005740| 20 20 69 66 20 74 65 73 | 74 20 34 35 39 20 2d 6e | if tes|t 459 -n|
|00005750| 65 20 60 77 63 20 2d 63 | 20 3c 27 61 67 65 6e 74 |e `wc -c| <'agent|
|00005760| 2f 74 65 73 74 2f 63 6d | 64 2f 70 61 73 73 2e 74 |/test/cm|d/pass.t|
|00005770| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00005780| 6f 20 73 68 61 72 3a 20 | 5c 22 27 61 67 65 6e 74 |o shar: |\"'agent|
|00005790| 2f 74 65 73 74 2f 63 6d | 64 2f 70 61 73 73 2e 74 |/test/cm|d/pass.t|
|000057a0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|000057b0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|000057c0| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 61 |fi. # e|nd of 'a|
|000057d0| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 70 61 |gent/tes|t/cmd/pa|
|000057e0| 73 73 2e 74 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |ss.t'.fi|.if test|
|000057f0| 20 2d 66 20 27 61 67 65 | 6e 74 2f 74 65 73 74 2f | -f 'age|nt/test/|
|00005800| 63 6d 64 2f 70 69 70 65 | 2e 74 27 20 2d 61 20 22 |cmd/pipe|.t' -a "|
|00005810| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00005820| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00005830| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00005840| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00005850| 65 20 5c 22 27 61 67 65 | 6e 74 2f 74 65 73 74 2f |e \"'age|nt/test/|
|00005860| 63 6d 64 2f 70 69 70 65 | 2e 74 27 5c 22 0a 65 6c |cmd/pipe|.t'\".el|
|00005870| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|00005880| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 61 67 |Extracti|ng \"'ag|
|00005890| 65 6e 74 2f 74 65 73 74 | 2f 63 6d 64 2f 70 69 70 |ent/test|/cmd/pip|
|000058a0| 65 2e 74 27 5c 22 20 5c | 28 35 31 37 20 63 68 61 |e.t'\" \|(517 cha|
|000058b0| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|000058c0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 61 67 65 6e 74 |"s/^X//"| >'agent|
|000058d0| 2f 74 65 73 74 2f 63 6d | 64 2f 70 69 70 65 2e 74 |/test/cm|d/pipe.t|
|000058e0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000058f0| 27 0a 58 23 20 54 68 65 | 20 50 49 50 45 20 63 6f |'.X# The| PIPE co|
|00005900| 6d 6d 61 6e 64 0a 58 64 | 6f 20 27 2e 2e 2f 70 6c |mmand.Xd|o '../pl|
|00005910| 2f 63 6d 64 2e 70 6c 27 | 3b 0a 58 75 6e 6c 69 6e |/cmd.pl'|;.Xunlin|
|00005920| 6b 20 27 6f 75 74 70 75 | 74 27 3b 0a 58 0a 58 26 |k 'outpu|t';.X.X&|
|00005930| 61 64 64 5f 68 65 61 64 | 65 72 28 27 58 2d 54 61 |add_head|er('X-Ta|
|00005940| 67 3a 20 70 69 70 65 27 | 29 3b 0a 58 60 24 63 6d |g: pipe'|);.X`$cm|
|00005950| 64 60 3b 0a 58 24 3f 20 | 3d 3d 20 30 20 7c 7c 20 |d`;.X$? |== 0 || |
|00005960| 70 72 69 6e 74 20 22 31 | 5c 6e 22 3b 0a 58 2d 66 |print "1|\n";.X-f|
|00005970| 20 27 6f 75 74 70 75 74 | 27 20 7c 7c 20 70 72 69 | 'output|' || pri|
|00005980| 6e 74 20 22 32 5c 6e 22 | 3b 09 09 23 20 57 68 65 |nt "2\n"|;..# Whe|
|00005990| 72 65 20 6f 75 74 70 75 | 74 20 69 73 20 63 72 65 |re outpu|t is cre|
|000059a0| 61 74 65 64 0a 58 63 68 | 6f 70 28 24 6f 75 74 70 |ated.Xch|op($outp|
|000059b0| 75 74 20 3d 20 60 63 61 | 74 20 6f 75 74 70 75 74 |ut = `ca|t output|
|000059c0| 20 32 3e 2f 64 65 76 2f | 6e 75 6c 6c 60 29 3b 0a | 2>/dev/|null`);.|
|000059d0| 58 40 6f 75 74 70 75 74 | 20 3d 20 73 70 6c 69 74 |X@output| = split|
|000059e0| 28 27 20 27 2c 20 24 6f | 75 74 70 75 74 29 3b 0a |(' ', $o|utput);.|
|000059f0| 58 40 76 61 6c 69 64 20 | 3d 20 28 33 35 2c 20 32 |X@valid |= (35, 2|
|00005a00| 32 39 2c 20 31 36 33 32 | 29 3b 09 09 23 20 4f 75 |29, 1632|);..# Ou|
|00005a10| 74 70 75 74 20 6f 66 20 | 77 63 20 6f 6e 20 77 68 |tput of |wc on wh|
|00005a20| 6f 6c 65 20 6d 61 69 6c | 20 77 69 74 68 20 58 2d |ole mail| with X-|
|00005a30| 54 61 67 20 66 69 65 6c | 64 0a 58 24 6f 6b 20 3d |Tag fiel|d.X$ok =|
|00005a40| 20 31 3b 0a 58 66 6f 72 | 20 28 24 69 20 3d 20 30 | 1;.Xfor| ($i = 0|
|00005a50| 3b 20 24 69 20 3c 20 33 | 3b 20 24 69 2b 2b 29 20 |; $i < 3|; $i++) |
|00005a60| 7b 0a 58 09 24 6f 6b 20 | 3d 20 30 20 69 66 20 24 |{.X.$ok |= 0 if $|
|00005a70| 76 61 6c 69 64 5b 24 69 | 5d 20 21 3d 20 24 6f 75 |valid[$i|] != $ou|
|00005a80| 74 70 75 74 5b 24 69 5d | 3b 0a 58 7d 0a 58 24 6f |tput[$i]|;.X}.X$o|
|00005a90| 6b 20 7c 7c 20 70 72 69 | 6e 74 20 22 33 5c 6e 22 |k || pri|nt "3\n"|
|00005aa0| 3b 0a 58 2d 66 20 22 24 | 75 73 65 72 22 20 7c 7c |;.X-f "$|user" |||
|00005ab0| 20 70 72 69 6e 74 20 22 | 34 5c 6e 22 3b 09 09 23 | print "|4\n";..#|
|00005ac0| 20 44 65 66 61 75 6c 74 | 20 61 63 74 69 6f 6e 20 | Default| action |
|00005ad0| 61 70 70 6c 69 65 73 0a | 58 0a 58 75 6e 6c 69 6e |applies.|X.Xunlin|
|00005ae0| 6b 20 27 6f 75 74 70 75 | 74 27 2c 20 27 6d 61 69 |k 'outpu|t', 'mai|
|00005af0| 6c 27 2c 20 22 24 75 73 | 65 72 22 3b 0a 58 70 72 |l', "$us|er";.Xpr|
|00005b00| 69 6e 74 20 22 30 5c 6e | 22 3b 0a 45 4e 44 5f 4f |int "0\n|";.END_O|
|00005b10| 46 5f 46 49 4c 45 0a 20 | 20 69 66 20 74 65 73 74 |F_FILE. | if test|
|00005b20| 20 35 31 37 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 | 517 -ne| `wc -c |
|00005b30| 3c 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |<'agent/|test/cmd|
|00005b40| 2f 70 69 70 65 2e 74 27 | 60 3b 20 74 68 65 6e 0a |/pipe.t'|`; then.|
|00005b50| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00005b60| 22 27 61 67 65 6e 74 2f | 74 65 73 74 2f 63 6d 64 |"'agent/|test/cmd|
|00005b70| 2f 70 69 70 65 2e 74 27 | 5c 22 20 75 6e 70 61 63 |/pipe.t'|\" unpac|
|00005b80| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00005b90| 69 7a 65 21 0a 20 20 66 | 69 0a 20 20 23 20 65 6e |ize!. f|i. # en|
|00005ba0| 64 20 6f 66 20 27 61 67 | 65 6e 74 2f 74 65 73 74 |d of 'ag|ent/test|
|00005bb0| 2f 63 6d 64 2f 70 69 70 | 65 2e 74 27 0a 66 69 0a |/cmd/pip|e.t'.fi.|
|00005bc0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 67 65 6e |if test |-f 'agen|
|00005bd0| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 6f 73 74 2e |t/test/c|md/post.|
|00005be0| 74 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |t' -a "$|{1}" != |
|00005bf0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00005c00| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00005c10| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00005c20| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 61 67 65 6e |ing file| \"'agen|
|00005c30| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 6f 73 74 2e |t/test/c|md/post.|
|00005c40| 74 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |t'\".els|e. echo|
|00005c50| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00005c60| 67 20 5c 22 27 61 67 65 | 6e 74 2f 74 65 73 74 2f |g \"'age|nt/test/|
|00005c70| 63 6d 64 2f 70 6f 73 74 | 2e 74 27 5c 22 20 5c 28 |cmd/post|.t'\" \(|
|00005c80| 36 34 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |64 chara|cters\).|
|00005c90| 20 20 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e | sed "s|/^X//" >|
|00005ca0| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|00005cb0| 70 6f 73 74 2e 74 27 20 | 3c 3c 27 45 4e 44 5f 4f |post.t' |<<'END_O|
|00005cc0| 46 5f 46 49 4c 45 27 0a | 58 23 20 54 65 73 74 20 |F_FILE'.|X# Test |
|00005cd0| 50 4f 53 54 20 63 6f 6d | 6d 61 6e 64 0a 58 70 72 |POST com|mand.Xpr|
|00005ce0| 69 6e 74 20 22 2d 31 5c | 6e 22 3b 09 23 20 41 75 |int "-1\|n";.# Au|
|00005cf0| 74 6f 6d 61 74 69 63 20 | 74 65 73 74 69 6e 67 20 |tomatic |testing |
|00005d00| 64 69 66 66 69 63 75 6c | 74 0a 45 4e 44 5f 4f 46 |difficul|t.END_OF|
|00005d10| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00005d20| 36 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |64 -ne `|wc -c <'|
|00005d30| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 70 |agent/te|st/cmd/p|
|00005d40| 6f 73 74 2e 74 27 60 3b | 20 74 68 65 6e 0a 20 20 |ost.t'`;| then. |
|00005d50| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00005d60| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 70 |agent/te|st/cmd/p|
|00005d70| 6f 73 74 2e 74 27 5c 22 | 20 75 6e 70 61 63 6b 65 |ost.t'\"| unpacke|
|00005d80| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00005d90| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00005da0| 6f 66 20 27 61 67 65 6e | 74 2f 74 65 73 74 2f 63 |of 'agen|t/test/c|
|00005db0| 6d 64 2f 70 6f 73 74 2e | 74 27 0a 66 69 0a 69 66 |md/post.|t'.fi.if|
|00005dc0| 20 74 65 73 74 20 2d 66 | 20 27 61 67 65 6e 74 2f | test -f| 'agent/|
|00005dd0| 74 65 73 74 2f 63 6d 64 | 2f 70 72 6f 63 65 73 73 |test/cmd|/process|
|00005de0| 2e 74 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.t' -a "|${1}" !=|
|00005df0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00005e00| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00005e10| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00005e20| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 67 65 |ting fil|e \"'age|
|00005e30| 6e 74 2f 74 65 73 74 2f | 63 6d 64 2f 70 72 6f 63 |nt/test/|cmd/proc|
|00005e40| 65 73 73 2e 74 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |ess.t'\"|.else. |
|00005e50| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00005e60| 63 74 69 6e 67 20 5c 22 | 27 61 67 65 6e 74 2f 74 |cting \"|'agent/t|
|00005e70| 65 73 74 2f 63 6d 64 2f | 70 72 6f 63 65 73 73 2e |est/cmd/|process.|
|00005e80| 74 27 5c 22 20 5c 28 36 | 36 20 63 68 61 72 61 63 |t'\" \(6|6 charac|
|00005e90| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|00005ea0| 5e 58 2f 2f 22 20 3e 27 | 61 67 65 6e 74 2f 74 65 |^X//" >'|agent/te|
|00005eb0| 73 74 2f 63 6d 64 2f 70 | 72 6f 63 65 73 73 2e 74 |st/cmd/p|rocess.t|
|00005ec0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00005ed0| 27 0a 58 23 20 54 68 65 | 20 50 52 4f 43 45 53 53 |'.X# The| PROCESS|
|00005ee0| 20 63 6f 6d 6d 61 6e 64 | 0a 58 70 72 69 6e 74 20 | command|.Xprint |
|00005ef0| 22 2d 31 5c 6e 22 3b 09 | 23 20 41 75 74 6f 6d 61 |"-1\n";.|# Automa|
|00005f00| 74 69 63 20 74 65 73 74 | 69 6e 67 20 64 69 66 66 |tic test|ing diff|
|00005f10| 69 63 75 6c 74 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |icult.EN|D_OF_FIL|
|00005f20| 45 0a 20 20 69 66 20 74 | 65 73 74 20 36 36 20 2d |E. if t|est 66 -|
|00005f30| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 61 67 65 6e |ne `wc -|c <'agen|
|00005f40| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 72 6f 63 65 |t/test/c|md/proce|
|00005f50| 73 73 2e 74 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |ss.t'`; |then. |
|00005f60| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 61 | echo sh|ar: \"'a|
|00005f70| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 70 72 |gent/tes|t/cmd/pr|
|00005f80| 6f 63 65 73 73 2e 74 27 | 5c 22 20 75 6e 70 61 63 |ocess.t'|\" unpac|
|00005f90| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00005fa0| 69 7a 65 21 0a 20 20 66 | 69 0a 20 20 23 20 65 6e |ize!. f|i. # en|
|00005fb0| 64 20 6f 66 20 27 61 67 | 65 6e 74 2f 74 65 73 74 |d of 'ag|ent/test|
|00005fc0| 2f 63 6d 64 2f 70 72 6f | 63 65 73 73 2e 74 27 0a |/cmd/pro|cess.t'.|
|00005fd0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 61 |fi.if te|st -f 'a|
|00005fe0| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 70 75 |gent/tes|t/cmd/pu|
|00005ff0| 72 69 66 79 2e 74 27 20 | 2d 61 20 22 24 7b 31 7d |rify.t' |-a "${1}|
|00006000| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00006010| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00006020| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00006030| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00006040| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|00006050| 70 75 72 69 66 79 2e 74 | 27 5c 22 0a 65 6c 73 65 |purify.t|'\".else|
|00006060| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |. echo |shar: Ex|
|00006070| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 61 67 65 6e |tracting| \"'agen|
|00006080| 74 2f 74 65 73 74 2f 63 | 6d 64 2f 70 75 72 69 66 |t/test/c|md/purif|
|00006090| 79 2e 74 27 5c 22 20 5c | 28 34 36 38 20 63 68 61 |y.t'\" \|(468 cha|
|000060a0| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|000060b0| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 61 67 65 6e 74 |"s/^X//"| >'agent|
|000060c0| 2f 74 65 73 74 2f 63 6d | 64 2f 70 75 72 69 66 79 |/test/cm|d/purify|
|000060d0| 2e 74 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |.t' <<'E|ND_OF_FI|
|000060e0| 4c 45 27 0a 58 23 20 54 | 68 65 20 50 55 52 49 46 |LE'.X# T|he PURIF|
|000060f0| 59 20 63 6f 6d 6d 61 6e | 64 0a 58 64 6f 20 27 2e |Y comman|d.Xdo '.|
|00006100| 2e 2f 70 6c 2f 63 6d 64 | 2e 70 6c 27 3b 0a 58 75 |./pl/cmd|.pl';.Xu|
|00006110| 6e 6c 69 6e 6b 20 27 6f | 75 74 70 75 74 27 3b 0a |nlink 'o|utput';.|
|00006120| 58 0a 58 26 61 64 64 5f | 68 65 61 64 65 72 28 27 |X.X&add_|header('|
|00006130| 58 2d 54 61 67 3a 20 70 | 75 72 69 66 79 27 29 3b |X-Tag: p|urify');|
|00006140| 0a 58 60 24 63 6d 64 60 | 3b 0a 58 24 3f 20 3d 3d |.X`$cmd`|;.X$? ==|
|00006150| 20 30 20 7c 7c 20 70 72 | 69 6e 74 20 22 31 5c 6e | 0 || pr|int "1\n|
|00006160| 22 3b 0a 58 2d 66 20 27 | 6f 75 74 70 75 74 27 20 |";.X-f '|output' |
|00006170| 7c 7c 20 70 72 69 6e 74 | 20 22 32 5c 6e 22 3b 09 ||| print| "2\n";.|
|00006180| 09 23 20 57 68 65 72 65 | 20 6d 61 69 6c 20 69 73 |.# Where| mail is|
|00006190| 20 73 61 76 65 64 0a 58 | 60 67 72 65 70 20 2d 76 | saved.X|`grep -v|
|000061a0| 20 58 2d 46 69 6c 74 65 | 72 3a 20 6f 75 74 70 75 | X-Filte|r: outpu|
|000061b0| 74 20 3e 20 63 6f 6d 70 | 60 3b 0a 58 24 3f 20 3d |t > comp|`;.X$? =|
|000061c0| 3d 20 30 20 7c 7c 20 70 | 72 69 6e 74 20 22 33 5c |= 0 || p|rint "3\|
|000061d0| 6e 22 3b 0a 58 60 67 72 | 65 70 20 2d 76 20 53 75 |n";.X`gr|ep -v Su|
|000061e0| 62 6a 65 63 74 3a 20 6d | 61 69 6c 20 3e 20 6f 6b |bject: m|ail > ok|
|000061f0| 60 3b 0a 58 28 28 2d 73 | 20 27 63 6f 6d 70 27 29 |`;.X((-s| 'comp')|
|00006200| 20 2d 20 31 29 20 3d 3d | 20 2d 73 20 27 6f 6b 27 | - 1) ==| -s 'ok'|
|00006210| 20 7c 7c 20 70 72 69 6e | 74 20 22 34 5c 6e 22 3b | || prin|t "4\n";|
|00006220| 09 23 20 53 41 56 45 20 | 61 64 64 73 20 65 78 74 |.# SAVE |adds ext|
|00006230| 72 61 20 66 69 6e 61 6c | 20 6e 65 77 2d 6c 69 6e |ra final| new-lin|
|00006240| 65 0a 58 2d 73 20 27 63 | 6f 6d 70 27 20 21 3d 20 |e.X-s 'c|omp' != |
|00006250| 2d 73 20 27 6f 75 74 70 | 75 74 27 20 7c 7c 20 70 |-s 'outp|ut' || p|
|00006260| 72 69 6e 74 20 22 35 5c | 6e 22 3b 09 23 20 43 61 |rint "5\|n";.# Ca|
|00006270| 73 75 61 6c 6c 79 20 63 | 68 65 63 6b 20 58 2d 46 |sually c|heck X-F|
|00006280| 69 6c 74 65 72 20 77 61 | 73 20 74 68 65 72 65 0a |ilter wa|s there.|
|00006290| 58 0a 58 75 6e 6c 69 6e | 6b 20 27 6f 75 74 70 75 |X.Xunlin|k 'outpu|
|000062a0| 74 27 2c 20 27 6d 61 69 | 6c 27 2c 20 27 6f 6b 27 |t', 'mai|l', 'ok'|
|000062b0| 2c 20 27 63 6f 6d 70 27 | 3b 0a 58 70 72 69 6e 74 |, 'comp'|;.Xprint|
|000062c0| 20 22 30 5c 6e 22 3b 0a | 45 4e 44 5f 4f 46 5f 46 | "0\n";.|END_OF_F|
|000062d0| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 34 36 |ILE. if| test 46|
|000062e0| 38 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 61 |8 -ne `w|c -c <'a|
|000062f0| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 70 75 |gent/tes|t/cmd/pu|
|00006300| 72 69 66 79 2e 74 27 60 | 3b 20 74 68 65 6e 0a 20 |rify.t'`|; then. |
|00006310| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00006320| 27 61 67 65 6e 74 2f 74 | 65 73 74 2f 63 6d 64 2f |'agent/t|est/cmd/|
|00006330| 70 75 72 69 66 79 2e 74 | 27 5c 22 20 75 6e 70 61 |purify.t|'\" unpa|
|00006340| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00006350| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|00006360| 6e 64 20 6f 66 20 27 61 | 67 65 6e 74 2f 74 65 73 |nd of 'a|gent/tes|
|00006370| 74 2f 63 6d 64 2f 70 75 | 72 69 66 79 2e 74 27 0a |t/cmd/pu|rify.t'.|
|00006380| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 61 |fi.if te|st -f 'a|
|00006390| 67 65 6e 74 2f 74 65 73 | 74 2f 63 6d 64 2f 71 75 |gent/tes|t/cmd/qu|
|000063a0| 65 75 65 2e 74 27 20 2d | 61 20 22 24 7b 31 7d 22 |eue.t' -|a "${1}"|
|000063b0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|000063c0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|000063d0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|000063e0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|000063f0| 61 67 65 6e 74 2f 74 65 | 73 74 2f 63 6d 64 2f 71 |agent/te|st/cmd/q|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.