maint.mk: add a copyright-updating rule
authorJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 07:53:04 +0000 (09:53 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 07:56:15 +0000 (09:56 +0200)
* top/maint.mk (update-copyright): New rule.
Derived from coreutils/Makefile.am.

ChangeLog
top/maint.mk

index 435a4a7..1eacff5 100644 (file)
--- 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.
index c3e2f47..2db44ba 100644 (file)
@@ -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)/$@