[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n/xx/internal
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2005-08-31 21:56:37
Message-ID: 1125525397.088384.17214.nullmailer () svn ! kde ! org
[Download RAW message or body]

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
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic