From 1bc5395e925ab555004960a33c2b772e0bd011ae Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Wed, 29 Jul 2009 11:05:54 +0200 Subject: [PATCH] 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. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.7.4