Fix normalization of author names in contrib/get-authors. (#4553)
authorMathias Preiner <mathias.preiner@gmail.com>
Wed, 3 Jun 2020 14:12:07 +0000 (07:12 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Jun 2020 14:12:07 +0000 (09:12 -0500)
contrib/get-authors

index df147d10d6d8013712e49e2d8ec992b0e61a5a65..0fb3f6ae1ecee15b7b5c87bb45fbf394a3c1513c 100755 (executable)
@@ -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}' | \