From kde-commits Wed Aug 31 21:56:37 2005 From: Nicolas Goutte Date: Wed, 31 Aug 2005 21:56:37 +0000 To: kde-commits Subject: l10n/xx/internal Message-Id: <1125525397.088384.17214.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112552542320079 SVN commit 455579 by goutte: Verify that there is a difference in the newly generated "translation". M +6 -2 update_xx.sh --- trunk/l10n/xx/internal/update_xx.sh #455578:455579 @@ -1,3 +1,5 @@ +#! /usr/bin/env bash + if cd templates; then list=`find messages -name "*.pot"` cd .. @@ -18,11 +20,13 @@ fi msgmerge -o new.po new.po templates/$i ./scripts/msgsplit new.po - if test -f $dest; then + if test ! -f $dest; then mv new.po $dest + svn add $dest + elif diff -q -I^\"PO-Revision-Date: new.po $dest > /dev/null; then + rm -f new.po else mv new.po $dest - svn add $dest fi done