diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-09 09:10:03 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-09 09:10:03 (GMT) |
commit | 88b134670019aa8a0290a30fc0d6ed65a8fd88ec (patch) | |
tree | 3ddb96091e9379880bff055e8e8004e17671a052 | |
parent | a1d23719b2c39530045c92833585433cf2722e10 (diff) | |
download | swift-contrib-88b134670019aa8a0290a30fc0d6ed65a8fd88ec.zip swift-contrib-88b134670019aa8a0290a30fc0d6ed65a8fd88ec.tar.bz2 |
Fixed NSIS translation script dependency.
-rw-r--r-- | BuildTools/SCons/Tools/nsis.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/nsis.py b/BuildTools/SCons/Tools/nsis.py index 567876d..f5b2905 100644 --- a/BuildTools/SCons/Tools/nsis.py +++ b/BuildTools/SCons/Tools/nsis.py @@ -1,6 +1,8 @@ import re, os import SCons.Util nsisFiles_re = re.compile(r'^\s*File "([^"]*)"', re.M) +# FIXME +nsisIncludes_re = re.compile(r'^\s*!include (translations-\S*)', re.M) """ TODO: @@ -18,7 +20,7 @@ def generate(env) : return os.path.join(*path.split("\\")) def scanNsisContent(node, env, path, arg): contents = node.get_contents() - includes = nsisFiles_re.findall(contents) + includes = nsisFiles_re.findall(contents) + nsisIncludes_re.findall(contents) includes = [ winToLocalReformat(include) for include in includes ] return filter(lambda x: x.rfind('*')==-1, includes) nsisscanner = env.Scanner(name = 'nsisfile', |