mail[Wesnoth-commits] r25401 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on March 31, 2008 - 20:51:
Author: loonycyborg
Date: Mon Mar 31 20:51:05 2008
New Revision: 25401

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25401&view=rev
Log:
scons recipe: implemented separate "pot-update" and "update-po" options.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25401&r1=25400&r2=25401&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Mar 31 20:51:05 2008
@@ -911,7 +911,7 @@
 textdomains = filter(os.path.isdir, textdomains)
 lingua_re = re.compile(r"po/.*/(.*)\.po")
 
-if "update-po" in COMMAND_LINE_TARGETS:
+if "pot-update" in COMMAND_LINE_TARGETS:
     for domain in textdomains:
         name = os.path.basename(domain)
         sources = File(os.path.join(domain, 
"POTFILES.in")).get_contents().split("\n")
@@ -955,7 +955,11 @@
             env.InstallAs(pot, wml_pot)
         else:
             env.InstallAs(pot, source_pot)
-
+    env.Alias("pot-update", "po")
+
+if "update-po" in COMMAND_LINE_TARGETS:
+    for domain in textdomains:
+        name = os.path.basename(domain)
         linguas = open(os.path.join(domain, "LINGUAS")).read().split(" ")
         for lingua in linguas:
             if env["lingua"] == "all" or lingua == env["lingua"]:




Related Messages


Powered by MHonArc, Updated Mon Mar 31 21:02:05 2008