diff options
author | Erich Eckner <git@eckner.net> | 2021-03-24 10:42:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-03-24 10:42:33 +0100 |
commit | 218c57f58371bcfdfacc42a19f4b87dc35c12c30 (patch) | |
tree | 5a26e5d38ec823fcd9ea8f3999ed4daf673227fc /checkVersions | |
parent | 77496a45602d7c40dbefd628c65bcf330546568f (diff) | |
download | archlinuxewe-218c57f58371bcfdfacc42a19f4b87dc35c12c30.tar.xz |
checkVersions: learn jamulus-headless
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/checkVersions b/checkVersions index 4aaf7887b..eb276b0be 100755 --- a/checkVersions +++ b/checkVersions @@ -730,18 +730,31 @@ then tr '[[:upper:]]' '[[:lower:]]' ) if [ "${pkgname}" == 'boulder' ]; then - extra_chars='-' + us_chars='-' + dot_chars='' + elif [ "${pkgname}" == 'jamulus-headless' ]; then + us_chars='' + dot_chars='_' else - extra_chars='' + us_chars='' + dot_chars='' fi remVer=$( \ curl_it "${quVer}" | \ - tr "\"" "\n" | \ + tr '"' '\n' | \ tr '[[:upper:]]' '[[:lower:]]' | \ - grep "^${quNam}\(v\|release\(%2f\|-\)\|\)[${extra_chars}0-9.]\+\$" | \ - sed "s@^${quNam}\(v\|release\(%2f\|-\)\|\)@@" | \ - if [ -n "${extra_chars}" ]; then - tr "${extra_chars}" '_' + sed ' + s@^'"${quNam}"'\([rv]\|release\(%2f\|-\)\|\)\(['"${dot_chars}${us_chars}"'_0-9.]\+\)$@\3@ + t + d + ' | \ + if [ -n "${dot_chars}" ]; then + tr "${dot_chars}" '.' + else + cat + fi | \ + if [ -n "${us_chars}" ]; then + tr "${us_chars}" '_' else cat fi | \ |