diff options
-rwxr-xr-x | checkVersions | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/checkVersions b/checkVersions index e598addb3..84ee901c9 100755 --- a/checkVersions +++ b/checkVersions @@ -134,22 +134,22 @@ then remVer='0.94' elif [ "${pkgname}" = 'dcron' ] then - remVer="$( + remVer=$( curl_it 'http://www.jimpryor.net/linux/dcron.html' | \ grep 'The current version is:' | \ tr '"' '\n' | \ grep '^releases/dcron-[0-9.]\+\.tar\.gz$' | \ sed 's|^releases/dcron-\([0-9.]\+\)\.tar\.gz$|\1|' - )" - elif [ "${pkgname}" == "pgplot-for-ifeffit" ] + ) + elif [ "${pkgname}" = 'pgplot-for-ifeffit' ] then - remVer="$( + remVer=$( curl_it "ftp://ftp.astro.caltech.edu/pub/pgplot/" | \ grep "\spgplot[0-9.]\+\.tar\.gz -> \S\+\$" | \ sed "s|^.*\spgplot\([0-9.]\+\)\.tar\.gz -> \S\+\$|\1|" | \ sort -V | \ tail -n1 - )" + ) elif [ "${pkgname}" == "wurzel-old" ] then remVer="0.1" @@ -560,6 +560,31 @@ then [ -n "${remVer}" ] && break done elif echo "${src}" | \ + grep -q '^https://download\.kde\.org/stable/plasma/' + then + remVerz=$( + echo "${src}" | \ + sed 's|\(/[^/]\+\)\{2\}$|/|' + ) + for mainVer in $( + curl_it "${remVerz}" | \ + tr '"' '\n' | \ + grep '^[0-9.]\+/$' | \ + sed 's|/$||' | \ + sort -Vr + ) + do + remVer=$( + curl_it "${remVerz}${mainVer}/" | \ + tr '"' '\n' | \ + grep '^oxygen-fonts-[0-9.]\+\.tar\.xz$' | \ + sed 's|^oxygen-fonts-\([0-9.]\+\)\.tar\.xz$|\1|' | \ + sort -V | \ + tail -n1 + ) + [ -n "${remVer}" ] && break + done + elif echo "${src}" | \ grep -q '^http://download\.linuxaudio\.org/lilypond/sources/' then remVerz="$( |