summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-17 16:15:28 +0200
committerErich Eckner <git@eckner.net>2018-07-17 16:15:28 +0200
commit81a44e268ddc92b4e484c1f8de9667230962012f (patch)
treeceef7b453919979f8e21b7a267809ff68e94e270
parent9b25b21eca773bdacfa544148ea5e925b7228efe (diff)
downloadarchlinuxewe-81a44e268ddc92b4e484c1f8de9667230962012f.tar.xz
checkVersions kennt nun auch git.eckner.net
-rwxr-xr-xcheckVersions22
1 files changed, 22 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 869586bc4..e5f6dd95a 100755
--- a/checkVersions
+++ b/checkVersions
@@ -432,6 +432,28 @@ then
tail -n1 \
)
elif echo "${src}" | \
+ grep -q "//git\.eckner\.net/"
+ then
+ quVer="${src%/*/*}"
+ quNam=$(
+ printf '%s\n' "${src}" | \
+ sed '
+ s,^.*/,,
+ s,-[0-9.]\+\.tar\.xz$,,
+ '
+ )
+ remVer=$( \
+ curl_it "${quVer}" | \
+ tr "<>'\"" '\n' | \
+ sed -n '
+ s,^/'"${quNam}"'\.git/snapshot/'"${quNam}"'-\([0-9.]\+\)\.tar\.xz$,\1,
+ T
+ p
+ ' | \
+ sort -V | \
+ tail -n1
+ )
+ elif echo "${src}" | \
grep -q "//\(search\.m\?\)\?cpan\.org/\|//cpan\.metacpan\.org/authors/\|cpan\.org/modules/by-module/"
then
quVer=$( \