# HG changeset patch # User Jim Meyering # Date 1249377428 -7200 # Node ID c1794ef712cb20963ad3407835ab25c889ac5102 # Parent a595c1fb8e8bdf23c11d96d0a83c15d60ce1c070 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-08-04 Jim Meyering + 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 --- a/top/maint.mk +++ b/top/maint.mk @@ -774,8 +774,9 @@ # 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)/$@