* Copyright dates updated
@ 2005-03-03 12:35 Alan Modra
2005-03-03 22:10 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Alan Modra @ 2005-03-03 12:35 UTC (permalink / raw)
To: binutils
Since we are soon to be making a release, I dug through cvs logs to
update copyright dates. Previous attempts to get the dates right have
rummaged through ChangeLog files, which fails on incorrectly spelled
files or entries such as
* Many files: Changes to avoid gcc warnings
So there were rather more updates than I expected. I used this script
to pull the info out of cvs:
for z in `find . -name CVS -prune -o -type f \! -name \*~ \! -name .\#\* \! -name ChangeLog\* -print`
do
echo $z; cvs log $z | sed -n -e '/^revision [^\.]*\.[^\.]*$/ {
n
s,date: \([^/]*\).*,\1,
h
n
/^branches:/ n
/copyright/ b
/Initial revision/ b
/^[Mm]erge / b
g
p
}' | uniq > /tmp/z
Then I ran the following (or variations thereof to cope with generated
files, BSD copyright etc.) to find me the files that needed editing.
while read x; do if test ${x%%/*} = .; then f=$x; else grep -q $x $f || echo $f; fi; done < /tmp/z | uniq | xargs grep -l Copyright
The actual updates were done by hand, since I didn't trust a fully
automated edit.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Copyright dates updated
2005-03-03 12:35 Copyright dates updated Alan Modra
@ 2005-03-03 22:10 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2005-03-03 22:10 UTC (permalink / raw)
To: binutils
On Thu, Mar 03, 2005 at 11:05:03PM +1030, Alan Modra wrote:
> So there were rather more updates than I expected. I used this script
> to pull the info out of cvs:
As someone pointer out to me privately, I somehow managed to trim the
last "done" from the script when posting. Since the idea of posting was
was to make it easy for other people to do similar tricks, here it is
again.
for z in `find . -name CVS -prune -o -type f \! -name \*~ \! -name .\#\* \! -name ChangeLog\* -print`
do
echo $z; cvs log $z | sed -n -e '/^revision [^\.]*\.[^\.]*$/ {
n
s,date: \([^/]*\).*,\1,
h
n
/^branches:/ n
/copyright/ b
/Initial revision/ b
/^[Mm]erge / b
g
p
}' | uniq
done > /tmp/z
> Then I ran the following (or variations thereof to cope with generated
> files, BSD copyright etc.) to find me the files that needed editing.
>
> while read x; do if test ${x%%/*} = .; then f=$x; else grep -q $x $f || echo $f; fi; done < /tmp/z | uniq | xargs grep -l Copyright
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-03 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 12:35 Copyright dates updated Alan Modra
2005-03-03 22:10 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).