summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-11 17:22:50 +0100
committerwm4 <wm4@nowhere>2016-03-11 17:22:50 +0100
commit3c59f54ec8155ed9e58c996451851640b36c8cd4 (patch)
treeafc598294401edb04a47df633bf97fc0067ab269 /wscript_build.py
parent717380ad71b5d1fb8c00d8782ffdfaefc03377c2 (diff)
downloadmpv-3c59f54ec8155ed9e58c996451851640b36c8cd4.tar.bz2
mpv-3c59f54ec8155ed9e58c996451851640b36c8cd4.tar.xz
build: be less strict about line endings
This is a shitty hack, but also not terribly offensive.
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py
index f6e5dd9cad..1bf67b0b59 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -486,9 +486,9 @@ def build(ctx):
if build_shared:
waftoolsdir = os.path.join(os.path.dirname(__file__), "waftools")
ctx.load("syms", tooldir=waftoolsdir)
- vre = '^#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION\((.*), (.*)\)$'
+ vre = '#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION\((.*), (.*)\)'
libmpv_header = ctx.path.find_node("libmpv/client.h").read()
- major, minor = re.search(vre, libmpv_header, re.M).groups()
+ major, minor = re.search(vre, libmpv_header).groups()
libversion = major + '.' + minor + '.0'
def _build_libmpv(shared):