mail[Wesnoth-commits] r27632 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on June 30, 2008 - 23:06:
Author: loonycyborg
Date: Mon Jun 30 23:06:22 2008
New Revision: 27632

URL: http://svn.gna.org/viewcvs/wesnoth?rev=27632&view=rev
Log:
Prevent scons crash if config.h.dummy is absent.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27632&r1=27631&r2=27632&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Jun 30 23:06:22 2008
@@ -499,7 +499,7 @@
 #
 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."




Related Messages


Powered by MHonArc, Updated Mon Jun 30 23:22:18 2008