From 9c34d44ff2f210d5347b430bb505f658098f539e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 4 Aug 2009 09:53:04 +0200 Subject: [PATCH] maint.mk: add a copyright-updating rule * top/maint.mk (update-copyright): New rule. Derived from coreutils/Makefile.am. --- ChangeLog | 4 ++++ top/maint.mk | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 435a4a795..1eacff5df 100644 --- 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 index c3e2f4799..2db44ba70 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -771,3 +771,10 @@ INDENT_SOURCES ?= $(C_SOURCES) .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)/$@ -- 2.11.0