aboutsummaryrefslogtreecommitdiff
path: root/tools/gen_authors.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gen_authors.sh')
-rwxr-xr-xtools/gen_authors.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/gen_authors.sh b/tools/gen_authors.sh
new file mode 100755
index 0000000..4f69c76
--- /dev/null
+++ b/tools/gen_authors.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Generate a list of everyone who has contributed to the project merging those
+# who commited under two names or email addresses.
+# Original: https://github.com/Arora/arora/blob/master/generateAuthors
+#
+# To can pass an arg (which goes to git log)
+# Example: to see everyone who contributed between tag 0.6 and now
+# ./generateAuthors 0.6..HEAD
+#
+# Currently this is sorted based on # of commits, sorting contributions is not
+# a simple topic as pointed out in this article http://lwn.net/Articles/222773/
+#
+
+# List of aliases
+# Aqua, Aqua-sama <aqua@iserlohn-fortress.net>, Xian Nox, xiannox <xian.nox@gmail.com>
+
+git log --pretty="format:%an %ae" $1 \
+ | sed -e 's/Aqua /Aqua-sama /g'\
+ | sed -e 's/Xian Nox xian\.nox@gmail\.com/Aqua-sama aqua@iserlohn-fortress\.net/g'\
+ | sort | uniq -c | sort -n -r \
+ | sed -e 's/^ *[0-9]* / /g'