summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2020-06-03 07:12:07 -0700
committerGitHub <noreply@github.com>2020-06-03 09:12:07 -0500
commit145b9367255d2925b6b4e43818e223b9186bcfad (patch)
treea2e33d47f674a4378a871844f5c61d6ae595b5fe
parent6c8702ab5eb08466bf954e202241df39de680081 (diff)
Fix normalization of author names in contrib/get-authors. (#4553)
-rwxr-xr-xcontrib/get-authors7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/get-authors b/contrib/get-authors
index df147d10d..0fb3f6ae1 100755
--- a/contrib/get-authors
+++ b/contrib/get-authors
@@ -47,10 +47,8 @@ while [ $# -gt 0 ]; do
'$2 !~ /^[ \t]*(#include|namespace|}.*namespace.*|[ \t]*$)/ {print $1}' | \
# Keep author names only, remove the last 4 columns in ( ... )
- awk 'NF{NF-=4};1' | \
- # Determine top three contributors
- sort | uniq -c | sort -rn | head -n3 | \
+ awk 'NF{NF-=4};1' | \
# Fix author names
sed "s,Not Committed Yet <not.committed.yet>,$gituser," | \
@@ -68,6 +66,9 @@ while [ $# -gt 0 ]; do
sed 's/yoni206/Yoni Zohar/' | \
sed 's/ayveejay/Andrew V. Jones/' | \
+ # Determine top three contributors
+ sort | uniq -c | sort -rn | head -n3 | \
+
# Remove first columns from uniq -c (number of lines)
awk '{$1=""; print}' | \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback