aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@gentoo.org>2009-01-07 05:37:15 +0000
committervapier <vapier@gentoo.org>2009-01-07 05:37:15 +0000
commit31dabd80cec7c29069b372b90e559aba1b51829a (patch)
tree72adee52da4c1b6d2c3d4197eb4e4bea0edb43e2
parentError out on invalid arguments #156827 (diff)
downloadgentoolkit-31dabd80cec7c29069b372b90e559aba1b51829a.tar.gz
gentoolkit-31dabd80cec7c29069b372b90e559aba1b51829a.tar.bz2
gentoolkit-31dabd80cec7c29069b372b90e559aba1b51829a.zip
Tighten up diff output to show KEYWORDS changes
svn path=/; revision=534
-rw-r--r--trunk/src/ekeyword/ChangeLog1
-rwxr-xr-xtrunk/src/ekeyword/ekeyword2
2 files changed, 2 insertions, 1 deletions
diff --git a/trunk/src/ekeyword/ChangeLog b/trunk/src/ekeyword/ChangeLog
index 91a066c..c3f142a 100644
--- a/trunk/src/ekeyword/ChangeLog
+++ b/trunk/src/ekeyword/ChangeLog
@@ -2,6 +2,7 @@
* Support intended KEYWORDS
* Convert every instance of KEYWORDS in the file
* Error out on invalid arguments #156827
+ * Tighten up diff output to show KEYWORDS changes
27 Oct 2005 Aron Griffis <agriffis@gentoo.org>
* Fix handling of comments
diff --git a/trunk/src/ekeyword/ekeyword b/trunk/src/ekeyword/ekeyword
index 9db2abe..306a761 100755
--- a/trunk/src/ekeyword/ekeyword
+++ b/trunk/src/ekeyword/ekeyword
@@ -108,7 +108,7 @@ for my $f (@ARGV) {
close O;
select STDOUT;
- system "diff $f $f.new | grep -v '^[0-1]'";
+ system "diff -U 0 $f $f.new | sed -n '/KEYWORDS=/s:^: :p'";
rename "$f.new", "$f" or die "Can't rename: $!\n";
$files++;
}