Update check_xep_versions.sh to support extended -protocol attribute (#3915)

This commit is contained in:
Badlop 2023-01-11 13:28:32 +01:00
parent 276c11b04a
commit eb12c1db1b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ check_xep()
[ -f $BASE/doc/$xep ] || curl -s -o $BASE/doc/$xep https://xmpp.org/extensions/$xep.html
title=$(sed '/<title>/!d;s/.*<title>\(.*\)<\/title>.*/\1/' $BASE/doc/$xep)
vsn=$(grep -A1 Version $BASE/doc/$xep | sed '/<dd>/!d;q' | sed 's/.*>\(.*\)<.*/\1/')
imp=$(grep "{xep, $int," $BASE/src/* | sed "s/.*src\/\(.*\).erl.*'\([0-9.-]*\)'.*/\1 \2/")
imp=$(grep "{xep, $int," $BASE/src/* | sed "s/.*src\/\(.*\).erl.*[0-9], '\([0-9.-]*\)'.*/\1 \2/")
[ "$imp" == "" ] && imp="NA 0.0"
echo "$title;$vsn;${imp/ /;}"
}