diff options
author | Erich Eckner <git@eckner.net> | 2018-06-05 13:27:50 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-06-05 13:27:50 +0200 |
commit | f3a4b6de31798e0ca511b458a21afe542403d46d (patch) | |
tree | 5a46b8c6afc470475a36e148d62bb47ac0db10b8 | |
parent | 840020a1399772b4682753ce1b09ba3fbd8012a3 (diff) | |
download | archlinuxewe-f3a4b6de31798e0ca511b458a21afe542403d46d.tar.xz |
checkVersions: understand git.archlinux32.org
-rwxr-xr-x | checkVersions | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions index 0ef997dd7..46b44e08e 100755 --- a/checkVersions +++ b/checkVersions @@ -222,10 +222,10 @@ then tar -Ox Makefile | \ grep -m1 '^V=[0-9.]\+$' | \ cut -d= -f2 - curl_it 'https://github.com/archlinux32/archiso32/releases' | \ + curl_it 'https://git.archlinux32.org/archlinux32/archiso32/releases' | \ tr '"' '\n' | \ - grep '^/archlinux32/archiso32/releases/tag/\(i686\|dual\)-v[0-9.]\+$' | \ - sed 's@^/archlinux32/archiso32/releases/tag/\(i686\|dual\)-v\([0-9.]\+\)$@\2@' + grep '^/archlinux32/archiso32/archive/\(i686\|dual\)-v[0-9.]\+\.tar\.gz$' | \ + sed 's@^/archlinux32/archiso32/archive/\(i686\|dual\)-v\([0-9.]\+\)\.tar\.gz$@\2@' ) | \ sort -V | \ tail -n1 @@ -239,10 +239,10 @@ then tar -Ox Makefile | \ grep -m1 '^V=[0-9.]\+$' | \ cut -d= -f2 - curl_it 'https://github.com/archlinux32/devtools32/releases' | \ + curl_it 'https://git.archlinux32.org/archlinux32/devtools32/releases' | \ tr '"' '\n' | \ - grep '^/archlinux32/devtools32/releases/tag/v[0-9.]\+$' | \ - sed 's@^/archlinux32/devtools32/releases/tag/v\([0-9.]\+\)$@\1@' + grep '^/archlinux32/devtools32/releases/tag/v[0-9.]\+\.tar\.gz$' | \ + sed 's@^/archlinux32/devtools32/releases/tag/v\([0-9.]\+\)\.tar\.gz$@\1@' ) | \ sort -V | \ tail -n1 @@ -488,6 +488,34 @@ then tail -n1 \ ) elif echo "${src}" | \ + grep -q '^https\?://git\.archlinux32\.org/' + then + quVer=$( + echo "${src#*::}" | \ + sed ' + s|/archive/[^/]*$|/releases| + s|/download/[^/]*/[^/]*$|| + s|http:|https:| + ' + ) + quNam=$( + echo "/${quVer#*.org/}" | \ + tr '[[:upper:]]' '[[:lower:]]' | \ + sed 's,/releases$,/archive/,' + ) + remVer=$( \ + curl_it "${quVer}" | \ + tr "\"" "\n" | \ + tr '[[:upper:]]' '[[:lower:]]' | \ + grep "^${quNam}v\?[0-9.]\+\.tar\.gz\$" | \ + sed ' + s|^'"${quNam}"'v\?|| + s/\.tar\.gz$// + ' | \ + sort -V | \ + tail -n1 \ + ) + elif echo "${src}" | \ grep -q "//\(\(pr\)\?downloads\.\)\?sourceforge\.net/" then quVer=$( \ |