summaryrefslogtreecommitdiff
path: root/misc/update-authors
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-05-09 18:52:30 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-05-14 20:41:29 +0200
commitb2c65a220cd3d60fecd7a825a8f3b74c1ecbf996 (patch)
tree40a003c6194c6a9b8cd841ffdbed77a6c9580003 /misc/update-authors
parente8885a2e17f0d2e071f494c5f409a984f3f9448e (diff)
downloadccache-b2c65a220cd3d60fecd7a825a8f3b74c1ecbf996.tar.gz
chore: Remove anonymous users from AUTHORS
Diffstat (limited to 'misc/update-authors')
-rwxr-xr-xmisc/update-authors3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/update-authors b/misc/update-authors
index 0755026c..3e0fcc07 100755
--- a/misc/update-authors
+++ b/misc/update-authors
@@ -1,5 +1,7 @@
#!/bin/sh
+anonymous="^(6d5CfLQ3dYAb|Delgan|luzpaz|RW|vsplesk)$"
+
if [ -d .git ]; then
# Fetch full Git history if needed, e.g. when run via CI.
git fetch --unshallow 2>/dev/null
@@ -8,6 +10,7 @@ if [ -d .git ]; then
# a "Co-authored-by:" in the commit message.
(git log | grep -Po "(?<=Co-authored-by: )(.*)(?= <)"; \
git log --format="%aN") \
+ | grep -Ev "$anonymous" \
| sed 's/^/* /' \
| LANG=en_US.utf8 sort -uf \
| perl -00 -p -i -e 's/^\*.*/<STDIN> . "\n"/es' doc/AUTHORS.adoc