From 3c59f54ec8155ed9e58c996451851640b36c8cd4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Mar 2016 17:22:50 +0100 Subject: build: be less strict about line endings This is a shitty hack, but also not terribly offensive. --- wscript_build.py | 4 ++-- 1 file 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): -- cgit v1.2.3