bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: enforce existing prohibition: no cvs $keywords$


From: Jim Meyering
Subject: [PATCH] maint: enforce existing prohibition: no cvs $keywords$
Date: Sat, 13 Dec 2008 18:03:18 +0100

For completeness (it doesn't find any violations):

>From 29b48f4a35f92e48f3bae72b3604cb8dde7267ec Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 13 Dec 2008 14:26:25 +0100
Subject: [PATCH] maint: enforce existing prohibition: no cvs $keywords$

* maint.mk (sc_prohibit_cvs_keyword): New rule.
---
 maint.mk |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/maint.mk b/maint.mk
index cb3c6a5..b4969f2 100644
--- a/maint.mk
+++ b/maint.mk
@@ -456,6 +456,14 @@ sc_no_exec_perl_coreutils:
              exit 1; } || :;                                           \
        fi

+cvs_keywords = \
+  Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State
+
+sc_prohibit_cvs_keyword:
+       @grep -nE '\$$($(cvs_keywords))\$$' $$($(VC_LIST_EXCEPT)) &&    \
+         { echo '$(ME): do not use CVS keyword expansion'              \
+               1>&2; exit 1; } || :
+
 # 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.
--
1.6.1.rc2.312.g2e96




reply via email to

[Prev in Thread] Current Thread [Next in Thread]