Made scons read version string from src/wesconfig.h instead of config.h.dummy
This commit is contained in:
parent
0817667a3e
commit
e4e28185af
1 changed files with 2 additions and 2 deletions
|
@ -525,8 +525,8 @@ env.Precious(uninstall)
|
|||
# Making a distribution tarball.
|
||||
#
|
||||
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.get("PACKAGE_VERSION")
|
||||
build_config = dict( config_h_re.findall(File("src/wesconfig.h").get_contents()) )
|
||||
env["version"] = build_config.get("VERSION")
|
||||
if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive
|
||||
def dist_manifest():
|
||||
"Get an argument list suitable for passing to a distribution archiver."
|
||||
|
|
Loading…
Add table
Reference in a new issue