diff --git a/tools/find-lcs.sh b/tools/find-lcs.sh new file mode 100755 index 00000000..6ef449b9 --- /dev/null +++ b/tools/find-lcs.sh @@ -0,0 +1,3 @@ +#!/bin/bash +( echo -ne ''; xpath -e '/xep-infos/xep[string(status)="Proposed"]' build/xeplist.xml 2>/dev/null | tr -d '\n'; echo -ne '' ) | 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))'