SCons recipe: improved regex used to parse config.h.dummy...

...so it works on windows.
This commit is contained in:
Sergey Popov 2008-05-17 16:31:07 +00:00
parent 0a09602dea
commit 14f75b3522

View file

@ -536,7 +536,7 @@ env.Precious(uninstall)
#
# Making a distribution tarball.
#
config_h_re = re.compile(r"^#define\s*(\S*)\s*\"(\S*)\"$", re.MULTILINE)
config_h_re = re.compile(r"^.*#define\s*(\S*)\s*\"(\S*)\".*$", re.MULTILINE)
build_config = dict( config_h_re.findall(File("config.h.dummy").get_contents()) )
env["version"] = build_config["PACKAGE_VERSION"]
if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive