[RFC] devel: script to calculate a list of authors.

Subject:[RFC] devel: script to calculate a list of authors.

Date:Wed, 3 Jun 2020 13:07:44 -0300



From:David Bremner

As an initial heuristic, report anyone with at least 15 lines of code
in the current source tree. Test corpora are excluded, although
probabably this doesn't change much about the list of authors

I realized both AUTHORS and debian/copyright are woefully out of
date. I think it makes sense to keep something like this in the repo,
both to ease updates and to document a policy. Presuambly 'author '
should be removed from the output, but I'm guessing Tomi will tear
this apart anyway ;).

 devel/author-scan.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 devel/author-scan.sh

diff --git a/devel/author-scan.sh b/devel/author-scan.sh
new file mode 100644
index 00000000..b7b46a33
--- /dev/null
+++ b/devel/author-scan.sh
@@ -0,0 +1,11 @@
+# based on the FSF guideline, for want of a better idea.
+git ls-files | grep -v "$FILE_EXCLUDE" |
+    while read f; do
+        git blame -w --line-porcelain -- "$f" | grep -I '^author ' | grep -v "$AUTHOR_EXCLUDE"
+    done | sort -fd | uniq -ic | awk "\$1 >= $THRESHOLD" |  sort -nr

notmuch mailing list