Prevent scons crash if config.h.dummy is absent.

This commit is contained in:
Sergey Popov 2008-06-30 21:06:22 +00:00
parent 33d5ac2cd3
commit 4667b1fcc4

View file

@ -499,7 +499,7 @@ env.Precious(uninstall)
#
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"]
env["version"] = build_config.get("PACKAGE_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."