maint.mk: make update-copyright exclusion list more configurable
authorJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 09:17:08 +0000 (11:17 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 09:17:08 +0000 (11:17 +0200)
* top/maint.mk (update-copyright): Default to excluding COPYING,
but allow an override, in case someone does want to update that file.

ChangeLog
top/maint.mk

index 05dd012c66079c445e6d81d021304d2652068259..879735294766e7f2159f6ce474bf01895852a517 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-08-04  Jim Meyering  <meyering@redhat.com>
 
+       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.
 
index 5d892381e7f5b9c9aa6eacb6f4546986f484526b..2df7c046732bda4e7730b48e14caa4e4fb97ded3 100644 (file)
@@ -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)/$@