Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/build-snapshot.py
diff options
context:
space:
mode:
authorMarco 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)
commit39d1f7b5816cb1f186a0ce9a4e3dbc62ebce4b9b (patch)
tree113e2c360b6d8e93b92009d44e6c48e21e050e30 /build-snapshot.py
parenta9600516fba87acb3cb319cc6a150a03e40a7440 (diff)
Better regexp
Diffstat (limited to 'build-snapshot.py')
-rwxr-xr-xbuild-snapshot.py2
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.'