mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-27 19:34:10 +08:00
20 lines
470 B
Python
Executable file
20 lines
470 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
if len(sys.argv) != 2:
|
|
raise Exception("Missing argument")
|
|
|
|
start = f"Weblate {sys.argv[1]}\n"
|
|
display = False
|
|
|
|
with open("docs/changes.rst") as handle:
|
|
for line in handle:
|
|
if display:
|
|
if line.startswith("Weblate "):
|
|
break
|
|
elif not line.startswith("--"):
|
|
print(line, end="")
|
|
elif line == start:
|
|
display = True
|
|
print(line, end="")
|