mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-12 02:42:16 -05:00
tools: auto-generate entity into xep.ent upon acceptance
This commit is contained in:
parent
250b4daf54
commit
033ad4007a
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user