summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions21
1 files changed, 21 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 1b4bf6e2..1fc89278 100755
--- a/checkVersions
+++ b/checkVersions
@@ -367,6 +367,27 @@ then
sort -V | \
tail -n1
)"
+ elif echo "${src}" | \
+ grep -q 'https://bitbucket\.org/.*/get/[^/]\+$'
+ then
+ srcPreNam="$(
+ echo "${src}" | \
+ sed 's|^.*/\([^/0-9]\+_\)[0-9][^/]\+$|\1|'
+ )"
+ srcEndg="$(
+ echo "${src}" | \
+ sed 's|^.*\(\.tar[^/]*\)$|\1|' | \
+ sed 's|\.|\\.|g'
+ )"
+ remVer="$(
+ curl "${src%/get/*}/downloads?tab=tags" 2> /dev/null | \
+ tr '"' '\n' | \
+ grep "${srcEndg}\$" | \
+ sed "s|^.*/${srcPreNam}\(.*\)${srcEndg}\$|\1|" | \
+ tr '_' '.' | \
+ sort -V | \
+ tail -n1
+ )"
else
continue
fi