From 1f1a34cf258f50ad30e1855d2d73c25448f2844e Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 17 Dec 2016 18:16:28 +0100 Subject: [PATCH] Replace the contributors.md file with a self-generating contributors.rst file. The contributors.rst file is a bash quine originally found here https://gist.github.com/danielegobbetti/c691740ec6f815c75c065049fdc35243 --- CONTRIBUTORS.md | 39 ------------------------------ CONTRIBUTORS.rst | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 39 deletions(-) delete mode 100644 CONTRIBUTORS.md create mode 100644 CONTRIBUTORS.rst diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md deleted file mode 100644 index e876751d..00000000 --- a/CONTRIBUTORS.md +++ /dev/null @@ -1,39 +0,0 @@ - Andreas Shimokawa - Carsten Pfeiffer - Daniele Gobbetti - Julien Pivotto - Steffen Liebergeld - Lem Dulfo - Sergey Trofimov - JohnnySun - Uwe Hermann - 0nse <0nse@users.noreply.github.com> - Gergely Peidl - Christian Fischer - Normano64 - Ⲇⲁⲛⲓ Φi - xzovy - xphnx - Tarik Sekmen - Szymon Tomasz Stefanek - Roman Plevka - rober - Nicolò Balzarotti - Natanael Arndt - Marc Schlaich - kevlarcade - Kevin Richter - Kasha - Ivan - Gilles MOREL - Gilles Émilien MOREL - Chris Perelstein - Carlos Ferreira - atkyritsis - andre - Alexey Afanasev - 6arms1leg - -And all the Transifex translators, which I cannot automatically list, at the moment. - -git log --raw | grep "^Author: " | sort | uniq -c | sort -k 1 -n -r | cut -f 2- -d: > CONTRIBUTORS.md diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst new file mode 100644 index 00000000..e6698fda --- /dev/null +++ b/CONTRIBUTORS.rst @@ -0,0 +1,63 @@ +.. 2>/dev/null + names () + { + echo -e "\n exit;\n**Contributors (sorted by number of commits):**\n"; + git log --all --format='%aN:%aE' | sed 's/@users.github.com/@users.noreply.github.com/g' | awk 'BEGIN{FS=":"}{ct[$2]+=1;if (length($1) > length(e[$2])) {e[$2]=$1}}END{for (i in e) { n[e[i]]=i;c[e[i]]+=ct[i] }; for (a in n) print c[a]"\t* "a" <"n[a]">";}' | sort -n -r | cut -f 2- + } + quine () + { + { + echo ".. 2>/dev/null"; + declare -f names | sed -e 's/^[[:space:]]*/ /'; + declare -f quine | sed -e 's/^[[:space:]]*/ /'; + echo -e " quine\n"; + names; + echo -e "\nAnd all the Transifex translators, which I cannot automatically list, at the moment.\n\n*To update the contributors list just run this file with bash*" + } > CONTRIBUTORS.rst; + exit + } + quine + + + exit; +**Contributors (sorted by number of commits):** + +* Andreas Shimokawa +* Carsten Pfeiffer +* Daniele Gobbetti +* Julien Pivotto +* Steffen Liebergeld +* Lem Dulfo +* Sergey Trofimov +* JohnnySun +* Uwe Hermann +* Gergely Peidl +* 0nse <0nse@users.noreply.github.com> +* Christian Fischer +* Normano64 +* Ⲇⲁⲛⲓ Φi +* xzovy +* xphnx +* Tarik Sekmen +* Szymon Tomasz Stefanek +* Roman Plevka +* rober +* Nicolò Balzarotti +* Natanael Arndt +* Marc Schlaich +* kevlarcade +* Kevin Richter +* Kasha +* Ivan +* Gilles MOREL +* Gilles Émilien MOREL +* Chris Perelstein +* Carlos Ferreira +* atkyritsis +* andre +* Alexey Afanasev +* 6arms1leg + +And all the Transifex translators, which I cannot automatically list, at the moment. + +*To update the contributors list just run this file with bash*