mail[Wesnoth-commits] r29050 - /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 28, 2008 - 11:47:
Author: loonycyborg
Date: Thu Aug 28 11:47:37 2008
New Revision: 29050

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29050&view=rev
Log:
Ensure that xgettext creates a file using --force-po option instead of touch.

Modified:
    trunk/po/SConscript

Modified: trunk/po/SConscript
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/po/SConscript?rev=29050&r1=29049&r2=29050&view=diff
==============================================================================
--- trunk/po/SConscript (original)
+++ trunk/po/SConscript Thu Aug 28 11:47:37 2008
@@ -41,12 +41,12 @@
             source_pot = env.Command(
                 join(domain, domain + ".cpp.po"),
                 sources,
-                """xgettext --default-domain=%s --directory=. 
--add-comments=TRANSLATORS: \
+                """xgettext --force-po --default-domain=%s --directory=. 
--add-comments=TRANSLATORS: \
                 --from-code=UTF-8 --sort-by-file --keyword=sgettext \
                 --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 \
-                ; touch $TARGET; sed -i s/charset=CHARSET/charset=UTF-8/ 
$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; touch $TARGET" % domain
+                "utils/wmlxgettext --directory=. --domain=%s $SOURCES > 
$TARGET" % domain
                 )
 
         new_pot = str(pot) + ".new"




Related Messages


Powered by MHonArc, Updated Thu Aug 28 13:02:16 2008