From: Joel E. Denny Date: Wed, 29 Jul 2009 09:05:54 +0000 (+0200) Subject: maint: improve update-copyright rule X-Git-Tag: v7.5~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bc5395e925ab555004960a33c2b772e0bd011ae;p=platform%2Fupstream%2Fcoreutils.git maint: improve update-copyright rule * 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. --- diff --git a/Makefile.am b/Makefile.am index 87e4545..a243b7f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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