# HG changeset patch # User Kim Alvefur # Date 1701614655 -3600 # Node ID 091667bd2f0e0e523f0c33ce2d4a6a88a30fd40c # Parent f70311588c778c5a1ebc697aaf0b95b6c3bd79f9 tools: Add a tool for comparing DOAP to the latest XEP versions Needs wget, awk, sed and xml2 diff -r f70311588c77 -r 091667bd2f0e tools/xepchanges.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/xepchanges.sh Sun Dec 03 15:44:15 2023 +0100 @@ -0,0 +1,14 @@ +#!/bin/sh -eu + +wget -N https://xmpp.org/extensions/xeplist.xml +xml2 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