From 149e4827f49bff044015514a6aebcbd78991e324 Mon Sep 17 00:00:00 2001 From: agriffis Date: Tue, 17 Feb 2004 21:55:12 +0000 Subject: [PATCH] update all copyrights, not just the modified ones svn path=/; revision=85 --- trunk/src/echangelog/ChangeLog | 3 +++ trunk/src/echangelog/echangelog | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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"); } -- 2.26.2