# HG changeset patch # User Joel E. Denny # Date 1250277980 14400 # Node ID 5c2855361aa18c046c431f4b249504545de2df72 # Parent 6f88af728ad10dff3b8530eee8e1c436e7c36a32 maint.mk: support update-copyright-env * top/maint.mk (update-copyright-env): Define place-holder. (update-copyright): Expand $(update-copyright-env) before invoking update-copyright. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-08-14 Joel E. Denny + + maint.mk: support update-copyright-env + * top/maint.mk (update-copyright-env): Define place-holder. + (update-copyright): Expand $(update-copyright-env) before + invoking update-copyright. + 2009-08-14 Joel E. Denny update-copyright: implement forced reformatting diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -776,6 +776,10 @@ # define it in cfg.mk and set this variable to its name. update-copyright-local ?= +# If you want to set UPDATE_COPYRIGHT_* environment variables, +# put the assignments in this variable. +update-copyright-env ?= + # 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$$ @@ -783,4 +787,4 @@ update-copyright: $(update-copyright-local) grep -l -w Copyright $$($(VC_LIST_EXCEPT)) \ | grep -v -E '$(update-copyright-exclude-regexp)' \ - | xargs $(build_aux)/$@ + | $(update-copyright-env) xargs $(build_aux)/$@