aboutsummaryrefslogtreecommitdiff
path: root/dev/tools
diff options
context:
space:
mode:
authorcoqbot-app[bot]2021-03-10 13:57:38 +0000
committerGitHub2021-03-10 13:57:38 +0000
commitcde4dceb93ba1f91d20f13a0fdea8f9731a6a626 (patch)
tree92ff2503b55f731c3ef80c7f56150b98952aad68 /dev/tools
parent317db327c21ac78bd921020118b19afaf1c02350 (diff)
parent9955d2dfe778e41e447cb3ae71e708c7a3716f0d (diff)
Merge PR #13901: Fix list contributors
Reviewed-by: SkySkimmer
Diffstat (limited to 'dev/tools')
-rwxr-xr-x[-rw-r--r--]dev/tools/list-contributors.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/tools/list-contributors.sh b/dev/tools/list-contributors.sh
index c968f2e952..0b0d01c7e2 100644..100755
--- a/dev/tools/list-contributors.sh
+++ b/dev/tools/list-contributors.sh
@@ -1,15 +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`
+SED=`(which gsed || which sed) 2> /dev/null`
if [ $# != 1 ]; then
- error "usage: $0 rev0..rev1"
+ echo "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"
+cat contributors.tmp | $SED -z "s/\n/, /g"
echo
rm contributors.tmp