summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authoragriffis <agriffis@gentoo.org>2004-02-17 21:55:12 +0000
committeragriffis <agriffis@gentoo.org>2004-02-17 21:55:12 +0000
commit149e4827f49bff044015514a6aebcbd78991e324 (patch)
tree7a6a22e91aab0e6803afbeb51ff16cc32dea3302 /trunk/src
parentea63c003f75bda957e777d782cc9d06f0d2a8629 (diff)
downloadgentoolkit-149e4827f49bff044015514a6aebcbd78991e324.tar.gz
update all copyrights, not just the modified ones
svn path=/; revision=85
Diffstat (limited to 'trunk/src')
-rw-r--r--trunk/src/echangelog/ChangeLog3
-rw-r--r--trunk/src/echangelog/echangelog7
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 <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
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 = <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");
}