1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-25 02:32:18 -05:00

Add a tool to find open last calls

This commit is contained in:
Jonas Wielicki 2017-11-29 13:03:54 +01:00
parent 26518bd35f
commit d97c1af508

3
tools/find-lcs.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
( echo -ne '<root>'; xpath -e '/xep-infos/xep[string(status)="Proposed"]' build/xeplist.xml 2>/dev/null | tr -d '\n'; echo -ne '</root>' ) | python3 -c 'import lxml.etree, sys; tree = lxml.etree.fromstring(sys.stdin.read())
for xep in tree: print("XEP-{number:04d} ({title}), LC ends: {enddate}; https://xmpp.org/extensions/xep-{number:04d}".format(number=int(xep.find("number").text), enddate=xep.find("lastcall").text, title=xep.find("title").text))'