tools: auto-generate entity into xep.ent upon acceptance

This commit is contained in:
Jonas Schäfer 2020-11-24 18:51:31 +01:00
parent 250b4daf54
commit 033ad4007a
1 changed files with 6 additions and 1 deletions

View File

@ -70,6 +70,11 @@ def accept_xep(number, last_version,
f.write(xep_text) f.write(xep_text)
f.flush() f.flush()
subprocess.check_call(["make", "build/xeplist.xml"])
with open("xep.ent", "ab") as f:
f.write(subprocess.check_output(["python3", "tools/makeent.py", str(number)]))
def isodate(s): def isodate(s):
return datetime.strptime(s, "%Y-%m-%d") return datetime.strptime(s, "%Y-%m-%d")
@ -199,7 +204,7 @@ def main():
"git", "reset", "HEAD", ".", "git", "reset", "HEAD", ".",
]) ])
subprocess.check_call([ subprocess.check_call([
"git", "add", new_filename.parts[-1], "git", "add", new_filename.parts[-1], "xep.ent",
]) ])
if args.ask: if args.ask:
flags = ["-ve"] flags = ["-ve"]