From 0be199d431e72d7d37cf9596a205917730c22fe7 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 8 Mar 2016 13:40:33 -0800 Subject: exclude duplicate author --- AUTHORS.md | 1 - bin/update-authors.sh | 22 ++++++++++++++++++++++ tools/authors.sh | 21 --------------------- 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100755 bin/update-authors.sh delete mode 100755 tools/authors.sh diff --git a/AUTHORS.md b/AUTHORS.md index 31165d7..5616fac 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -60,7 +60,6 @@ - William Blankenship - James Halliday - Bazyli BrzoĢska -- Yoann Ciabaud #### Generated by tools/authors.sh. diff --git a/bin/update-authors.sh b/bin/update-authors.sh new file mode 100755 index 0000000..2b7fd79 --- /dev/null +++ b/bin/update-authors.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# Update AUTHORS.md based on git history. + +git log --reverse --format='%aN <%aE>' | perl -we ' +BEGIN { + %seen = (), @authors = (); +} +while (<>) { + next if $seen{$_}; + next if //; + next if //; + next if //; + next if /<.*\@users.noreply.github.com>/; + $seen{$_} = push @authors, "- ", $_; +} +END { + print "# Authors\n\n"; + print "#### Ordered by first contribution.\n\n"; + print @authors, "\n"; + print "#### Generated by tools/authors.sh.\n\n"; +} +' > AUTHORS.md diff --git a/tools/authors.sh b/tools/authors.sh deleted file mode 100755 index 035af1b..0000000 --- a/tools/authors.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Update AUTHORS.md based on git history. - -git log --reverse --format='%aN <%aE>' | perl -we ' -BEGIN { - %seen = (), @authors = (); -} -while (<>) { - next if $seen{$_}; - next if //; - next if //; - next if /<.*\@users.noreply.github.com>/; - $seen{$_} = push @authors, "- ", $_; -} -END { - print "# Authors\n\n"; - print "#### Ordered by first contribution.\n\n"; - print @authors, "\n"; - print "#### Generated by tools/authors.sh.\n\n"; -} -' > AUTHORS.md -- cgit v1.2.3