From fc80c04eb03e61a249f68e6f629f681c3995a683 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 21 Apr 2014 16:17:10 -0700 Subject: Initial commit (lol) --- commit-org-stats | 9 +++++++ commit-stats | 8 +++++++ fix-emails | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ review-org-stats | 10 ++++++++ review-stats | 9 +++++++ to-organizations | 55 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 162 insertions(+) create mode 100755 commit-org-stats create mode 100755 commit-stats create mode 100755 fix-emails create mode 100755 review-org-stats create mode 100755 review-stats create mode 100755 to-organizations diff --git a/commit-org-stats b/commit-org-stats new file mode 100755 index 0000000..06d5b3d --- /dev/null +++ b/commit-org-stats @@ -0,0 +1,9 @@ +#! /bin/bash + +git log $@ \ +| grep '^Author:' \ +| sed 's/^Author: //g' \ +| sed 's/>[^>]*$/>/g' \ +| $(dirname $0)/fix-emails \ +| $(dirname $0)/to-organizations \ +| sort | uniq -c | sort -n -r | less diff --git a/commit-stats b/commit-stats new file mode 100755 index 0000000..ffc0b6d --- /dev/null +++ b/commit-stats @@ -0,0 +1,8 @@ +#! /bin/bash + +git log $@ \ +| grep '^Author:' \ +| sed 's/^Author: //g' \ +| sed 's/>[^>]*$/>/g' \ +| $(dirname $0)/fix-emails \ +| sort | uniq -c | sort -n -r | less diff --git a/fix-emails b/fix-emails new file mode 100755 index 0000000..e4d92a3 --- /dev/null +++ b/fix-emails @@ -0,0 +1,71 @@ +#! /bin/bash +# +# This script attempts to fix typos in people's names/email addresses, +# as well as combine identities of people who use multiple email addresses. +# + +cat \ +| sed 's/ at /@/g' \ +| sed 's/-at-/@/g' \ +| sed 's/-dot-com/.com/g' \ +| sed "s/ 'at' /@/g" \ +| sed "s/ 'dot' /./g" \ +| sed 's/@\./@/g' \ +| sed 's/\([^ ]\)/g' \ +| sed 's/idr@freedesktop.org/ian.d.romanick@intel.com/g' \ +| sed 's/idr@lists.freedesktop.org/ian.d.romanick@intel.com/g' \ +| sed 's/idr@us.ibm.com/ian.d.romanick@intel.com/g' \ +| sed 's/romanick\.intel\.com/romanick@intel.com/g' \ +| sed 's/romainck/romanick/g' \ +| sed 's/Iam Romanick/Ian Romanick/g' \ +| sed 's/Matt Tuner/Matt Turner/g' \ +| sed 's/matts88/mattst88/g' \ +| sed 's/Anunj Phogat/Anuj Phogat/g' \ +| sed 's/Ken Graunke/Kenneth Graunke/g' \ +| sed 's/Kenneth Gruanke/Kenneth Graunke/g' \ +| sed 's/Marek Ol????k/Marek Olšák/g' \ +| sed 's/Marek Ol ák/Marek Olšák/g' \ +| sed 's/maraeo@gmail.com/marek.olsak@amd.com/g' \ +| sed 's/alex.deucher@amd.com/alexander.deucher@amd.com/g' \ +| sed 's/alexdeucher@gmail.com/alexander.deucher@amd.com/g' \ +| sed 's/vmare.com/vmware.com/g' \ +| sed 's/strereotype441@gmail.com/stereotype441@gmail.com/g' \ +| sed 's/stereoytpe441@gmail.com/stereotype441@gmail.com/g' \ +| sed 's/Paul-Berry/Paul Berry/g' \ +| sed 's/chad@chad-versace.us/chad.versace@linux.intel.com/g' \ +| sed 's/chad.versace@intel.com/chad.versace@linux.intel.com/g' \ +| sed 's/Chad Verace/Chad Versace/g' \ +| sed 's/Chad Versace chad.versace@linux.intel.com/chad.versace@linux.intel.com/g' \ +| sed 's/Dylan Baken/Dylan Baker/g' \ +| sed 's/aholt.net/anholt.net/g' \ +| sed 's/anho.net/anholt.net/g' \ +| sed 's///g' \ +| sed 's/^$/Eric Anholt /g' \ +| sed 's/krh@redhat.com/krh@bitplanet.net/g' \ +| sed 's/virtousgeek.org/virtuousgeek.org/g' \ +| sed 's/jljusten@gmail.com/jordan.l.justen@intel.com/g' \ +| sed 's/Bornecranz/Bornecrantz/g' \ +| sed 's/Bornecrants/Bornecrantz/g' \ +| sed 's/Bornecrant/Bornecrantz/g' \ +| sed 's/Bornecrantzz/Bornecrantz/g' \ +| sed 's/Jose Fonseca/José Fonseca/g' \ +| sed 's/jrfonseca@tungstengraphics.com/jfonseca@vmware.com/g' \ +| sed 's/jose.r.fonseca@gmail.com/jfonseca@vmware.com/g' \ +| sed 's/Daenzer/Dänzer/g' \ +| sed 's/michel@daenzer.net/michel.daenzer@amd.com/g' \ +| sed 's/Stellad/Stellard/g' \ +| sed 's/tom@stellard.net/thomas.stellard@amd.com/g' \ +| sed 's/^Mathias.Froehlich@web.de$/Mathias Fröhlich /g' \ +| sed 's/Froehlich/Fröhlich/g' \ +| sed 's/vlee@vmware.com/vlee@freedesktop.org/g' \ +| sed 's/m.b.lankhorst@gmail.com/maarten.lankhorst@canonical.com/g' \ +| sed 's/maarten.lankhorst@ubunutu.com/maarten.lankhorst@canonical.com/g' \ +| sed 's/stephane.marchesin@gmail.com/marcheu@chromium.org/g' \ +| sed 's/stephane.marchesin@gmail.com/marcheu@chromium.org/g' \ +| sed 's/Rob Clark robdclark@freedesktop.org/robclark@freedesktop.org/g' \ +| sed 's/airlied@gmail.com/airlied@redhat.com/g' \ +| sed 's/airliedfreedesktop.org/airlied@redhat.com/g' \ +| sed 's/LunarG.com/lunarg.com/g' \ +| sed 's/MarkKMueller@gmail.com/markkmueller@gmail.com/g' \ +| sed 's/^\s*//g' diff --git a/review-org-stats b/review-org-stats new file mode 100755 index 0000000..af166ce --- /dev/null +++ b/review-org-stats @@ -0,0 +1,10 @@ +#! /bin/bash + +git log $@ \ +| grep Reviewed-by \ +| sed 's/^[^R]*Reviewed-by:* *//g' \ +| sed 's/>[^>]*$/>/g' \ +| sed 's/Reviewed-by:* *//g' \ +| $(dirname $0)/fix-emails \ +| $(dirname $0)/to-organizations \ +| sort | uniq -c | sort -n -r | less diff --git a/review-stats b/review-stats new file mode 100755 index 0000000..b1200ef --- /dev/null +++ b/review-stats @@ -0,0 +1,9 @@ +#! /bin/bash + +git log $@ \ +| grep Reviewed-by \ +| sed 's/^[^R]*Reviewed-by:* *//g' \ +| sed 's/>[^>]*$/>/g' \ +| sed 's/Reviewed-by:* *//g' \ +| $(dirname $0)/fix-emails \ +| sort | uniq -c | sort -n -r | less diff --git a/to-organizations b/to-organizations new file mode 100755 index 0000000..1a92fa2 --- /dev/null +++ b/to-organizations @@ -0,0 +1,55 @@ +#! /bin/bash + +cat \ +| sed 's/.*intel.com.*/Intel/g' \ +| sed 's/.*amd.com.*/AMD/g' \ +| sed 's/.*vmware.com.*/VMWare/g' \ +| sed 's/.*lunarg.com.*/LunarG/g' \ +| sed 's/.*redhat.com.*/Red Hat/g' \ +| sed 's/.*google.com.*/Google/g' \ +| sed 's/.*chromium.org.*/Google/g' \ +| sed 's/.*canonical.com.*/Canonical/g' \ +| sed 's/.*ubuntu.com.*/Canonical/g' \ +| sed 's/.*apple.com.*/Apple/g' \ +| sed 's/.*oracle.com.*/Oracle/g' \ +| sed 's/.*samsung.com.*/Samsung/g' \ +| sed 's/.*linaro.org.*/Linaro/g' \ +| sed 's/.*ibm.com.*/IBM/g' \ +| sed 's/.*mozilla.com.*/Mozilla/g' \ +| sed 's/.*suse.com.*/SuSE/g' \ +| sed 's/.*gentoo.org.*/Gentoo/g' \ +| sed 's/.*debian.org.*/Debian/g' \ +| sed 's/.*kde.org.*/KDE/g' \ +| sed 's/.*igalia.com.*/Igalia/g' \ +| sed 's/Eric Anholt /Intel/g' \ +| sed 's/Kenneth Graunke /Intel/g' \ +| sed 's/Matt Turner /Intel/g' \ +| sed 's/Paul Berry /Intel/g' \ +| sed 's/Chris Forbes /Intel/g' \ +| sed 's/Anuj Phogat /Intel/g' \ +| sed 's/Kristian Høgsberg /Intel/g' \ +| sed 's/Robert Bragg /Intel/g' \ +| sed 's/Carl Worth /Intel/g' \ +| sed 's/Keith Packard /Intel/g' \ +| sed 's/Daniel Vetter /Intel/g' \ +| sed 's/Rodrigo Vivi /Intel/g' \ +| sed 's/Todd Previte /Intel/g' \ +| sed 's/Dylan Baker /Intel/g' \ +| sed 's/Josh Triplett /Intel/g' \ +| sed 's/Mark Mueller /Intel/g' \ +| sed 's/Nicholas Mack /Intel/g' \ +| sed 's/Jacob Penner /Intel/g' \ +| sed 's/Steve Miller /Intel/g' \ +| sed 's/Ben Widawsky /Intel/g' \ +| sed 's/Juha-Pekka Heikkila /Intel/g' \ +| sed 's/Alexander von Gluck IV /Haiku/g' \ +| sed 's/Rob Clark /Red Hat/g' \ +| sed 's/Dave Airlie /Red Hat/g' \ +| sed 's/Chia-I Wu /LunarG/g' \ +| sed 's/.*@.*/Independent/g' + +#| sed 's/.*Emil Velikov.*/Emil Velikov/g' \ + +# Francisco Jerez worked at Intel for a while, but this tool is ignorant about +# date ranges and he did piles of work outside of Intel too, so consider him +# independent for now. -- cgit v1.2.3