diff options
author | Erich Eckner <git@eckner.net> | 2019-12-27 22:05:57 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-27 22:05:57 +0100 |
commit | 921a3f743c32d2a22888f08fc118fcd0608506ba (patch) | |
tree | 0a1d966cbb83e77e7041f58292518b00f9f66544 | |
parent | d645a1a25d56adfe9e76581183e2f2c5169d33fd (diff) | |
download | archlinuxewe-921a3f743c32d2a22888f08fc118fcd0608506ba.tar.xz |
checkVersions: check whether hdf source directory is not empty
-rwxr-xr-x | checkVersions | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/checkVersions b/checkVersions index 2dcfb3027..11982a440 100755 --- a/checkVersions +++ b/checkVersions @@ -783,15 +783,31 @@ then grep -q '//support\.hdfgroup\.org/' then quVer="${src%/*/*/*}/" - quNam="${src#${quVer}}" - quNam="${quNam%%.*}" - quNam="$(echo "${quNam}" | tr '[:lower:]' '[:upper:]')" - remVer=$( \ - curl_it "${quVer}" | \ - tr '"' '\n' | \ - grep "^${quNam}\.[.0-9]\+/\$" | \ - sed "s|^${quNam}\.\(.*\)/\$|\1|" | \ - latest_version + quNam="${src##*/}" + quNam="${quNam%-*}" + quNAM="${src#${quVer}}" + quNAM="${quNAM%%.*}" + quNAM="$(echo "${quNAM}" | tr '[:lower:]' '[:upper:]')" + remVer=$( + curl_it "${quVer}" \ + | tr '"' '\n' \ + | sed " + s|^${quNAM}\.\(.*\)/\$|\1| + t + d + " \ + | sort -Vr \ + | while read -r verKandidat; do + curl_it "${quVer}${quNAM}.${verKandidat}/src/" \ + | sed ' + s@^.*<a href="'"${quNam}"'-'"${pkgname#${quNam}}"'\.\([0-9.]\+\)\.tar\.gz">.*$@\1@ + t + d + ' \ + | sort -Vr \ + | grep -Fm1 '' \ + && break + done ) elif echo "${src}" | \ grep -q 'https://bitbucket\.org/.*/get/[^/]\+$' |