update all copyrights, not just the modified ones
authoragriffis <agriffis@gentoo.org>
Tue, 17 Feb 2004 21:55:12 +0000 (21:55 -0000)
committeragriffis <agriffis@gentoo.org>
Tue, 17 Feb 2004 21:55:12 +0000 (21:55 -0000)
svn path=/; revision=85

trunk/src/echangelog/ChangeLog
trunk/src/echangelog/echangelog

index 95a2e5090bc3a889ba77cab36e4ab96d7cd96238..8639997a5be65c0e97c4d2c7cf03da452df4b769 100644 (file)
@@ -1,3 +1,6 @@
+17 Feb 2004 Aron Griffis <agriffis@gentoo.org>
+       * Update copyrights on all ebuilds, not just the modified ones
+
 07 Jan 2004 Aron Griffis <agriffis@gentoo.org>
        * Updated Makefile to understand building man-page from pod
        * Removed static man-page in favor of generated man-page from pod
index 7797b47e6bb4767dcf31e81781e9f509e0392222..ca3684613fa9ef24da3aadf4c213bb9caefeff80 100644 (file)
@@ -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 = <E>; }
@@ -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");
 }