]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 87e45451e872e3f4b3d16ca4fe8617159793e611..a243b7f241ffb016ac3ee9e0c511d25ce9fb5aea 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