On 05/28/2010 03:33 AM, Jim Meyering wrote:
Here's a rule to help us automate the task of keeping
our AUTHORS file in sync with the commit history:
+# 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>" AUTHORS \
Sorry for not spotting this sooner, but it breaks VPATH builds. Patch
coming up soon...
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org