From 31dabd80cec7c29069b372b90e559aba1b51829a Mon Sep 17 00:00:00 2001 From: vapier Date: Wed, 7 Jan 2009 05:37:15 +0000 Subject: [PATCH] Tighten up diff output to show KEYWORDS changes svn path=/; revision=534 --- trunk/src/ekeyword/ChangeLog | 1 + trunk/src/ekeyword/ekeyword | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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++; } -- 2.26.2