From: vapier Date: Wed, 7 Jan 2009 05:37:15 +0000 (-0000) Subject: Tighten up diff output to show KEYWORDS changes X-Git-Tag: gentoolkit-0.2.4.3^2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31dabd80cec7c29069b372b90e559aba1b51829a;p=gentoolkit.git Tighten up diff output to show KEYWORDS changes svn path=/; revision=534 --- 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 * 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++; }