summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Barisione <marco@barisione.org>2010-06-16 14:49:30 (GMT)
committerMarco Barisione <marco@barisione.org>2010-06-16 14:49:30 (GMT)
commite76c6863a43cf79baeba92026d8ece32a2e3ec67 (patch)
tree6cecda43f0a2ed25c3a9688fad35ed36502c90dc
parent83c007280d9dcea57fc6269aa9bd227d8177cc6a (diff)
downloadmaemo-release-e76c6863a43cf79baeba92026d8ece32a2e3ec67.tar.gz
maemo-release-e76c6863a43cf79baeba92026d8ece32a2e3ec67.tar.xz
Handle better [ and ] around version numbers in configure.acHEADmaster
-rwxr-xr-xmaemo-release.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/maemo-release.py b/maemo-release.py
index 44ecff4..c73e01f 100755
--- a/maemo-release.py
+++ b/maemo-release.py
@@ -158,7 +158,7 @@ def update_configure(old_version, new_version):
file_in.close()
old_version = re.escape(old_version)
- new_configure_data = re.sub(r'(AC_INIT\(.*)%s' % old_version,
+ new_configure_data = re.sub(r'(AC_INIT\(.*?)\[?%s\]?' % old_version,
r'\1[%s]' % new_version,
configure_data)