mirror of
https://github.com/PCRE2Project/pcre2.git
synced 2025-10-24 03:03:28 +08:00
Updates to the README and some documentation (#681)
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user