summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-03 09:40:32 +0100
committerErich Eckner <git@eckner.net>2018-12-03 09:40:32 +0100
commita49bd4fc83d28e96e553d2c9298e1c2f9f8c8916 (patch)
treed533f8b4e4e71c577a8ab1b3798abcf1528046b8
parent330a01d42d919c7a6ce2019b970621c6dd0ee44c (diff)
downloadarchlinuxewe.git.save-a49bd4fc83d28e96e553d2c9298e1c2f9f8c8916.tar.xz
checkVersions: clean up sourceforge
-rwxr-xr-xcheckVersions20
1 files changed, 14 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions
index 284478ae..716eee69 100755
--- a/checkVersions
+++ b/checkVersions
@@ -608,12 +608,20 @@ then
quVer=$( \
echo "${src}" | \
sed '
- s|/sourceforge/|/|
- s|\(//sourceforge\.net/.*/\)[^/]*/[^/]*$|\1|
- s|//\(pr\)\?downloads\.sourceforge\.net/\([^/]*\)/[^/]*$|//sourceforge.net/projects/\2/files/\2/|
- s|//\(pr\)\?downloads\.sourceforge\.net/project/\([^/]*\)/files/\([^/]*\)/\([0-9.]\+/\)\?[^/]*$|//sourceforge.net/projects/\2/files/\3/|
- s|/scidavis/$|/SciDAVis/|
- s|^http:|https:|
+ s,^https\?://\(\(pr\)\?downloads\.\)\?sourceforge\.net/,,
+ s,^sourceforge/,,
+ s,^projects\?/,,
+ ' | \
+ sed '
+ s,^\([^/]\+\)/[^/]\+$,\1/\1,
+ t end
+ s,^\([^/]\+\)/\(files/\)\?\([^/]\+\)/[0-9.]\+/[^/]\+$,\1/\3,
+ t end
+ w /dev/stderr
+ d
+ :end
+ s,/scidavis$,/SciDAVis,
+ s,\([^/]\+\)/\([^/]\+\),https://sourceforge.net/projects/\1/files/\2/,
'
)
remVer=$( \