Updates to the README and some documentation (#681)

This commit is contained in:
Nicholas Wilson
2025-02-01 15:50:20 +00:00
committed by GitHub
parent ec7f0a708b
commit 1fffb0d44e
117 changed files with 3812 additions and 3802 deletions

View File

@@ -1,9 +1,12 @@
# Common helpers for UpdateRelease.py and UpdateDates.py.
import re
import os
script_dir = os.path.dirname(os.path.abspath(__file__))
def get_current_release():
with open('configure.ac', 'r') as file:
with open(f"{script_dir}/../configure.ac", 'r') as file:
content = file.read()
matches = [match[1] for match in re.findall(r"m4_define\(pcre2_(major|minor|prerelease), \[(.*?)\]\)", content)]