Author: loonycyborg
Date: Sat May 17 18:31:07 2008
New Revision: 26676
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26676&view=rev
Log:
SCons recipe: improved regex used to parse config.h.dummy so it works on
windows.
Modified:
trunk/SConstruct
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=26676&r1=26675&r2=26676&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sat May 17 18:31:07 2008
@@ -536,7 +536,7 @@
#
# Making a distribution tarball.
#
-config_h_re = re.compile(r"^#define\s*(\S*)\s*\"(\S*)\"$", re.MULTILINE)
+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"]
if 'dist' in COMMAND_LINE_TARGETS: # Speedup, the manifest is expensive
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits