Debian Codegraph @

dev/tools/list-contributors.sh

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/bash
2 # For compat with OSX which has a non-gnu sed which doesn't support -z
3 SED=`(which gsed || which sed) 2> /dev/null`
4
5 if [ $# != 1 ]; then
6 echo "usage: $0 rev0..rev1"
7 exit 1
8 fi
9
10 git shortlog -s -n --no-merges --group=author --group=trailer:Co-authored-by $1 | cut -f2 | sort -k 2 | grep -v -e "coqbot" -e "copilot" -e "^$" > contributors.tmp
11
12 cat contributors.tmp | wc -l | xargs echo "Contributors:"
13 cat contributors.tmp | $SED -z "s/\n/, /g"
14 echo
15 rm contributors.tmp
16
17 git shortlog -s -n --merges --group=author --group=trailer:Co-authored-by $1 | cut -f2 | sort -k 2 | grep -v -e "coqbot" -e "copilot" -e "^$" > assignees.tmp
18
19 cat assignees.tmp | wc -l | xargs echo "Assignees:"
20 cat assignees.tmp | $SED -z "s/\n/, /g"
21 echo
22 rm assignees.tmp
23
24 git shortlog -s -n --merges --group=trailer:reviewed-by --group=trailer:ack-by $1 | cut -f2 > reviewers-pseudos.tmp
25 rm -f reviewers-names.tmp
26 for i in `cat reviewers-pseudos.tmp`
27 do
28 res=`grep $i .mailmap`
29 if [[ $? == 1 ]]
30 then
31 echo $i" not found"
32 continue
33 fi
34 echo $res | tail -n1 | cut -d'<' -f1 >> reviewers-names.tmp
35 done
36 cat reviewers-names.tmp | sort -k 2 > reviewers.tmp
37 rm reviewers-pseudos.tmp reviewers-names.tmp
38 cat reviewers.tmp | wc -l | xargs echo "Reviewers:"
39 cat reviewers.tmp | $SED -z "s/ \n/, /g"
40 echo
41 rm reviewers.tmp