Made scons read version string from src/wesconfig.h instead of config.h.dummy

This commit is contained in:
Sergey Popov 2009-02-02 17:37:51 +00:00
parent 0817667a3e
commit e4e28185af

View file

@ -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."