[kupfer] wscript: Run msgfmt --check in intlupdate



commit 4e0081d1858bfe62f9ce148917405195d880311c
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Sep 8 16:24:33 2009 +0200

    wscript: Run msgfmt --check in intlupdate
    
    We want to run this check immediately so that we catch format string
    errors and similar.

 wscript |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/wscript b/wscript
index 7bf55b0..c09a4ba 100644
--- a/wscript
+++ b/wscript
@@ -175,8 +175,11 @@ def intlupdate(util):
 		if not os.path.exists(lang_file):
 			print "Creating %s" % lang_file
 			os.popen("xgettext -D .. -f POTFILES.in --output=%s -F" % lang_file)
-		print "Processing", lang
-		os.popen("intltool-update %s" % lang)
+			os.popen("intltool-update %s" % lang)
+		else:
+			print "Processing", lang
+			os.popen("intltool-update %s" % lang)
+			os.popen("msgfmt --check %s" % lang_file)
 
 def shutdown():
 	pass



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]