diff options
| author | Matthieu Sozeau | 2020-11-30 17:36:23 +0100 |
|---|---|---|
| committer | Matthieu Sozeau | 2020-11-30 17:44:37 +0100 |
| commit | 8c8dddac73d696acf47d61a0714587b99c2c8ac8 (patch) | |
| tree | 77fa20d123eefd56900287c645be69d98572a2b9 /dev/tools | |
| parent | 0af89e4c04b1ecf437a86b50a34a17eddee56b76 (diff) | |
list-contributors script
Diffstat (limited to 'dev/tools')
| -rw-r--r-- | dev/tools/list-contributors.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dev/tools/list-contributors.sh b/dev/tools/list-contributors.sh new file mode 100644 index 0000000000..c968f2e952 --- /dev/null +++ b/dev/tools/list-contributors.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# For compat with OSX which has a non-gnu sed which doesn't support -z +SED=`which gsed || which sed` + +if [ $# != 1 ]; then + error "usage: $0 rev0..rev1" + exit 1 +fi + +git shortlog -s -n --group=author --group=trailer:Co-authored-by $1 | cut -f2 | sort -k 2 | grep -v -e "coqbot" -e "^$" > contributors.tmp + +cat contributors.tmp | wc -l | xargs echo "Contributors:" +cat contributors.tmp | gsed -z "s/\n/, /g" +echo +rm contributors.tmp |
