diff options
author | Erich Eckner <git@eckner.net> | 2019-10-15 08:29:23 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-15 08:29:23 +0200 |
commit | 36f2215c4b840831052b37b647be9e4632bb69d2 (patch) | |
tree | effb66c43fed319d68436ffefdd2f7e48379bc3d /checkVersions | |
parent | dea90a5ba8c4b843b080295c0fbc2c0ad93f03e4 (diff) | |
download | archlinuxewe.git.save-36f2215c4b840831052b37b647be9e4632bb69d2.tar.xz |
checkVersions: enhance bitbucket parsing
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions index 40394c87..17432f03 100755 --- a/checkVersions +++ b/checkVersions @@ -787,19 +787,24 @@ then then srcPreNam="$( echo "${src}" | \ - sed 's|^.*/\([^/0-9]\+_\)[0-9][^/]\+$|\1|' + sed 's|^.*/\([^/0-9]\+[-_]\)[0-9][^/]\+$|\1|' )" srcEndg="$( echo "${src}" | \ - sed 's|^.*\(\.tar[^/]*\)$|\1|' | \ - sed 's|\.|\\.|g' + sed ' + s|^.*\(\.tar[^/]*\)$|\1| + s|\.|\\.|g + ' )" remVer="$( curl_it "${src%/get/*}/downloads/?tab=tags" | \ tr '"' '\n' | \ - grep "${srcEndg}\$" | \ - sed "s|^.*/${srcPreNam}\(.*\)${srcEndg}\$|\1|" | \ - tr '_' '.' | \ + sed ' + s|^.*/'"${srcPreNam}"'\(.*\)'"${srcEndg}"'$|\1| + t + d + ' | \ + tr -- '-_' '.' | \ latest_version )" elif echo "${src}" | \ |