maint: refine the update-copyright rule
authorJim Meyering <meyering@redhat.com>
Sat, 1 Jan 2011 19:13:03 +0000 (20:13 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 1 Jan 2011 19:13:03 +0000 (20:13 +0100)
* Makefile (update-copyright): Also exclude any file that includes
the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
code that merely generates the comment.

ChangeLog
Makefile

index 7acf4b6..dc8bd40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-01-01  Jim Meyering  <meyering@redhat.com>
+
+       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.
+
 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
 
        New module 'u8-grapheme-len'.
index 8bccbe8..745c603 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@ MODULES.html: MODULES.html.sh
 # 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 @@ update-copyright:
            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