[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Copyright notices - update everything to 2006?

From: Michael W Thelen <mike_at_pietdepsi.com>
Date: 2006-01-10 23:58:25 CET

Branko Čibej wrote:
> Well, changing the copyright year in a file that doesn't contain any
> "real" changes is, strictly speaking, a lie. The "noise in the patch"
> consists of one changed line changed file per year... and it really
> shouldn't be that hard to write a hook that checks the copyright date.
>
> Not that I have time to write such a hook, of course... :(

A little while back, I wrote a hook script to check some file content,
including requiring that certain files have a copyright header
containing the current year. Here's the script.

http://svn.pietdepsi.com/repos/projects/svn-tools/hooks/pre-commit-check-content.pl

I wouldn't say it's polished, but it works. It currently checks .java,
.c, .cpp, and .h files under "/engineering" in the repository, but could
be easily modified to be more generic.

-- 
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes.       -- Douglas Adams
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 11 00:02:18 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.