SCons recipe: improved regex used to parse config.h.dummy...
...so it works on windows.
This commit is contained in:
parent
0a09602dea
commit
14f75b3522
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue