mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 13:06:05 +00:00
Fix version update script and finalize implementation
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
dd04a7fedd
commit
f4ad6a8f97
2 changed files with 8 additions and 7 deletions
|
@ -42,11 +42,12 @@ def update_bazel_module(version):
|
|||
with open(module_file, 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
# Update version line
|
||||
# Update version line in module() block only
|
||||
content = re.sub(
|
||||
r'(\s+version\s*=\s*")[^"]*(".*)',
|
||||
r'(module\([^)]*?\s+version\s*=\s*")[^"]*(".*?)',
|
||||
r'\g<1>' + bazel_version + r'\g<2>',
|
||||
content
|
||||
content,
|
||||
flags=re.DOTALL
|
||||
)
|
||||
|
||||
with open(module_file, 'w') as f:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue