diff options
author | Erich Eckner <git@eckner.net> | 2019-10-09 12:18:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-09 12:18:13 +0200 |
commit | a7cc5dab3ecba73931747521223ae7a7fd61b9f7 (patch) | |
tree | 837c78d2813e62052347a7d15a187022fc463e51 | |
parent | afb05ad45db1d249ab194b9f7991ee249f754e36 (diff) | |
download | archlinuxewe-a7cc5dab3ecba73931747521223ae7a7fd61b9f7.tar.xz |
checkVersions: learn sourceforge snapshots
-rwxr-xr-x | checkVersions | 19 |
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=$( \ |