bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: update-copyright make rule?


From: Joel E. Denny
Subject: Re: update-copyright make rule?
Date: Mon, 3 Aug 2009 22:11:32 -0400 (EDT)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

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

[Prev in Thread] Current Thread [Next in Thread]