Author: loonycyborg
Date: Mon Feb  2 18:37:51 2009
New Revision: 32552

URL: http://svn.gna.org/viewcvs/wesnoth?rev=32552&view=rev
Log:
Made scons read version string from src/wesconfig.h instead of config.h.dummy

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=32552&r1=32551&r2=32552&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Feb  2 18:37:51 2009
@@ -525,8 +525,8 @@
 # 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."


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to