diff options
author | Erich Eckner <git@eckner.net> | 2021-04-12 12:38:19 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-12 12:38:19 +0200 |
commit | cb151a672260a64ed17587104f81b885ecf46966 (patch) | |
tree | b446f31544774dce3d28d095a6e66fe61ba95a36 /checkVersions | |
parent | e7b6c194c5f0d58e3f1118bbdc2a97f5d708afb4 (diff) | |
download | archlinuxewe-cb151a672260a64ed17587104f81b885ecf46966.tar.xz |
checkVersions: learn fpc-cross (again)
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 91d9d2e7e..5d789bad0 100755 --- a/checkVersions +++ b/checkVersions @@ -672,6 +672,26 @@ then sed "s|^${quNam}-v\?\([0-9.-]*\)\.${quEnd}\$|\1|" | \ latest_version 'perl' ) + elif echo "${src}" \ + | grep -q '^ftp://ftp.freepascal.org/'; then + quVer="${src%/*/*/*}/" + remVer=$( + curl_it "${quVer}" \ + | awk 'substr($1,1,1) == "d" {print $9}' \ + | sort -Vr \ + | while read -r ver; do + curl_it "${quVer}/${ver}/source/" \ + | awk '{print $9}' \ + | sed ' + s@^fpcbuild-\([0-9.]\+\)\.tar\.gz$@\1@ + t + d + ' \ + | latest_version \ + | grep -F '' \ + && break + done + ) elif echo "${src}" | \ grep -q "ftp://" then |