UNPKG

506 Bapplication/x-shView Raw
1#!/bin/sh
2# Update AUTHORS.md based on git history.
3
4git log --reverse --format='%aN (%aE)' | perl -we '
5BEGIN {
6 %seen = (), @authors = ();
7}
8while (<>) {
9 next if $seen{$_};
10 next if /(support\@greenkeeper.io)/;
11 next if /(nate\@ngoldman.me)/;
12 next if /(ahmad\@codeinchaos.com)/;
13 $seen{$_} = push @authors, "- ", $_;
14}
15END {
16 print "# Authors\n\n";
17 print "#### Ordered by first contribution.\n\n";
18 print @authors, "\n";
19 print "#### Generated by bin/update-authors.sh.\n";
20}
21' > AUTHORS.md