From 39d1f7b5816cb1f186a0ce9a4e3dbc62ebce4b9b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 4 Jun 2007 23:53:23 +0200 Subject: [PATCH] Better regexp --- build-snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-snapshot.py b/build-snapshot.py index d6e684da..db834c00 100755 --- a/build-snapshot.py +++ b/build-snapshot.py @@ -25,7 +25,7 @@ def get_name_and_version(): config = f.read() f.close() - exp = 'AC\_INIT\(\[\w+\]\,\[([0-9.]+)\]\,\[\w*\]\,\[(\w+)' + exp = 'AC_INIT\(\[[^\]]+\],\[([^\]]+)\],\[\],\[([^\]]+)\]' match = re.search(exp, config) if not match: print 'Cannot find the package name and version.'