diff options
author | Eric Engestrom <[email protected]> | 2020-03-09 12:58:05 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2020-03-12 12:57:11 +0000 |
commit | 3aa83d809f6dd61e8052d39e5b3cf048c6fb8223 (patch) | |
tree | 22e2c615495cc25ef4abbf119f2e724c6548f590 /bin | |
parent | 64af6b3bcf8f976ce1739798cbdfdbf334f017d9 (diff) |
gen_release_notes: resolve ambiguity by renaming `version` to `previous_version` and `next_version` to `this_version`
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4113>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4113>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen_release_notes.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 2479eff68cf..f104e996049 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -58,19 +58,19 @@ TEMPLATE = Template(textwrap.dedent("""\ <iframe src="../contents.html"></iframe> <div class="content"> - <h1>Mesa ${next_version} Release Notes / ${today}</h1> + <h1>Mesa ${this_version} Release Notes / ${today}</h1> <p> %if not bugfix: - Mesa ${next_version} is a new development release. People who are concerned + Mesa ${this_version} is a new development release. People who are concerned with stability and reliability should stick with a previous release or - wait for Mesa ${next_version[:-1]}1. + wait for Mesa ${this_version[:-1]}1. %else: - Mesa ${next_version} is a bug fix release which fixes bugs found since the ${version} release. + Mesa ${this_version} is a bug fix release which fixes bugs found since the ${previous_version} release. %endif </p> <p> - Mesa ${next_version} implements the OpenGL ${gl_version} API, but the version reported by + Mesa ${this_version} implements the OpenGL ${gl_version} API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don't support all the features required in OpenGL ${gl_version}. OpenGL @@ -78,7 +78,7 @@ TEMPLATE = Template(textwrap.dedent("""\ Compatibility contexts may report a lower version depending on each driver. </p> <p> - Mesa ${next_version} implements the Vulkan ${vk_version} API, but the version reported by + Mesa ${this_version} implements the Vulkan ${vk_version} API, but the version reported by the apiVersion property of the VkPhysicalDeviceProperties struct depends on the particular driver being used. </p> @@ -242,14 +242,14 @@ async def main() -> None: assert '-devel' not in raw_version, 'Do not run this script on -devel' version = raw_version.split('-')[0] previous_version = calculate_previous_version(version, is_point_release) - next_version = calculate_next_version(version, is_point_release) + this_version = calculate_next_version(version, is_point_release) shortlog, bugs = await asyncio.gather( get_shortlog(previous_version), gather_bugs(previous_version), ) - final = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes' / f'{next_version}.html' + final = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes' / f'{this_version}.html' with final.open('wt') as f: try: f.write(TEMPLATE.render( @@ -258,9 +258,9 @@ async def main() -> None: changes=walk_shortlog(shortlog), features=get_features(is_point_release), gl_version=CURRENT_GL_VERSION, - next_version=next_version, + this_version=this_version, today=datetime.date.today(), - version=previous_version, + previous_version=previous_version, vk_version=CURRENT_VK_VERSION, )) except: |