diff options
author | Erich Eckner <git@eckner.net> | 2016-10-19 19:38:38 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-10-19 19:38:38 +0200 |
commit | 232873fd4477f6ee0b3ee1ff27467c20f9599263 (patch) | |
tree | 46b9e3e7ccdfec86001da57b7058535acd4f31d6 /checkVersions | |
parent | 828237b2c39a8dcd2cf58103ca581ed4d38bf7a2 (diff) | |
download | archlinuxewe.git.save-232873fd4477f6ee0b3ee1ff27467c20f9599263.tar.xz |
checkVersions kann jetzt auch paraview
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 6ebe033c..a134f089 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 |