aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-03 15:44:15 +0100
committerKim Alvefur <zash@zash.se>2023-12-03 15:44:15 +0100
commit75335ede7306fc5a462fc3f891567e59d3f0d891 (patch)
tree375aa1b355f0200e187752779e3287f2bbc6ad52 /tools
parente5aa2c3385270d89df857966d2d575cd94f0bd62 (diff)
downloadprosody-75335ede7306fc5a462fc3f891567e59d3f0d891.tar.gz
prosody-75335ede7306fc5a462fc3f891567e59d3f0d891.zip
tools: Add a tool for comparing DOAP to the latest XEP versions
Needs wget, awk, sed and xml2
Diffstat (limited to 'tools')
-rwxr-xr-xtools/xepchanges.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/xepchanges.sh b/tools/xepchanges.sh
new file mode 100755
index 00000000..0a0140a1
--- /dev/null
+++ b/tools/xepchanges.sh
@@ -0,0 +1,14 @@
+#!/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