summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-12 15:18:22 +0100
committerErich Eckner <git@eckner.net>2019-12-12 15:18:22 +0100
commit0b47138671661c8eff4cd290c6ac0e85a2b63b7a (patch)
tree339d3e45c4ccda1e317e90848ec25b0267305734 /checkVersions
parent17392f7a15391d8877355196553e15923db56a76 (diff)
downloadarchlinuxewe.git.save-0b47138671661c8eff4cd290c6ac0e85a2b63b7a.tar.xz
checkVersions: learn qt4
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions27
1 files changed, 27 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 15ee5e0e..2dcfb302 100755
--- a/checkVersions
+++ b/checkVersions
@@ -1008,6 +1008,33 @@ then
' | \
latest_version
)
+ elif echo "${src}" \
+ | grep -q 'https://download\.qt\.io/archive/qt/'; then
+ for major in $(
+ curl_it 'https://download.qt.io/archive/qt/' \
+ | sed -n '
+ s@^.*<a href="\([0-9.]\+/\)">\1</a>.*$@\1@
+ T
+ s@/$@@
+ /^'"${pkgname#qt}"'/ p
+ ' \
+ | sort -rV
+ ); do
+ remVer=$(
+ curl_it 'https://download.qt.io/archive/qt/'"${major}"'/' \
+ | sed -n '
+ s@^.*<a href="\([0-9.]\+/\)">\1</a>.*$@\1@
+ T
+ s@/$@@
+ p
+ ' \
+ | sort -V \
+ | tail -n1
+ )
+ if [ -n "${remVer}" ]; then
+ break;
+ fi
+ done
else
continue
fi