On Fri, 14 Aug 2009, Jim Meyering wrote: > > Thanks. Here's a patch to help those who don't want to wait until January > > to reformat. > > Heh ;-)
I'm not sure you're excited enough. :-) > Good addition. Pushed. Thanks. I just realized I don't know how to configure update-copyright permanently for a project. The following patch gives me a way. >From cf17e05d931eb3e7d995650eb01c354533c61886 Mon Sep 17 00:00:00 2001 From: Joel E. Denny <jde...@clemson.edu> Date: Fri, 14 Aug 2009 15:26:20 -0400 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ top/maint.mk | 6 +++++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index eaa5549..10490eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-08-14 Joel E. Denny <jde...@clemson.edu> + 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 <jde...@clemson.edu> + update-copyright: implement forced reformatting * build-aux/update-copyright: Implement and document UPDATE_COPYRIGHT_FORCE. diff --git a/top/maint.mk b/top/maint.mk index a4ce064..5d7c45e 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -776,6 +776,10 @@ indent: # 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-exclude-regexp ?= (^|/)COPYING$$ 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)/$@ -- 1.5.4.3