From 2a05a3d9aecd8298b13780ee846ee3ab9300897c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Jan 2017 12:59:28 +0100 Subject: checkVersions kann jetzt auch bitbucket --- checkVersions | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'checkVersions') diff --git a/checkVersions b/checkVersions index 3afdb0611..99b8bf7aa 100755 --- a/checkVersions +++ b/checkVersions @@ -366,19 +366,6 @@ then tail -n1 | \ sed "s|^r\([[:digit:]]\+\)\s.*\$|\1|" \ ) - elif echo "${src}" | \ - grep -q "https\?://\(\(bindfs\|qgis\|download\.osgeo\|www\.\(iozone\|wurzel\)\)\.org\|ftp\.daper\.net\|www\.\(cybernoia\.de\|phy\.duke\.edu\)\|isl\.gforge\.inria\.fr\)/" - then - quVer="${src%/*}/" - remVer="$( \ - curl "${quVer}" 2> /dev/null | \ - tr '"<>' '\n\n\n' | \ - grep "^${pkgname}\(-src\)\?-\?[0-9._]\+\.t\(ar\(\.gz\|\.bz2\)\?\|gz\)\$" | \ - sed "s@^${pkgname}\(-src\)\?-\?\([0-9._]\+\)\.t\(ar\(\.gz\|\.bz2\)\?\|gz\)\$@\2@" | \ - tr '_' '.' | \ - sort -V | \ - tail -n1 - )" elif echo "${src}" | \ grep -q 'https://bitbucket\.org/.*/get/[^/]\+$' then @@ -400,6 +387,19 @@ then sort -V | \ tail -n1 )" + elif echo "${src}" | \ + grep -q "https\?://\(\(bitbucket\|bindfs\|qgis\|download\.osgeo\|www\.\(iozone\|wurzel\)\)\.org\|ftp\.daper\.net\|www\.\(cybernoia\.de\|phy\.duke\.edu\)\|isl\.gforge\.inria\.fr\)/" + then + quVer="${src%/*}/" + remVer="$( \ + curl "${quVer}" 2> /dev/null | \ + tr '"<>' '\n\n\n' | \ + grep "^${pkgname}\(-src\)\?-\?[0-9._]\+\.t\(ar\(\.gz\|\.bz2\)\?\|gz\)\$" | \ + sed "s@^${pkgname}\(-src\)\?-\?\([0-9._]\+\)\.t\(ar\(\.gz\|\.bz2\)\?\|gz\)\$@\2@" | \ + tr '_' '.' | \ + sort -V | \ + tail -n1 + )" elif echo "${src}" | \ grep -q '^http://paraview.org/files/' then -- cgit v1.2.3-70-g09d2