# HG changeset patch # User Jim Meyering # Date 1249372384 -7200 # Node ID 9deb84e458cbe74fec58d3a5ca7836f18709a76b # Parent 43cf918c545e5b9bdf1a67c63d9ea83d31fb37f0 maint.mk: add a copyright-updating rule * top/maint.mk (update-copyright): New rule. Derived from coreutils/Makefile.am. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-08-04 Jim Meyering + maint.mk: add a copyright-updating rule + * top/maint.mk (update-copyright): New rule. + Derived from coreutils/Makefile.am. + update-copyright: rename some variables * build-aux/update-copyright: Rename a few variables for clarity. Tweak syntax. List Joel E. Denny as coauthor. diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -771,3 +771,10 @@ .PHONY: indent indent: indent $(INDENT_SOURCES) + +# Run this rule once per year (usually early in January) +# to update all FSF copyright year lists in your project. +.PHONY: update-copyright +update-copyright: + grep -l -w Copyright $$($(VC_LIST_EXCEPT)) \ + | xargs $(build_aux)/$@