diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-04 21:53:23 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-04 21:53:23 (GMT) |
commit | 39d1f7b5816cb1f186a0ce9a4e3dbc62ebce4b9b (patch) | |
tree | 113e2c360b6d8e93b92009d44e6c48e21e050e30 /build-snapshot.py | |
parent | a9600516fba87acb3cb319cc6a150a03e40a7440 (diff) |
Better regexp
Diffstat (limited to 'build-snapshot.py')
-rwxr-xr-x | build-snapshot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-snapshot.py b/build-snapshot.py index d6e684d..db834c0 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.' |