changeset 11776:9deb84e458cb

maint.mk: add a copyright-updating rule * top/maint.mk (update-copyright): New rule. Derived from coreutils/Makefile.am.
author Jim Meyering <meyering@redhat.com>
date Tue, 04 Aug 2009 09:53:04 +0200
parents 43cf918c545e
children a595c1fb8e8b
files ChangeLog top/maint.mk
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-08-04  Jim Meyering  <meyering@redhat.com>
 
+	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.
--- 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)/$@