From 106f3a517b3d7fed87fd6820e664d33675a22262 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Sat, 22 Oct 2016 14:47:45 -0500 Subject: [PATCH] Add new script for generating AUTHORS file (#426) --- AUTHORS | 29 +---------------------------- tools/generate-authors.fish | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 28 deletions(-) create mode 100755 tools/generate-authors.fish diff --git a/AUTHORS b/AUTHORS index ffb391f..bce238f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,15 +1,13 @@ # This file lists all individuals having contributed content to the repository. -# git log --format='%aN <%aE>' | env LC_ALL=C.UTF-8 sort -uf +# This list was auto-generated from Git history. @thingsdoer Aaron DeVore -Aaron Hamilton Aaron Hamilton Adam Lavin Adriano Bonat Alex Farrell Alexander Grigoriev -Amio Amio • 晋晓炜 Andrew Rynhard André L. F. Pinto @@ -24,8 +22,6 @@ Benji Bodo Tasche Brian Bruno -Bruno Pinto -Bruno Pinto CADBOT Celso Miranda Chang Yu-heng @@ -39,19 +35,15 @@ costa cotne nazarashvili Cyan Dan Underwood -Dan Underwood Daniel Banck Daniel Mijares Daniele Sluijters -Daniele Sluijters Danny Arnold Dave Yarwood Declan Kelly Denis Kolesnikov Denis Koltsov Denny Trebbin -Derek Stavis -Derek Stavis Derek Willian Stavis Don Douglas Camata @@ -60,7 +52,6 @@ Eivind Uggedal Erik Kallen eugenesvk Felipe Rodrigues -Felipe Rodrigues de Almeida Felix Sonntag Fission Xuiptz Florian Fischer @@ -83,10 +74,8 @@ iven Jade Meskill Jake Schmitz James Hillyerd -Jan Lindblom Jan Lindblom Janusz Dziurzyński -Jason Rogers Jason Rogers Jean Mertz jeremiejig @@ -98,19 +87,13 @@ John Rizzo Johnny Robeson jona Jonathan Knapp -Jonathan Pares Jonathan Pares -Jorge Jorge Bucaran Joseph -Joseph Tannhuber Joshua Warner -Joshua Warner Josiah Sprague JP Viljoen Justin Hileman -Justin Hileman -Justin Hileman Jörg Thalheim Kasper Holbek Jensen Katya Demidova @@ -138,11 +121,9 @@ Michel Belleville Michele Gerarduzzi Miguel Molina Muhammad Tauqir Ahmad -Nathan Wykes Nathan Wykes Natrim Nelson Chen -ngroup ngroup Niam Patel Nicholas Maccharoli @@ -151,7 +132,6 @@ Nils Stål nwykes Osamu OKANO Pablo Aguiar -Pablo Santiago Blum de Aguiar PastLeo Paul Joannon Pedro Medeiros @@ -170,16 +150,12 @@ Scott Perry Sergey Timanin Sérgio Ramos Sheldon Els -Sheldon Els sn0cr <709679@gmail.com> sobolevn -Stephen Coakley Stephen M. Coakley -Steve Mckellar Steve Mckellar Steven Knight syl20bnr -szwathub Tad Thorley TheBestNinja Tobias Johansson @@ -191,14 +167,11 @@ unbalancedparentheses VEINHORN Vincent Vincent Pizzo -Vincent Pizzo Vincent Pretre Vladimir Panteleev Wes Morgan -Wild Kat Wild Kat William Hogman -William Rudenmalm Wolfgang Richter Zhishen (Jason) Wen Zhuang Ya diff --git a/tools/generate-authors.fish b/tools/generate-authors.fish new file mode 100755 index 0000000..208d45a --- /dev/null +++ b/tools/generate-authors.fish @@ -0,0 +1,19 @@ +#!/usr/bin/env fish +# This script generates the AUTHORS file from Git history. + +echo '# This file lists all individuals having contributed content to the repository.' +echo '# This list was auto-generated from Git history.' +echo + +git log --format='%aN <%aE>' | awk ' +{ + pos = index($0, "<"); + name = substr($0, 0, pos - 2); + email = substr($0, pos + 1, length($0) - pos - 1); + names[name]++; + emails[email]++; + if (names[name] == 1 && emails[email] == 1) { + print $0; + } +} +' | env LC_ALL=C.UTF-8 sort -uf