[Xfce4-commits] <www:master> Improve error messages for nick.

Nick Schermer noreply at xfce.org
Thu Apr 19 19:06:01 CEST 2012


Updating branch refs/heads/master
         to b662a6062cdda13182bd866999a3363fdbc1d8b0 (commit)
       from 7d9e063e3aab1a7723fef844676ec29edd389a6b (commit)

commit b662a6062cdda13182bd866999a3363fdbc1d8b0
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Apr 19 19:05:04 2012 +0200

    Improve error messages for nick.

 lib/tools/compile.sh |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/lib/tools/compile.sh b/lib/tools/compile.sh
index a1ab481..13e1794 100755
--- a/lib/tools/compile.sh
+++ b/lib/tools/compile.sh
@@ -15,7 +15,7 @@ for f in $(find $pofiles -name "*.po")
 do
   file=$(basename $f)
   lang=${file%.po}
-  
+
   # Merge po file with latest pot file
   res=0
   # TODO: add "--lang $lang" again when earlgrey runs squeeze
@@ -24,15 +24,21 @@ do
     echo "msgmerge failed for $file"
     continue
   fi
-  
+
   # Check the file
   res=0
-  msgfmt -c -o /dev/null $tmpfile &> /dev/null && res=1
+  msgfmt -c -o /dev/null $tmpfile &> $tmpfile.log && res=1
   if test $res -eq 0; then
     echo "$file is not valid"
+    cat $tmpfile.log
+    echo
+    echo
+    rm -f $tmpfile.log
     continue
   fi
 
+  rm $tmpfile.log
+
   # Compile catalog
   path=$localedir/$lang/LC_MESSAGES
   mkdir -p $path


More information about the Xfce4-commits mailing list