Move to correct location

This commit is contained in:
Sylvia van Os
2021-08-30 21:27:55 +02:00
parent 6223ccd4bc
commit 9d24ef7791

View File

@@ -1,27 +0,0 @@
#!/usr/bin/python3
import os
import re
changelogs = {}
with open('CHANGELOG.md') as changelog:
version_code = None
text = []
for line in changelog:
if line.startswith("## "):
if version_code != None:
changelogs[version_code] = text
text = []
match = re.match("## \S* - (\d*) \(\d{4}-\d{2}-\d{2}\)", line)
if not match:
raise ValueError(f"Invalid version line: {line}")
version_code = match.group(1)
else:
text.append(line)
for version, description in changelogs.items():
with open(os.path.join("fastlane", "metadata", "android", "en-US", "changelogs", f"{version}.txt"), "w") as fastlane_file:
fastlane_file.write("".join(description).strip())