maint.mk: simplify update-copyright rule
authorEric Blake <ebb9@byu.net>
Fri, 14 Aug 2009 15:40:53 +0000 (09:40 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 15 Aug 2009 01:22:15 +0000 (19:22 -0600)
* top/maint.mk (update-copyright-local): Delete, and document how
to do it in cfg.mk instead.
(update-copyright-exclude-regexp): Delete, and document how to do
it in .x-update-copyright instead.
(update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
exclude ChangeLog.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
top/maint.mk

index 7c47443..ebcee41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-08-14  Eric Blake  <ebb9@byu.net>
+
+       maint.mk: simplify update-copyright rule
+       * top/maint.mk (update-copyright-local): Delete, and document how
+       to do it in cfg.mk instead.
+       (update-copyright-exclude-regexp): Delete, and document how to do
+       it in .x-update-copyright instead.
+       (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
+       exclude ChangeLog.
+
 2009-08-14  Bruno Haible  <bruno@clisp.org>
 
        * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
index 5d7c45e..3f9c8ff 100644 (file)
@@ -772,19 +772,19 @@ INDENT_SOURCES ?= $(C_SOURCES)
 indent:
        indent $(INDENT_SOURCES)
 
-# If you have an additional project-specific rule,
-# 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$$
+# If you have an additional project-specific rule,
+# add it in cfg.mk along with a line 'update-copyright: prereq'.
+# By default, exclude all variants of COPYING; you can also
+# add exemptions (such as ChangeLog..* for rotated change logs)
+# in the file .x-update-copyright.
 .PHONY: update-copyright
-update-copyright: $(update-copyright-local)
+update-copyright:
        grep -l -w Copyright $$($(VC_LIST_EXCEPT))              \
-         | grep -v -E '$(update-copyright-exclude-regexp)'     \
+               $(srcdir)/ChangeLog | grep -v COPYING           \
          | $(update-copyright-env) xargs $(build_aux)/$@