diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2017-07-07 14:45:27 -0700 |
---|---|---|
committer | Mathias Preiner <mathias.preiner@gmail.com> | 2017-07-07 14:45:27 -0700 |
commit | 71b92ec515a27e8a40a7e85e6cbd6a862482574e (patch) | |
tree | 70ed91c0c5d7d63142d22cf4c4f19f28685207c9 /contrib/get-authors | |
parent | adef38f318e055c09db85e483040528d68d394e5 (diff) |
Use consistent author names for the copyright headers.
Diffstat (limited to 'contrib/get-authors')
-rwxr-xr-x | contrib/get-authors | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/get-authors b/contrib/get-authors index 4c1bb0233..34ebdf5e3 100755 --- a/contrib/get-authors +++ b/contrib/get-authors @@ -23,9 +23,20 @@ while [ $# -gt 0 ]; do shift contributors= total_lines=`wc -l "$f" | awk '{print$1}'` - git blame --incremental "$f" | gawk '/^[0-9a-f]+ [0-9]+ [0-9]+ [0-9]+$/ {nl=$4;} /^summary .*copyright/ {nl=0} /^author / {$1=""; author=$0;} /^author-mail / {mail=$2} /^filename / {while(nl--) {print author,mail}}' | sed "s,Not Committed Yet <not.committed.yet>,$gituser," | sort | uniq -c | sort -nr | head -n 3 | + git blame --incremental "$f" | \ + gawk '/^[0-9a-f]+ [0-9]+ [0-9]+ [0-9]+$/ {nl=$4;} /^summary .*copyright/ {nl=0} /^author / {$1=""; author=$0;} /^author-mail / {mail=$2} /^filename / {while(nl--) {print author,mail}}' | \ + sed "s,Not Committed Yet <not.committed.yet>,$gituser," | \ + sed 's/PaulMeng/Paul Meng/' | \ + sed 's/barrettcw/Clark Barrett/' | \ + sed 's/Andres Nötzli/Andres Noetzli/' | \ + sed 's/Andres Notzli/Andres Noetzli/' | \ + sed 's/guykatzz/Guy/' | \ + sed 's/Guy Katz/Guy/' | \ + sed 's/Guy/Guy Katz/' | \ + eval "$strip_email" | \ + sort | uniq -c | sort -nr | head -n 3 | \ ( while read lines author; do contributors="${contributors:+$contributors, }$author" done; \ - echo "$contributors") | eval "$strip_email" + echo "$contributors") done |