From 232873fd4477f6ee0b3ee1ff27467c20f9599263 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 19 Oct 2016 19:38:38 +0200 Subject: checkVersions kann jetzt auch paraview --- checkVersions | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'checkVersions') 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 -- cgit v1.2.3-70-g09d2