From 6fe66049b71ad0cdde41359a976973219ea49755 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 5 Sep 2017 08:47:48 +0200 Subject: checkVersions kennt jetzt auch tightvnc --- checkVersions | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'checkVersions') diff --git a/checkVersions b/checkVersions index a97c4dd5..3eef2a6f 100755 --- a/checkVersions +++ b/checkVersions @@ -12,7 +12,7 @@ usage() { curl_it() { local source="$1" shift - curl --connect-timeout 10 -s "$@" "${source}" + curl --compressed --connect-timeout 10 -s "$@" "${source}" } me="$(readlink -f $0)" @@ -121,7 +121,15 @@ then sort -V | \ tail -n1 )" - elif [ "${pkgname}" == "g95" ] + elif [ "${pkgname}" = 'tightvnc' ] + then + remVer=$( + curl_it 'https://www.tightvnc.com/download-old.php' | \ + tr '"' '\n' | \ + grep -x 'https://www\.tightvnc\.com/download/\([0-9.]\+\)/tightvnc-\1_unixsrc\.tar\.bz2' | \ + sed 's|^https://www\.tightvnc\.com/download/\([0-9.]\+\)/tightvnc-\1_unixsrc\.tar\.bz2$|\1|' + ) + elif [ "${pkgname}" = 'g95' ] then remVer='0.94' elif [ "${pkgname}" = 'dcron' ] -- cgit v1.2.3-70-g09d2