commit 787661cb6bdf98883ea3ec00166dc888ad4f7c8b Author: Jim Meyering meyering@redhat.com Date: Wed Nov 9 16:30:48 2011 +0100
maint: don't distribute an empty AUTHORS file
* AUTHORS: Give it some content. * cfg.mk (sc_check_author_list): Add a syntax-check rule (from libvirt) to ensure that we keep the AUTHORS file up to date. * .mailmap: New file.
.mailmap | 5 +++++ AUTHORS | 14 ++++++++++++++ cfg.mk | 14 ++++++++++++++ 3 files changed, 33 insertions(+), 0 deletions(-) --- diff --git a/.mailmap b/.mailmap new file mode 100644 index 0000000..d06e9b2 --- /dev/null +++ b/.mailmap @@ -0,0 +1,5 @@ +meyering@redhat.com jim@meyering.net +jdarcy@redhat.com jdarcy@jdarcy-dt.usersys.redhat.com +zaitcev@redhat.com zaitcev@kotori.zaitcev.us +zaitcev@redhat.com zaitcev@yahoo.com +zaitcev@redhat.com root@fserver-1.virtual diff --git a/AUTHORS b/AUTHORS index e69de29..d43d1a5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -0,0 +1,14 @@ +iwhd contributors: + +iwhd was initially created by Jeff Darcy jdarcy@redhat.com + +The primary maintainers and people with commit access: + + Jeff Darcy jdarcy@redhat.com + Jim Meyering meyering@redhat.com + Pete Zaitcev zaitcev@redhat.com + +Patches have also been contributed by: + + Chris Lalancette clalance@redhat.com + Mark McLoughlin markmc@redhat.com diff --git a/cfg.mk b/cfg.mk index df73c8c..66801b3 100644 --- a/cfg.mk +++ b/cfg.mk @@ -57,6 +57,20 @@ sc_prohibit_emacs__indent_tabs_mode__setting: halt='use of emacs indent-tabs-mode: setting' \ $(_sc_search_regexp)
+# Give credit where due: +# Ensure that each commit author email address (possibly mapped via +# git log's .mailmap) appears in our AUTHORS file. +sc_check_author_list: + @fail=0; \ + for i in $$(git log --pretty=format:%aE%n|sort -u|grep -v '^$$'); do \ + sanitized=$$(echo "$$i"|LC_ALL=C sed 's/([^a-zA-Z0-9_@-])/\\1/g'); \ + grep -iq "<$$sanitized>" $(srcdir)/AUTHORS \ + || { printf '%s\n' "$$i" >&2; fail=1; }; \ + done; \ + test $$fail = 1 \ + && echo '$(ME): committer(s) not listed in AUTHORS' >&2; \ + test $$fail = 0 + odt = ^doc/image_repo.odt$ exclude_file_name_regexp--sc_trailing_blank = $(odt) exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = $(odt)
iwhd-commit@lists.fedorahosted.org