From b19eb078acea70ddab2cdc40d15dea3837ba0fbb Mon Sep 17 00:00:00 2001 From: baydam Date: Fri, 7 Oct 2016 15:12:28 +0000 Subject: [PATCH] Make a script to generate contributors from the git logs --- docs/informations/CONTRIBUTORS.html | 17 +++++++++++++++++ docs/informations/CONTRIBUTORS.md | 15 +++++++++++++++ scripts/update-contributors.sh | 23 +++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 docs/informations/CONTRIBUTORS.html create mode 100644 docs/informations/CONTRIBUTORS.md create mode 100755 scripts/update-contributors.sh diff --git a/docs/informations/CONTRIBUTORS.html b/docs/informations/CONTRIBUTORS.html new file mode 100644 index 0000000..2a4af06 --- /dev/null +++ b/docs/informations/CONTRIBUTORS.html @@ -0,0 +1,17 @@ +

Contributors

+ +

Ordered by first contribution.

+ + + +

Generated by scripts/update-contributors.sh.

diff --git a/docs/informations/CONTRIBUTORS.md b/docs/informations/CONTRIBUTORS.md new file mode 100644 index 0000000..62b9d6e --- /dev/null +++ b/docs/informations/CONTRIBUTORS.md @@ -0,0 +1,15 @@ +## Contributors + +#### Ordered by first contribution. + +- Alexandre Quessy (alexandre.quessy@collabora.com) +- Alexandre Quessy (alexandre@quessy.net) +- Tats (info@sofianaudry.com) +- sylvain (sylvain@jin-motion.com) +- Vasilis Liaskovitis (vasilis.liaskovitis@profitbricks.com) +- Vasilis Liaskovitis (vliaskov@gmail.com) +- baydam (baydamd@gmail.com) +- Marc Lavallée (marc@hacklava.net) +- Bay Dam (baydamd@gmail.com) + +#### Generated by scripts/update-contributors.sh. diff --git a/scripts/update-contributors.sh b/scripts/update-contributors.sh new file mode 100755 index 0000000..228e299 --- /dev/null +++ b/scripts/update-contributors.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# update CONTRIBUTORS.md based on git history. + +git log --reverse --format='%aN (%aE)' | perl -we ' +BEGIN { + %seen = (), @authors = (); +} +while (<>) { + next if $seen{$_}; + $seen{$_} = push @authors, "- ", $_; + +} +END { + print "## Contributors\n\n"; + print "#### Ordered by first contribution.\n\n"; + print @authors, "\n"; + print "#### Generated by scripts/update-contributors.sh.\n"; +} +' > ../docs/informations/CONTRIBUTORS.md + +# Convert markdown file to html +markdown ../docs/informations/CONTRIBUTORS.md > ../docs/informations/CONTRIBUTORS.html