From c96118225db74864a7e41749d68bd5c13598aba7 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 5 May 2016 11:18:34 +0000 Subject: genlang, made gDiff.sh intelligent Removed output from identical files Change-Id: Id9619b7cd005aa8087fcccf4e679ee13e14955eb --- l10ntools/source/gDiff.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'l10ntools') diff --git a/l10ntools/source/gDiff.sh b/l10ntools/source/gDiff.sh index f54060284535..767ca0784a27 100755 --- a/l10ntools/source/gDiff.sh +++ b/l10ntools/source/gDiff.sh @@ -10,7 +10,11 @@ diff /tmp/jix1 /tmp/jix2 for i in `find . -name \*.pot` do - echo ">>>>>>>> " $i - diff ../pot/$i $i | sed '/^6c6$/,/^16c16$/d' + CMD=$(diff ../pot/$i $i | sed '/^6c6$/,/^16c16$/d') + if [ "$CMD" != "" ] + then + echo ">>>>>>>> " $i + echo "$CMD" + fi done -- cgit