summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-06-06 12:46:27 +0200
committerJim Meyering <meyering@redhat.com>2012-06-06 15:10:59 +0200
commit7b6ce030cc54b34c7fc8a87a0c89137fb5c78a50 (patch)
tree5069713e974aa50ed7e5a196de5879ef05927d7b
parent020851e467071face71df533f99cce971eb9bb38 (diff)
downloadcoreutils-7b6ce030cc54b34c7fc8a87a0c89137fb5c78a50.tar.xz
maint: detect a new type of duplicate in THANKS.in
* cfg.mk (sc_THANKS_in_duplicates): New rule.
-rw-r--r--cfg.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 7a86c2a49..040d7e17f 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -413,6 +413,19 @@ sc_preprocessor_indentation:
echo '$(ME): skipping test $@: cppi not installed' 1>&2; \
fi
+# THANKS.in is a list of name/email pairs for people who are mentioned in
+# commit logs (and generated ChangeLog), but who are not also listed as an
+# author of a commit. Name/email pairs of commit authors are automatically
+# extracted from the repository. As a very minor factorization, when
+# someone who was initially listed only in THANKS.in later authors a commit,
+# this rule detects that their pair may now be removed from THANKS.in.
+sc_THANKS_in_duplicates:
+ { git log --pretty=format:%aN | sort -u; \
+ cut -b-36 THANKS.in | sed '/^$$/d;s/ *$$//'; } \
+ | sort | uniq -d | grep . \
+ && { echo '$(ME): remove the above names from THANKS.in' \
+ 1>&2; exit 1; } || :
+
# Override the default Cc: used in generating an announcement.
announcement_Cc_ = $(translation_project_), \
coreutils@gnu.org, coreutils-announce@gnu.org