1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-14 13:25:23 -05:00
xeps/tools/find-lcs.sh

4 lines
470 B
Bash
Raw Normal View History

2017-11-29 07:03:54 -05:00
#!/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())
2017-11-29 10:41:23 -05:00
for xep in tree: print("XEP-{number:04d} ({title}), LC ends: {enddate}; https://xmpp.org/extensions/xep-{number:04d}.html".format(number=int(xep.find("number").text), enddate=xep.find("lastcall").text, title=xep.find("title").text))'