summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-05 08:47:48 +0200
committerErich Eckner <git@eckner.net>2017-09-05 08:47:48 +0200
commit6fe66049b71ad0cdde41359a976973219ea49755 (patch)
tree48512d9b380f6ffa4ce1fc7a1eaa8419765a5a7e /checkVersions
parent764554bbe6b2249ec6c78e8d3db42200fbfe52e1 (diff)
downloadarchlinuxewe.git.save-6fe66049b71ad0cdde41359a976973219ea49755.tar.xz
checkVersions kennt jetzt auch tightvnc
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions12
1 files changed, 10 insertions, 2 deletions
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' ]