Debian Codegraph @

dev/tools/list-contributors.sh

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