Skip to content

Commit e1d01c3

Browse files
committed
Merge #629: [contrib] Add script to turn 'people present' list into table
b01b321 [contrib] Add script to turn 'people present' list into table (David A. Harding) Pull request description: This is useful when creating a meeting summary. Script by @harding. Tree-SHA512: b51baa825782c79e1114015342383abb8b9912f1de928642632946a26245869277ff2dba95e8504c253dd55df3e1e9bd9b9ca1d0c5bc213701592c4e163d179d
2 parents d7bd141 + b01b321 commit e1d01c3

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

contrib/devtools/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,25 @@ Configuring the github-merge tool for the bitcoin repository is done in the foll
3636
git config githubmerge.testcmd "make -j4 check" (adapt to whatever you want to use for testing)
3737
git config --global user.signingkey mykeyid (if you want to GPG sign)
3838

39+
people-present.sh
40+
=================
41+
42+
Turn lines from meetbot "People present" meeting summary section into table
43+
for published meeting notes.
44+
45+
example usage:
46+
47+
```
48+
> cat pp.txt
49+
sipa (62)
50+
provoostenator (20)
51+
gribble (18)
52+
[...]
53+
> cat pp.txt | people-present.sh
54+
| IRC nick | Name/Nym |
55+
|-----------------|---------------------------|
56+
| sipa | [Pieter Wuille][] |
57+
| provoostenator | [Sjors Provoost][] |
58+
| luke-jr | [Luke Dashjr][] |
59+
[...]
60+
```

contrib/devtools/people-present.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#!/bin/bash -eu
2+
3+
## people-present.sh
4+
## Turn lines from meetbot "People present" meeting summary section into table
5+
## for published meeting notes. Reads from stdin
6+
7+
DB=$(mktemp)
8+
9+
cat <<EOF > $DB
10+
| BlueMatt | [Matt Corallo][] |
11+
| LukeJr | [Luke Dashjr][] |
12+
| MarcoFalke | [Marco Falke][] |
13+
| Murch | [Mark Erhardt][] |
14+
| achow101 | [Andrew Chow][] |
15+
| aj | [Anthony Towns][] |
16+
| cfields | [Cory Fields][] |
17+
| echeveria | Echeveria |
18+
| fanquake | [Michael Ford][] |
19+
| gmaxwell | [Gregory Maxwell][] |
20+
| gwillen | [Glenn Willen][] |
21+
| instagibbs | [Gregory Sanders][] |
22+
| jamesob | [James O'Beirne][] |
23+
| jarthur | [Justin Arthur][] |
24+
| jcorgan | [Johnathan Corgan][] |
25+
| jimpo | [Jim Posen][] |
26+
| jnewbery | [John Newbery][] |
27+
| jonasschenlli | [Jonas Schnelli][] |
28+
| jonasschnelli | [Jonas Schnelli][] |
29+
| jtimon | [Jorge Timón][] |
30+
| kanzure | [Bryan Bishop][] |
31+
| ken2812221 | [Chun Kuan Lee][] |
32+
| lclc | [Lucas Betschart][] |
33+
| luke-jr | [Luke Dashjr][] |
34+
| meshcollider | [Samuel Dobson][] |
35+
| moneyball | [Steve Lee][] |
36+
| morcos | [Alex Morcos][] |
37+
| nmnkgl | [Gleb Naumenko][] |
38+
| phantomcircuit | [Patrick Strateman][] |
39+
| promag | [Joao Barbosa][] |
40+
| provoostenator | [Sjors Provoost][] |
41+
| randolf | [Randolf Richardson][] |
42+
| roasbeef | [Olaoluwa Osuntokun][] |
43+
| ryanofsky | [Russell Yanofsky][] |
44+
| sdaftuar | [Suhas Daftuar][] |
45+
| sipa | [Pieter Wuille][] |
46+
| skeees | [Jesse Cohen][] |
47+
| wumpus | [Wladimir van der Laan][] |
48+
EOF
49+
50+
echo '| IRC nick | Name/Nym |'
51+
echo '|-----------------|---------------------------|'
52+
53+
## Example: " BlueMatt (96)"
54+
cat | sed 's/ (.*//; s/ //g;' | while read line
55+
do
56+
case "$line" in
57+
gribble|lightningbot|bitcoin-git)
58+
continue
59+
;;
60+
esac
61+
62+
grep "$line" $DB || echo $line
63+
done
64+
65+
rm $DB

0 commit comments

Comments
 (0)