tools/xepchanges.sh
author Kim Alvefur <zash@zash.se>
Sun, 10 Mar 2024 15:56:01 +0100
changeset 13463 790f60c0843b
parent 13387 091667bd2f0e
permissions -rwxr-xr-x
util.startup: Back out 598df17b8ebb Broke signal handling again, such that an early s2s connection results in libunbound catching signals and getting Prosody killed on e.g. SIGHUP This returns to the situation where prosody --daemonize does not respond to signals.

#!/bin/sh -eu

wget -N https://xmpp.org/extensions/xeplist.xml
xml2 <xeplist.xml |
	2csv xep-infos/xep number version |
	grep -v ^xxxx,|
	sort -g > xepinfos.csv

xml2 < doc/doap.xml |
	2csv -d '	' xmpp:SupportedXep @rdf:resource xmpp:version |
	sed -r 's/https?:\/\/xmpp\.org\/extensions\/xep-0*([1-9][0-9]*)\.html/\1/' |
	while read -r xep ver ; do
		grep "^$xep," xepinfos.csv | awk -F, "\$2 != \"$ver\" { print (\"XEP-\"\$1\" updated to \"\$2\" from $ver\") }"
	done