mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
tools: Add a tool for comparing DOAP to the latest XEP versions
Needs wget, awk, sed and xml2
This commit is contained in:
parent
e5aa2c3385
commit
75335ede73
1 changed files with 14 additions and 0 deletions
14
tools/xepchanges.sh
Executable file
14
tools/xepchanges.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue