diff options
author | Erich Eckner <git@eckner.net> | 2021-09-19 21:51:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-09-19 21:51:58 +0200 |
commit | c21a81bea29d89e9849b1feedc00626baf7dac76 (patch) | |
tree | 6343e270c6760f9aaf08a9726bec39cbdb75510e /checkVersions | |
parent | 2f98263ea6e940f77a536ab1963f07eb8e2edc13 (diff) | |
download | archlinuxewe-c21a81bea29d89e9849b1feedc00626baf7dac76.tar.xz |
checkVersions: learn hyperrogue
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/checkVersions b/checkVersions index 3508dfcf9..5a1547bb6 100755 --- a/checkVersions +++ b/checkVersions @@ -752,7 +752,7 @@ then quVer=$( echo "${src#*::}" | \ sed ' - s|/archive/\(Release/\)\?[^/]*$|/releases| + s@/archive/\(Release/\|refs/tags/\)\?[^/]*$@/releases@ s|/download/[^/]*/[^/]*$|| s|http:|https:| ' @@ -764,19 +764,26 @@ then if [ "${pkgname}" == 'boulder' ]; then us_chars='-' dot_chars='' + ex_chars='' elif [ "${pkgname}" == 'jamulus-headless' ]; then us_chars='' dot_chars='_' + ex_chars='' + elif [ "${pkgname}" == 'hyperrogue' ]; then + us_chars='' + dot_chars='' + ex_chars='[a-z]*' else us_chars='' dot_chars='' + ex_chars='' fi remVer=$( \ curl_it "${quVer}" | \ tr '"' '\n' | \ tr '[[:upper:]]' '[[:lower:]]' | \ sed ' - s@^'"${quNam}"'\([rv]\|release\(%2f\|-\)\|\)\(['"${dot_chars}${us_chars}"'_0-9.]\+\)$@\3@ + s@^'"${quNam}"'\([rv]\|release\(%2f\|-\)\|\)\(['"${dot_chars}${us_chars}"'_0-9.]\+'"${ex_chars}"'\)$@\3@ t d ' | \ @@ -1130,18 +1137,6 @@ then | latest_version ) elif echo "${src}" | \ - grep -qF '//www.roguetemple.com/' - then - remVer=$( - curl_it "${src%/*}/download.php" | \ - sed -n ' - s,^.*<a href="hyperrogue\([0-9]\+\)\([0-9]\)\([a-z]\?\)-src.tgz">[^<>]\+ source code</a>.*$,\1.\2.\3, - T - s,\.$,, - p - ' - ) - elif echo "${src}" | \ grep -q '//www\.apache\.org/dist/spamassassin/source/' then remVer=$( |