* 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.
.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