diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-16 22:09:03 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-11-16 22:09:03 +0400 |
commit | 9c3586d9f91bd796c5347194a24cdc4b1b60c05c (patch) | |
tree | e31d836aeb93f417571b48c1cfa1700916e9d5d3 /SConstruct | |
parent | 09ecfc318cb808a578d5211e44051d28e1de0706 (diff) |
Remove check for whether po folder exist
It was just a temp thing to not break stuff
before final git migration.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/SConstruct b/SConstruct index 8f4acde4a04..e15616e198d 100644 --- a/SConstruct +++ b/SConstruct @@ -943,7 +943,6 @@ if env['OURPLATFORM']!='darwin': return (member in path.split(os.sep)) po_dir = os.path.join("release", "datafiles", "locale", "po") - need_compile_mo = os.path.exists(po_dir) for intpath in internationalpaths: for dp, dn, df in os.walk(intpath): @@ -953,10 +952,7 @@ if env['OURPLATFORM']!='darwin': dn.remove('_svn') # we only care about release/datafiles/fonts, release/datafiles/locales - if check_path(dp, "locale"): - if need_compile_mo and check_path(dp, "po"): - continue - elif check_path(dp, "fonts"): + if check_path(dp, "fonts"): pass else: continue @@ -970,18 +966,17 @@ if env['OURPLATFORM']!='darwin': env.Execute(Mkdir(dir)) scriptinstall.append(env.Install(dir=dir,source=source)) - if need_compile_mo: - for f in os.listdir(po_dir): - if not f.endswith(".po"): - continue + for f in os.listdir(po_dir): + if not f.endswith(".po"): + continue - locale_name = os.path.splitext(f)[0] + locale_name = os.path.splitext(f)[0] - mo_file = os.path.join(B.root_build_dir, "locale", locale_name + ".mo") + mo_file = os.path.join(B.root_build_dir, "locale", locale_name + ".mo") - dir = os.path.join(env['BF_INSTALLDIR'], VERSION) - dir = os.path.join(dir, "datafiles", "locale", locale_name, "LC_MESSAGES") - scriptinstall.append(env.InstallAs(os.path.join(dir, "blender.mo"), mo_file)) + dir = os.path.join(env['BF_INSTALLDIR'], VERSION) + dir = os.path.join(dir, "datafiles", "locale", locale_name, "LC_MESSAGES") + scriptinstall.append(env.InstallAs(os.path.join(dir, "blender.mo"), mo_file)) #-- icons if env['OURPLATFORM']=='linux': |