diff Makefile @ 14077:4f7569e0b4ec

maint: refine the update-copyright rule * Makefile (update-copyright): Also exclude any file that includes the "GENERATED AUTOMATICALLY" comment, being careful not to exclude code that merely generates the comment.
author Jim Meyering <meyering@redhat.com>
date Sat, 01 Jan 2011 20:13:03 +0100
parents 79c76e53668c
children 1a37c270d62d
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@
 # to update all FSF copyright year lists here.
 # We exclude the files listed in srclist.txt (maintained elsewhere)
 # as well as those in tests/unictype (generated).
+# Also exclude any file that includes the "GENERATED AUTOMATICALLY" comment,
+# being careful not to exclude code that merely generates the comment.
 update-copyright:
 	exempt=$$(mktemp);						\
 	grep -v '^#' config/srclist.txt|grep -v '^$$'			\
@@ -68,6 +70,7 @@
 	    done > $$exempt;						\
 	git ls-files tests/unictype >> $$exempt;			\
 	git ls-files | grep -vFf $$exempt				\
+	  | xargs grep -L '^/\*.*GENERATED AUTOMATICALLY'		\
 	  | UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79				\
 	    UPDATE_COPYRIGHT_USE_INTERVALS=1				\
 	      xargs build-aux/update-copyright