projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wgl: add official gldrv.h header-file
[mesa.git]
/
bin
/
gen_release_notes.py
diff --git
a/bin/gen_release_notes.py
b/bin/gen_release_notes.py
index f7b9237071c664b56688ef032b0c11fb7f496948..f104e996049041d415ae67551dd68b2c3216fa00 100755
(executable)
--- a/
bin/gen_release_notes.py
+++ b/
bin/gen_release_notes.py
@@
-36,7
+36,7
@@
from mako import exceptions
CURRENT_GL_VERSION = '4.6'
CURRENT_GL_VERSION = '4.6'
-CURRENT_VK_VERSION = '1.
1
'
+CURRENT_VK_VERSION = '1.
2
'
TEMPLATE = Template(textwrap.dedent("""\
<%!
TEMPLATE = Template(textwrap.dedent("""\
<%!
@@
-58,19
+58,19
@@
TEMPLATE = Template(textwrap.dedent("""\
<iframe src="../contents.html"></iframe>
<div class="content">
<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:
<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
with stability and reliability should stick with a previous release or
- wait for Mesa ${version[:-1]}1.
+ wait for Mesa ${
this_
version[:-1]}1.
%else:
%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>
%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
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>
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>
the apiVersion property of the VkPhysicalDeviceProperties struct
depends on the particular driver being used.
</p>
@@
-125,7
+125,7
@@
TEMPLATE = Template(textwrap.dedent("""\
async def gather_commits(version: str) -> str:
p = await asyncio.create_subprocess_exec(
async def gather_commits(version: str) -> str:
p = await asyncio.create_subprocess_exec(
- 'git', 'log', f'mesa-{version}..', '--grep', r'Closes: \(https\|#\).*',
+ 'git', 'log',
'--oneline',
f'mesa-{version}..', '--grep', r'Closes: \(https\|#\).*',
stdout=asyncio.subprocess.PIPE)
out, _ = await p.communicate()
assert p.returncode == 0, f"git log didn't work: {version}"
stdout=asyncio.subprocess.PIPE)
out, _ = await p.communicate()
assert p.returncode == 0, f"git log didn't work: {version}"
@@
-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)
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),
)
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(
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,
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(),
today=datetime.date.today(),
- version=previous_version,
+
previous_
version=previous_version,
vk_version=CURRENT_VK_VERSION,
))
except:
vk_version=CURRENT_VK_VERSION,
))
except: