From 033ad4007aef144d52235913f469551685e7299c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 24 Nov 2020 18:51:31 +0100 Subject: [PATCH] tools: auto-generate entity into xep.ent upon acceptance --- tools/accept.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/accept.py b/tools/accept.py index 0ffd4a1b..8d99e7cc 100644 --- a/tools/accept.py +++ b/tools/accept.py @@ -70,6 +70,11 @@ def accept_xep(number, last_version, f.write(xep_text) 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): return datetime.strptime(s, "%Y-%m-%d") @@ -199,7 +204,7 @@ def main(): "git", "reset", "HEAD", ".", ]) subprocess.check_call([ - "git", "add", new_filename.parts[-1], + "git", "add", new_filename.parts[-1], "xep.ent", ]) if args.ask: flags = ["-ve"]