bzr-update-copyright
John Arbash Meinel
john at arbash-meinel.com
Thu Jan 7 20:31:06 GMT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I just hacked together a new plugin, which I thought people might be
interested in. It is currently available from:
bzr branch lp:~jameinel/+junk/bzr-update-copyright update_copyright
The basic idea is that it will look in the bzr data to determine when
the file was modified and then update a Copyright line.
I tried to make it so that it would preserve the existing copyright
information and line endings as much as possible. It currently only
supports X,Y,Z style numbering, though it wouldn't be hard to support
X-Y,Z,A-B style.
If it updates a file, it includes the current year (since this is
modifying the file). However, it is smart enough to notice if the
copyright info is already correct.
Running this over bzr.dev shows 609 files updated. I'm not 100% sure if
we want to use this or not. But I was getting annoyed manually update
the lines when I came across them, when I know that we already have that
data available.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktGRIoACgkQJdeBCYSNAAMwOACcCLIZ7AHo8VlB4M2swiSR6/KA
PDMAn2eXgTFxKqZ9aCBp5GzbieJ0Hb+i
=xNBO
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list