[libvirt] another AUTHORS update
Eric Blake
eblake at redhat.com
Fri May 28 12:49:36 UTC 2010
On 05/28/2010 03:33 AM, Jim Meyering wrote:
> Eric Blake wrote:
>> Eduardo Otubo contacted me off-list, noticing that his name was not yet
>> in AUTHORS even though he has had commits in the past. I've rectified
>> this situation with an obvious commit; not worth posting the diff to the
>> list (to avoid unnecessary exposure of all the email addresses...).
>
> Here's a rule to help us automate the task of keeping
> our AUTHORS file in sync with the commit history:
Cool idea!
>
> +# 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_ at -]\)/\\\1/g'); \
> + grep -iq "<$$sanitized>" AUTHORS \
> + || { printf '%s\n' "$$i" >&2; fail=1; }; \
> + done; \
> + test $$fail = 1 \
> + && echo '$(ME): committer(s) not listed in AUTHORS' >&2; \
> + test $$fail = 0
ACK
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100528/19107d48/attachment-0001.sig>
More information about the libvir-list
mailing list