summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-12-13 14:26:25 +0100
committerJim Meyering <meyering@redhat.com>2009-01-16 23:28:20 +0100
commit31b6c0489a1db2384ffc89baa1de31e92cbcfb58 (patch)
tree81a66d6854f9f1ed5edb9f913f7e8d8ce24ca561
parenta7592cfcb2d9e70b938002b6d890ace750af55be (diff)
downloadcoreutils-31b6c0489a1db2384ffc89baa1de31e92cbcfb58.tar.xz
maint: enforce existing prohibition: no cvs $keywords$
* maint.mk (sc_prohibit_cvs_keyword): New rule.
-rw-r--r--maint.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index 9dc005a98..656155afe 100644
--- a/maint.mk
+++ b/maint.mk
@@ -361,6 +361,14 @@ sc_GPL_version:
@grep -n 'either ''version [^3]' $$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): GPL vN, N!=3' 1>&2; exit 1; } || :
+cvs_keywords = \
+ Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State
+
+sc_prohibit_cvs_keyword:
+ @re='\$$($(cvs_keywords))\$$' \
+ msg='do not use CVS keyword expansion' \
+ $(_prohibit_regexp)
+
# Make sure we don't use st_blocks. Use ST_NBLOCKS instead.
# This is a bit of a kludge, since it prevents use of the string
# even in comments, but for now it does the job with no false positives.