-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
generate-authors.sh
executable file
·62 lines (57 loc) · 1.67 KB
/
generate-authors.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
set -e
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."
# see also ".mailmap" for how email addresses and names are deduplicated
{
cat <<-'EOF'
# This file lists all individuals having contributed content to the repository.
# For how it is generated, see `scripts/generate-authors.sh`.
EOF
# old manual entries
read -d '' authors <<-"EOF" || true
Michel Baylac
Cyrille d'Haese
Ellen Reitmayr
Michael Beckmann
Oliver Beckmann
Fedor Bezrukov
Fabian Bieker
Aaron Chen
Fabrice Dessaint
Nathan Dunn
Alexis Gallagher
David Gleich
Behrouz Javanmardi
Bernd Kalbfuss
Martin Kähmer
Ervin Kolenovic
Krzysztof A. Kościuszkiewicz
Christian Kopf
Jeffrey Kuhn
Uwe Kuehn
Felix Langner
Stephan Lau
Alex Montgomery
Saverio Mori
Ambrogio Oliva
Stephan Rave
John Relph
Hannes Restel
Moritz Ringler
Rudolf Seemann
Toralf Senger
Manuel Siebeneicher
Mike Smoot
Ulrich Stärk
Martin Stolle
David Weitzman
John Zedlewski
Samin Muhammad Ridwanul Karim
Stefan Robert
Bernhard Tempel
EOF
# authors %aN = author name
# co-authors
coauthors=$(git log -i --grep=co-authored-by | grep -i "co-authored-by" | sed "s/.*co-authored-by: \(.*\)/\1/I" | grep -v "luis-valdez" | sed "s/ <.*//")
echo -e "$authors\n$(git log --format='%aN')\n$coauthors" | grep -v "\[bot\]" | grep -v "JabRef" | grep -v "Siedlerchr" | grep -v "^Christoph$" | grep -v "^Mootez$" | grep -v "oscargus" | grep -v "dependabot" | grep -v "github actions" | grep -v "igorsteinmacher" | grep -v "halirutan" | grep -v "matthiasgeiger" | grep -v "Gitter Badger" | grep -v "gdstewart" | grep -v "m-mauersberger" | grep -v "chenyuheng" | LC_ALL=C.UTF-8 sort --unique --ignore-case
} > AUTHORS