mail[Wesnoth-commits] r29023 - /trunk/po/SConscript


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

Header


Content

Posted by loonycyborg on August 27, 2008 - 12:03:
Author: loonycyborg
Date: Wed Aug 27 12:03:34 2008
New Revision: 29023

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29023&view=rev
Log:
Fixed scons pot-update failing if (wml)xgettext doesn't produce a file.

Modified:
    trunk/po/SConscript

Modified: trunk/po/SConscript
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/po/SConscript?rev=29023&r1=29022&r2=29023&view=diff
==============================================================================
--- trunk/po/SConscript (original)
+++ trunk/po/SConscript Wed Aug 27 12:03:34 2008
@@ -46,7 +46,7 @@
                 --keyword=vgettext --keyword=_n:1,2 --keyword=sngettext:1,2 
--keyword=vngettext:1,2 \
                 --files-from=%s --copyright-holder='Wesnoth development 
team' --msgid-bugs-address=http://bugs.wesnoth.org/ \
                 --keyword=_ --keyword=N_ --output=$TARGET \
-                ;sed -i s/charset=CHARSET/charset=UTF-8/ $TARGET \
+                ; touch $TARGET; sed -i s/charset=CHARSET/charset=UTF-8/ 
$TARGET \
                 """ % (domain, join("po", domain, "POTFILES.in"))
                 )
         cfgs = []
@@ -58,7 +58,7 @@
             wml_pot = env.Command(
                 join(domain, domain + ".wml.po"),
                 cfgs,
-                "utils/wmlxgettext --directory=. --domain=%s $SOURCES > 
$TARGET" % domain
+                "utils/wmlxgettext --directory=. --domain=%s $SOURCES > 
$TARGET; touch $TARGET" % domain
                 )
 
         new_pot = str(pot) + ".new"




Related Messages


Powered by MHonArc, Updated Wed Aug 27 13:41:15 2008