From 88b134670019aa8a0290a30fc0d6ed65a8fd88ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 9 Apr 2011 11:10:03 +0200 Subject: Fixed NSIS translation script dependency. 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', -- cgit v0.10.2-6-g49f6