summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-18 09:26:07 +0100
committerErich Eckner <git@eckner.net>2019-02-18 09:26:07 +0100
commit7737432b7e594ff3f89ec14a28be100da226835e (patch)
tree1cff86dae35eceb41a75baa1d0a8463f14fea636 /checkVersions
parent8e36f208cbfa0d7540fde56c51fd4c397663f8fd (diff)
downloadarchlinuxewe.git.save-7737432b7e594ff3f89ec14a28be100da226835e.tar.xz
checkVersions: recognize asp32
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions13
1 files changed, 8 insertions, 5 deletions
diff --git a/checkVersions b/checkVersions
index d18ebfc6..e7a47098 100755
--- a/checkVersions
+++ b/checkVersions
@@ -395,17 +395,20 @@ then
tail -n1
)"
elif echo "${src}" | \
- grep -q '^git://anonscm\.debian\.org/\|^git\(+https\?\)\?://github\.com/.*#tag='
+ grep -q '^git://anonscm\.debian\.org/\|^git\(+https\?\)\?://git\(hub\.com\|\.archlinux32\.org\)/.*#tag='
then
src="${src#git+}"
- remVer="$(
+ remVer=$(
git ls-remote --tags "${src%#*}" | \
awk '{print $2}' | \
- grep '^refs/tags/v[0-9.]\+$' | \
- sed 's|^refs/tags/v\([0-9.]\+\)$|\1|' | \
+ sed '
+ s|^refs/tags/v\?\([0-9.]\+\)$|\1|
+ t
+ d
+ ' | \
sort -V | \
tail -n1
- )"
+ )
elif echo "${src}" | \
grep -q '^git\(+[^:]\+\)\?://[^#]\+\(#commit=[^#]\+\)\?$'
then