maint: improve update-copyright rule
authorJoel E. Denny <jdenny@clemson.edu>
Wed, 29 Jul 2009 09:05:54 +0000 (11:05 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 29 Jul 2009 09:05:54 +0000 (11:05 +0200)
* Makefile.am (update-copyright): Relax the selection rule
to match any file containing the word "Copyright".
Correct the exclusion rule so that it also excludes ChangeLog
and COPYING files that are not in the top level directory.

Makefile.am

index 87e4545..a243b7f 100644 (file)
@@ -148,7 +148,7 @@ check-ls-dircolors:
 .PHONY: update-copyright
 update-copyright:
        if test -d .git; then                                   \
-         git grep -l -E '2[0-9]{3} +Free'                      \
-           | grep -v -E '^(COPYING|ChangeLog)'                 \
+         git grep -l -w Copyright                              \
+           | grep -v -E '(^|/)(COPYING|ChangeLog)'             \
            | xargs $(srcdir)/build-aux/$@;                     \
        fi