From ace8e92396bb2f6f1be2fc83fa238ebff7956142 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 20 Sep 2017 15:00:01 +0200 Subject: checkVersions kennt jetzt auch ttf-oxygen --- checkVersions | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) (limited to 'checkVersions') 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" @@ -559,6 +559,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 -- cgit v1.2.3-70-g09d2