From d145b0d7d88e6c2420b45b4d942b483702a15a0b Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 28 Oct 2020 10:32:35 +0100 Subject: [PATCH] doc: generate-changelog: add support for point releases --- doc/doxygen/generate-changelog.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/doxygen/generate-changelog.py b/doc/doxygen/generate-changelog.py index 76fa88194a..d79d7fef0c 100755 --- a/doc/doxygen/generate-changelog.py +++ b/doc/doxygen/generate-changelog.py @@ -16,7 +16,8 @@ def generate_changelog(template_filename, changelog_filename, output_filename): open(changelog_filename) as changelog, \ open(output_filename, "w") as output: changelog_lines = [] - release_title = re.compile(r"((RIOT-\d{4}\.\d{2} - Release Notes)|(Release 2013\.08))") + release_title = re.compile(r"((RIOT-\d{4}\.\d{2}(\.\d+)? - " + r"Release Notes)|(Release 2013\.08))") notes_template = re.compile(r"\[Notes\]") title = 0 prev_newline = False @@ -35,7 +36,7 @@ def generate_changelog(template_filename, changelog_filename, output_filename): prev_newline = True # this introduces a newline, so count it elif release_title.match(line): # if line contains a release title - release_match = re.search(r"(\d{4}\.\d{2})", line) + release_match = re.search(r"(\d{4}\.\d{2}(\.\d+)?)", line) assert(release_match is not None) # parse out release number release = release_match.group(1)