From b19a1b59d85ab0e147ebdfeba46483553c7d06f4 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Wed, 24 Jun 2020 13:48:13 +1000 Subject: 0.222 Release files --- docs/release/scripts/build/verinfo.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/release/scripts/build/verinfo.py') diff --git a/docs/release/scripts/build/verinfo.py b/docs/release/scripts/build/verinfo.py index f2ea4ca515b..2f95cb5ce5e 100644 --- a/docs/release/scripts/build/verinfo.py +++ b/docs/release/scripts/build/verinfo.py @@ -54,7 +54,11 @@ def parse_args(): def extract_version(input): pattern = re.compile('\s+BARE_BUILD_VERSION\s+"(([^."]+)\.([^."]+))"') - return '0.221.A','0','221' + for line in input.readlines(): + match = pattern.search(line) + if match: + return match.group(1), match.group(2), match.group(3) + return None, None, None build, outfmt, srcfile, dstfile = parse_args() @@ -66,7 +70,7 @@ except IOError: sys.exit(1) version_string, version_major, version_minor = extract_version(fp) -version_build = "1" +version_build = "0" version_subbuild = "0" if not version_string: sys.stderr.write("Unable to extract version from source file '%s'\n" % srcfile) -- cgit v1.2.3-70-g09d2