On Mon, 3 Aug 2009, Simon Josefsson wrote:

> # You may wish to place a target like the following in your top-level
> # makefile in your project:
> #
> #   .PHONY: update-copyright
> #   update-copyright:
> #       if test -d .git; then                                   \
> #         git grep -l -w Copyright                              \
> #           | grep -v -E '(^|/)(COPYING|ChangeLog)'             \
> #           | xargs $(srcdir)/build-aux/$@;                     \
> #       fi
> 
> I'd rather not have to manually add this snippet to 5+ projects, and
> keep it synchronized in case of changes.

I thought the second grep would be specific to the project.  For example, 
Bison won't exclude ChangeLog.  Any files that should be left alone for 
every project could be listed in update-copyright itself.


Reply via email to