update-authors.sh
1 #!/bin/sh 2 # Update AUTHORS.md based on git history. 3 4 git log --reverse --format='%aN (%aE)' | perl -we ' 5 BEGIN { 6 %seen = (), @authors = (); 7 } 8 while (<>) { 9 next if $seen{$_}; 10 next if /(support\@greenkeeper.io)/; 11 next if /(yoann\@atacma.agency)/; 12 next if /(yciabaud\@users.noreply.github.com)/; 13 next if /(DiegoRBaquero\@users.noreply.github.com)/; 14 next if /(gustavcaplan\@gmail.com)/; 15 $seen{$_} = push @authors, "- ", $_; 16 } 17 END { 18 print "# Authors\n\n"; 19 print "#### Ordered by first contribution.\n\n"; 20 print @authors, "\n"; 21 print "#### Generated by tools/update-authors.sh.\n"; 22 } 23 ' > AUTHORS.md