[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48740] branches/soc-2011-tomato: svn merge ^/trunk/blender -r48729:48739
Campbell Barton
ideasman42 at gmail.com
Sun Jul 8 20:21:51 CEST 2012
Revision: 48740
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48740
Author: campbellbarton
Date: 2012-07-08 18:21:51 +0000 (Sun, 08 Jul 2012)
Log Message:
-----------
svn merge ^/trunk/blender -r48729:48739
Revision Links:
--------------
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48729
Modified Paths:
--------------
branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/check_po.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/clean_po.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/import_po_from_branches.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/merge_po.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/rtl_preprocess.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_branches.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_mo.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_msg.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_po.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_pot.py
branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_trunk.py
branches/soc-2011-tomato/source/blender/blenkernel/BKE_idprop.h
branches/soc-2011-tomato/source/blender/blenkernel/intern/idprop.c
branches/soc-2011-tomato/source/blender/blenlib/intern/math_color_inline.c
Property Changed:
----------------
branches/soc-2011-tomato/
branches/soc-2011-tomato/source/blender/editors/interface/interface.c
branches/soc-2011-tomato/source/blender/editors/space_outliner/
Property changes on: branches/soc-2011-tomato
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/vgroup_modifiers:38694-39989
/trunk/blender:36831-48729
+ /branches/ge_harmony:42255,42279-42282,42286,42302,42338,42349,42616,42620,42698-42699,42739,42753,42773-42774,42832,44568,44597-44598,44793-44794
/branches/soc-2011-cucumber:37517,38166-38167,38177,38179-38180,38187,38242,38384,38387,38403-38404,38407,38968,38970,38973,39045,40845,42997-42998,43439
/branches/vgroup_modifiers:38694-39989
/trunk/blender:36831-48739
Modified: branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c
===================================================================
--- branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/intern/guardedalloc/intern/mallocn.c 2012-07-08 18:21:51 UTC (rev 48740)
@@ -328,7 +328,7 @@
}
mem_unlock_thread();
print_error("Malloc returns null: len=" SIZET_FORMAT " in %s, total %u\n",
- SIZET_ARG(len), str, mem_in_use);
+ SIZET_ARG(len), str, (unsigned int) mem_in_use);
return NULL;
}
@@ -354,7 +354,7 @@
}
mem_unlock_thread();
print_error("Calloc returns null: len=" SIZET_FORMAT " in %s, total %u\n",
- SIZET_ARG(len), str, mem_in_use);
+ SIZET_ARG(len), str, (unsigned int) mem_in_use);
return NULL;
}
@@ -387,7 +387,7 @@
mem_unlock_thread();
print_error("Mapalloc returns null, fallback to regular malloc: "
"len=" SIZET_FORMAT " in %s, total %u\n",
- SIZET_ARG(len), str, mmap_in_use);
+ SIZET_ARG(len), str, (unsigned int) mmap_in_use);
return MEM_callocN(len, str);
}
}
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/check_po.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/check_po.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/check_po.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -26,8 +26,11 @@
import sys
from codecs import open
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
TRUNK_PO_DIR = settings.TRUNK_PO_DIR
BRANCHES_DIR = settings.BRANCHES_DIR
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/clean_po.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/clean_po.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/clean_po.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -25,11 +25,14 @@
import os
import sys
import collections
-from codecs import open
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
+
TRUNK_PO_DIR = settings.TRUNK_PO_DIR
BRANCHES_DIR = settings.BRANCHES_DIR
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/import_po_from_branches.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/import_po_from_branches.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/import_po_from_branches.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -28,9 +28,12 @@
import subprocess
from codecs import open
-import settings
-import utils
-import rtl_preprocess
+try:
+ import settings
+ import utils
+ import rtl_preprocess
+except:
+ from . import (settings, utils, rtl_preprocess)
TRUNK_PO_DIR = settings.TRUNK_PO_DIR
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/merge_po.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/merge_po.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/merge_po.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -29,9 +29,11 @@
# never merged from sources.
import sys
-from codecs import open
-import utils
+try:
+ import utils
+except:
+ from . import utils
def main():
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/rtl_preprocess.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/rtl_preprocess.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/rtl_preprocess.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -35,9 +35,13 @@
import sys
import ctypes
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
+
FRIBIDI_LIB = settings.FRIBIDI_LIB
###### Import C library and recreate "defines". #####
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_branches.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_branches.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_branches.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -30,8 +30,12 @@
import sys
import tempfile
-import settings
+try:
+ import settings
+except:
+ from . import settings
+
PY3 = settings.PYTHON3_EXEC
def main():
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_mo.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_mo.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_mo.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -26,8 +26,11 @@
import os
import sys
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
GETTEXT_MSGFMT_EXECUTABLE = settings.GETTEXT_MSGFMT_EXECUTABLE
@@ -39,17 +42,19 @@
DOMAIN = settings.DOMAIN
-def process_po(po, lang):
- mo_dir = os.path.join(TRUNK_MO_DIR, lang, "LC_MESSAGES")
+def process_po(po, lang, mo=None):
+ if not mo:
+ mo_dir = os.path.join(TRUNK_MO_DIR, lang, "LC_MESSAGES")
+ # Create dirs if not existing!
+ if not os.path.isdir(mo_dir):
+ os.makedirs(mo_dir, exist_ok = True)
- # Create dirs if not existing!
- os.makedirs(mo_dir, exist_ok = True)
# show stats
cmd = (GETTEXT_MSGFMT_EXECUTABLE,
"--statistics",
po,
"-o",
- os.path.join(mo_dir, ".".join((DOMAIN, "mo"))),
+ mo or os.path.join(mo_dir, ".".join((DOMAIN, "mo"))),
)
print("Running ", " ".join(cmd))
@@ -64,11 +69,20 @@
"under {}.".format(TRUNK_MO_DIR))
parser.add_argument('langs', metavar='ISO_code', nargs='*',
help="Restrict processed languages to those.")
+ parser.add_argument('po', help="Only process that po file (implies --mo).",
+ nargs='?')
+ parser.add_argument('mo', help="Mo file to generate (implies --po).",
+ nargs='?')
args = parser.parse_args()
ret = 0
- if args.langs:
+ if args.po and args.mo:
+ if os.path.exists(args.po):
+ t = process_po(args.po, None, args.mo)
+ if t:
+ ret = t
+ elif args.langs:
for lang in args.langs:
po = os.path.join(TRUNK_PO_DIR, ".".join((lang, "po")))
if os.path.exists(po):
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_msg.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_msg.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_msg.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -26,7 +26,10 @@
import sys
import subprocess
-import settings
+try:
+ import settings
+except:
+ from . import settings
BLENDER_ARGS = [
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_po.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_po.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_po.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -28,9 +28,13 @@
from codecs import open
import shutil
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
+
GETTEXT_MSGMERGE_EXECUTABLE = settings.GETTEXT_MSGMERGE_EXECUTABLE
BRANCHES_DIR = settings.BRANCHES_DIR
TRUNK_PO_DIR = settings.TRUNK_PO_DIR
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_pot.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_pot.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_pot.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -31,8 +31,11 @@
import time
import pickle
-import settings
-import utils
+try:
+ import settings
+ import utils
+except:
+ from . import (settings, utils)
COMMENT_PREFIX = settings.COMMENT_PREFIX
Modified: branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_trunk.py
===================================================================
--- branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_trunk.py 2012-07-08 18:20:29 UTC (rev 48739)
+++ branches/soc-2011-tomato/release/scripts/modules/bl_i18n_utils/update_trunk.py 2012-07-08 18:21:51 UTC (rev 48740)
@@ -33,7 +33,10 @@
import sys
import shutil
-import settings
+try:
+ import settings
+except:
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list