summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-19 19:38:38 +0200
committerErich Eckner <git@eckner.net>2016-10-19 19:38:38 +0200
commit232873fd4477f6ee0b3ee1ff27467c20f9599263 (patch)
tree46b9e3e7ccdfec86001da57b7058535acd4f31d6 /checkVersions
parent828237b2c39a8dcd2cf58103ca581ed4d38bf7a2 (diff)
downloadarchlinuxewe-232873fd4477f6ee0b3ee1ff27467c20f9599263.tar.xz
checkVersions kann jetzt auch paraview
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions26
1 files changed, 26 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 6ebe033c1..a134f089f 100755
--- a/checkVersions
+++ b/checkVersions
@@ -388,6 +388,32 @@ then
sort -V | \
tail -n1
)"
+ elif echo "${src}" | \
+ grep -q '^http://paraview.org/files/'
+ then
+ remVerz="$(
+ echo "${src}" | \
+ sed 's|/v[0-9.]\+/ParaView-v[0-9.]\+\.tar\.gz$|/|' | \
+ sed 's|^\(http://\)|\1www.|'
+ )"
+ for mainVer in $(
+ curl "${remVerz}" 2> /dev/null | \
+ tr ' >' '\n' | \
+ grep '^href="v[0-9.]\+/"$' | \
+ sed 's|href="v\([0-9.]\+\)/"$|\1|' | \
+ sort -Vr
+ )
+ do
+ remVer="$(
+ curl "${remVerz}v${mainVer}/" 2> /dev/null | \
+ tr ' >' '\n' | \
+ grep '^href="ParaView-v[0-9.]\+\.tar\.gz"$' | \
+ sed 's|^href="ParaView-v\([0-9.]\+\)\.tar\.gz"$|\1|' | \
+ sort -V | \
+ tail -n1
+ )"
+ [ -n "${remVer}" ] && break
+ done
else
continue
fi