From: agriffis Date: Tue, 17 Feb 2004 21:55:12 +0000 (-0000) Subject: update all copyrights, not just the modified ones X-Git-Tag: gentoolkit-0.2.4.3~417 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=149e4827f49bff044015514a6aebcbd78991e324;p=gentoolkit.git update all copyrights, not just the modified ones svn path=/; revision=85 --- diff --git a/trunk/src/echangelog/ChangeLog b/trunk/src/echangelog/ChangeLog index 95a2e50..8639997 100644 --- a/trunk/src/echangelog/ChangeLog +++ b/trunk/src/echangelog/ChangeLog @@ -1,3 +1,6 @@ +17 Feb 2004 Aron Griffis + * Update copyrights on all ebuilds, not just the modified ones + 07 Jan 2004 Aron Griffis * Updated Makefile to understand building man-page from pod * Removed static man-page in favor of generated man-page from pod diff --git a/trunk/src/echangelog/echangelog b/trunk/src/echangelog/echangelog index 7797b47..ca36846 100644 --- a/trunk/src/echangelog/echangelog +++ b/trunk/src/echangelog/echangelog @@ -184,7 +184,10 @@ print O $text or die "Can't write ChangeLog.new: $!\n"; close O or die "Can't close ChangeLog.new: $!\n"; # Update affected ebuild copyright dates -for my $e (grep /\.ebuild$/, @files) { +#for my $e (grep /\.ebuild$/, @files) { +# Update all ebuild copyright dates -- according to Mr_Bones_ this is +# the right thing to do +for my $e (<*.ebuild>) { my ($etext, $netext); open E, "<$e" or warn("Can't read $e to update copyright year\n"), next; { local $/ = undef; $etext = ; } @@ -200,7 +203,7 @@ for my $e (grep /\.ebuild$/, @files) { close E or warn("Can't write $e.new\n"), next; # Move things around and show the diff - system "diff -u $e $e.new"; + system "diff -U 0 $e $e.new"; rename "$e.new", $e or warn("Can't rename $e.new: $!\n"); }