bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] maint.mk: make update-copyright exclusion list more configurable


From: Jim Meyering
Subject: [PATCH] maint.mk: make update-copyright exclusion list more configurable
Date: Tue, 04 Aug 2009 11:18:01 +0200

FYI, one more:

>From 8eda5d5ddd593f97e1ca524ef4c87d178f5c5d92 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 4 Aug 2009 11:17:08 +0200
Subject: [PATCH] maint.mk: make update-copyright exclusion list more 
configurable

* top/maint.mk (update-copyright): Default to excluding COPYING,
but allow an override, in case someone does want to update that file.
---
 ChangeLog    |    4 ++++
 top/maint.mk |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 05dd012..8797352 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-08-04  Jim Meyering  <address@hidden>

+       maint.mk: make update-copyright exclusion list more configurable
+       * top/maint.mk (update-copyright): Default to excluding COPYING,
+       but allow an override, in case someone does want to update that file.
+
        maint.mk: don't update copyright date in COPYING
        * top/maint.mk (update-copyright): Exclude COPYING.

diff --git a/top/maint.mk b/top/maint.mk
index 5d89238..2df7c04 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -774,8 +774,9 @@ indent:

 # Run this rule once per year (usually early in January)
 # to update all FSF copyright year lists in your project.
+update-copyright-exclude-regexp ?= (^|/)COPYING$$
 .PHONY: update-copyright
 update-copyright:
        grep -l -w Copyright $$($(VC_LIST_EXCEPT))              \
-         | grep -v -E '(^|/)COPYING$$'                         \
+         | grep -v -E '$(update-copyright-exclude-regexp)'     \
          | xargs $(build_aux)/$@
--
1.6.4.70.g9c084




reply via email to

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