tree checksum vpatch file split hunks

all signers: lobbes asciilifeform diana_coman

antecedents: irssi2tmsr.kv raw_line_fix.kv

press order:

logotron_genesis.kvasciilifeform diana_coman
multsel_and_datefix.kvasciilifeform diana_coman
raw_line_export.kvasciilifeform diana_coman
rle_errata.kvasciilifeform diana_coman
irssi2tmsr.kvasciilifeform diana_coman
uniturds_etc.kvasciilifeform diana_coman
line_wraps.kvasciilifeform diana_coman
znc2tmsr_etc.kvasciilifeform diana_coman lobbes
uptimefix_bye_cache.kvasciilifeform diana_coman lobbes
raw_line_fix.kvasciilifeform diana_coman lobbes
irssi_format.kvasciilifeform diana_coman

patch:

- B22DBB3579AAB3629907F6EE3690C6EFA9FC883F48F95591DB1242755C5CBB34A75CCED595562444B472B1DE5448D9652C9B7335E28FFD2531550A1AF670DA84
+ DBBA91F83102533D1E4C0C7EFA6C861054C4A9C7CE713F92813916F9A5692592A8D0E2EFBB8EBE0D3C87DDD7477581228E59D3A9D52DABFDE0A0D18FC13E4BF8
logotron/MANIFEST.TXT
(8 . 3)(8 . 4)
5 590714 znc2tmsr_etc lobbes "Converter of znc logs to the tmsr format used by the logotron. Small fixes to eat_dump.py."
6 593779 uptimefix_bye_cache lobbes "Fix in bot.py for global time_last_conn. Remove Cache from reader.py. Small README fix re: create database."
7 594463 raw_line_fix lobbes "Fix to raw line export in reader.py to remove semi-colon from right side of nick on action lines"
8 595435 irssi_format diana_coman "Updates the irssi2tmsr converter to work on out-of-the-box irssi format. Updated README file too with example of format."
- D6C6FB0C6C00F85A0665614BFFA30CD804BCF49E55CE78D58F8C744B7CBAC8657FCCAD1D6ED5A47A85BA11E71F2E583775D7E4FC36980B5AF8F7958C28802CC7
+ 9311BB85E6D71E467394A0ED7231617286AD1E560C10E9BF5B3DE302751E69888D1A61EA239CD98D435170F7CA8806123356C65F0C3074DC501A7CB40F53D1B2
logotron/logconverters/irssi2tmsr/README.TXT
(9 . 5)(9 . 20)
13 sh convert.sh 10001 < inputfile > outputfile
14
15 3. Caveats:
16 - the converter expects months to be recorded numerically in the input file (e.g. 8, 9 instead of Aug, Sep); if your irssi log uses names for months then you'll need to either update the converter or convert month names to numbers separately, as a pre-converter step.
17 - based on the previous raw awk version published at http://logs.nosuchlabs.com/log/trilema/2019-08-11#1927486 and tested *only* on one irssi log of #ossasepia (result can be seen at: deedbot.org/deed-589684-1.txt )
18 - the converter works on the "out-of-the-box" irssi log format, as currently seen, for instance:
19
20 --- Day changed Mon Jul 15 2019
21 16:46 --> moopet [~moopet@unaffiliated/moopet] has joined #ossasepia
22 16:46 moopet: Aloha
23 16:46 diana_coman: hello moopet
24 16:46 diana_coman: what brings you here?
25 16:47 * moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
26
27 will produce (./convert.sh 2 < in.log > out.log) as output:
28
29 2;1563205560;moopet;Aloha
30 3;1563205560;diana_coman;hello moopet
31 4;1563205560;diana_coman;what brings you here?
32 5;1563205620;*;moopet read a comment on dev.to about TMSR and V and hasn't a clue what they are
33
- B8CE803DC74070A6BA41B992E99050526777D4E12076268EEE0D47A4051BA343BD3D16E9695438F7E9AB5343DFE6C17773CE018BE63912978E4AD58BB8409297
+ 4BEA5BD0E9D8015EDD85BA003F76FD2AC0D42611AA03BBF8232E1681D8F1BDA22D6CC3EB707EAF54E604CC690A14BFBA85A487F45CB98490530F6A2B449D014D
logotron/logconverters/irssi2tmsr/convert.sh
(5 . 14)(5 . 17)
38 exit 1
39 fi
40
41 awk -v mindex=$1 '/Day changed/ {Month=$5; Day=$6; Year=$7;}
42 /Log opened/ {Month=$5; Day=$6; Year=$10;}
43 ! /-|<--|>/ {count++; sep=";";
44 w= Year " " Month " " Day " " $1 " " $2 " 00";
45 if ($3 == "*") {
46 pp=$3 sep $4 " "; $4=""; n=5;
47 awk -v mindex=$1 'BEGIN{months="JanFebMarAprMayJunJulAugSepOctNovDec"}
48 /Day changed/ {Month=int((index(months,$5)+2)/3); Day=$6; Year=$7;}
49
50 /Log opened/ {Month=int((index(months,$5)+2)/3); Day=$6; Year=$8;}
51 ! /(-->)|(<--)|(---)/ {count++; sep=";";
52 w= Year " " Month " " Day " " substr($1, 1, 2) " " substr($1, 4, 5) " 00";
53 if ($2 == "*") {
54 pp= $2 sep $3 " "; $3=""; n=4;
55 } else {
56 pp=$3 sep; n=4;};
57 $1=""; $2=""; $3="";
58 pp=substr($2, 1, length($2)-1) sep; n=3;};
59 $1=""; $2="";
60 print count+mindex-1 sep mktime(w) sep pp substr($0,n);
61 }'
62