diff options
author | Erich Eckner <git@eckner.net> | 2016-09-19 11:13:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-09-19 11:13:56 +0200 |
commit | 9f2fb087962af535b765906ac5a6ef46463db242 (patch) | |
tree | 3ba5e2f8947775530a1716e19a4b85ac931d627a | |
parent | 8810040116e9967d5205329b782cd40892661027 (diff) | |
download | archlinuxewe-9f2fb087962af535b765906ac5a6ef46463db242.tar.xz |
checkVersions fuer hdf anpassen
-rwxr-xr-x | checkVersions | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/checkVersions b/checkVersions index 025ff8701..b732ef12d 100755 --- a/checkVersions +++ b/checkVersions @@ -326,21 +326,19 @@ then tail -n1 \ ) elif echo "${src}" | \ - grep -q "//www\.hdfgroup\.org/" + grep -q '//support\.hdfgroup\.org/' then - quVer="${src%/*}/" - quNam="${src##*/}" - quNam="${quNam%-*}" - quEnd=$( \ - echo "${src}" | \ - sed "s|^.*[0-9]||" - ) - mainVer=${pkgname#hdf} + quVer="${src%/*/*/*}/" + quNam="${src#${quVer}}" + quNam="${quNam%%.*}" + quNam="$(echo "${quNam}" | tr '[:lower:]' '[:upper:]')" remVer=$( \ - curl -o - "${quVer}" 2> /dev/null | \ - tr "\"" "\n" | \ - grep "^${quNam}-${mainVer}\.\(.*\)${quEnd}\$" | \ - sed "s|^${quNam}-${mainVer}\.\(.*\)${quEnd}\$|\1|" \ + curl "${quVer}" 2> /dev/null | \ + tr '"' '\n' | \ + grep "^${quNam}\.[.0-9]\+/\$" | \ + sed "s|^${quNam}\.\(.*\)/\$|\1|" | \ + sort -V | \ + tail -n1 \ ) elif echo "${src}" | \ grep -q "svn://svn\.openttd\.org" |