aboutsummaryrefslogtreecommitdiff
path: root/dev
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
parent317db327c21ac78bd921020118b19afaf1c02350 (diff)
parent9955d2dfe778e41e447cb3ae71e708c7a3716f0d (diff)
Merge PR #13901: Fix list contributors
Reviewed-by: SkySkimmer
Diffstat (limited to 'dev')
-rw-r--r--dev/doc/release-process.md5
-rw-r--r--dev/nixpkgs.nix4
-rwxr-xr-x[-rw-r--r--]dev/tools/list-contributors.sh6
3 files changed, 10 insertions, 5 deletions
diff --git a/dev/doc/release-process.md b/dev/doc/release-process.md
index 57c325f698..1697a19668 100644
--- a/dev/doc/release-process.md
+++ b/dev/doc/release-process.md
@@ -114,6 +114,11 @@
list of contributors between Coq revisions. Typically used with
`VX.X+alpha..vX.X` to check the contributors of version `VX.X`.
+ Note that this script relies on `.mailmap` to merge multiple
+ identities. If you notice anything incorrect while using it, use
+ the opportunity to fix the `.mailmap` file. Same thing if you want
+ to have the full name of a contributor shown instead of a pseudonym.
+
## For each release (preview, final, patch-level) ##
- [ ] Ensure that there exists a milestone for the following version.
diff --git a/dev/nixpkgs.nix b/dev/nixpkgs.nix
index a582a70e0a..37e39a99a9 100644
--- a/dev/nixpkgs.nix
+++ b/dev/nixpkgs.nix
@@ -1,4 +1,4 @@
import (fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/0bbeca2ff952e6a171534793ddd0fa97c8f9546a.tar.gz";
- sha256 = "0h1y4ffvyvkqs6k2pak02pby25va7c6c1y4p8xkwlzqwswxqxvfl";
+ url = "https://github.com/NixOS/nixpkgs/archive/5c7a370a208d93d458193fc05ed84ced0ba7f387.tar.gz";
+ sha256 = "1jkn71xscsk4rb0agbp5saf06hy36qvy512zzh3881pkkn67i9js";
})
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