From 4c5070a188af5738504f55e8fb70379211c12030 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 26 Apr 2018 13:55:46 +0200 Subject: checkVersions: really recognize lilypond-devel and lilypond-devel-docs --- checkVersions | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/checkVersions b/checkVersions index bc46534ea..406e43833 100755 --- a/checkVersions +++ b/checkVersions @@ -566,6 +566,19 @@ then sort -V | \ tail -n1 )" + elif echo "${src}" | \ + grep -q '^https\?://lilypond\.org/' + then + quVer="${src%/*}/" + remVer="$( \ + curl_it "${quVer}" | \ + tr '"<>' '\n\n\n' | \ + grep "^lilypond-[0-9.]\+\(-[0-9]\+\.documentation\)\?\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$" | \ + sed "s@^lilypond-\([0-9.]\+\)\(-[0-9]\+\.documentation\)\?\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$@\1@" | \ + tr '_' '.' | \ + sort -V | \ + tail -n1 + )" elif echo "${src}" | \ grep -q "$( printf '^https\\?://%s/\|' \ @@ -576,7 +589,6 @@ then 'download\.osgeo\.org' \ 'ftp\.daper\.net' \ 'isl\.gforge\.inria\.fr' \ - 'lilypond\.org' \ 'pkgbuild\.com' \ 'qgis\.org' \ 'webhome\.phy\.duke\.edu' \ @@ -593,8 +605,8 @@ then remVer="$( \ curl_it "${quVer}" | \ tr '"<>' '\n\n\n' | \ - grep "^${pkgname%-devel}\(-src\)\?-\?[0-9._]\+[a-z]\?\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$" | \ - sed "s@^${pkgname%-devel}\(-src\)\?-\?\([0-9._]\+[a-z]\?\)\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$@\2@" | \ + grep "^${sPkgname}\(-src\)\?-\?[0-9._]\+[a-z]\?\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$" | \ + sed "s@^${sPkgname}\(-src\)\?-\?\([0-9._]\+[a-z]\?\)\.t\(ar\(\.[gx]z\|\.bz2\)\?\|gz\)\$@\2@" | \ tr '_' '.' | \ sort -V | \ tail -n1 -- cgit v1.2.3-70-g09d2