summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-09 12:18:13 +0200
committerErich Eckner <git@eckner.net>2019-10-09 12:18:13 +0200
commita7cc5dab3ecba73931747521223ae7a7fd61b9f7 (patch)
tree837c78d2813e62052347a7d15a187022fc463e51
parentafb05ad45db1d249ab194b9f7991ee249f754e36 (diff)
downloadarchlinuxewe-a7cc5dab3ecba73931747521223ae7a7fd61b9f7.tar.xz
checkVersions: learn sourceforge snapshots
-rwxr-xr-xcheckVersions19
1 files changed, 19 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index f323746e5..21fa12f8c 100755
--- a/checkVersions
+++ b/checkVersions
@@ -698,6 +698,25 @@ then
latest_version
)
elif echo "${src}" | \
+ grep -q "//\(\(pr\)\?downloads\.\)\?sourceforge\.net/code-snapshots/svn/"
+ then
+ quVer=$(
+ echo "${src}" \
+ | sed '
+ s@^\([^/]\+//[^/]\+/\)code-snapshots/svn/\([^/]\)/\(\2[^/]\)\(/\3[^/]\+/[^/]\+\)/[^/]\+$@\1p\4/HEAD/@
+ '
+ )
+ remVer=$(
+ curl_it "${quVer}" \
+ | sed '
+ s@^.*>Commit <a href="[^"]\+">\[\([^][]\+\)]</a>.*$@\1@
+ t
+ d
+ ' \
+ | sort -V \
+ | tail -n1
+ )
+ elif echo "${src}" | \
grep -q "//\(\(pr\)\?downloads\.\)\?sourceforge\.net/"
then
quVer=$( \