diff options
author | Erich Eckner <git@eckner.net> | 2018-12-03 09:40:32 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-12-03 09:40:32 +0100 |
commit | a49bd4fc83d28e96e553d2c9298e1c2f9f8c8916 (patch) | |
tree | d533f8b4e4e71c577a8ab1b3798abcf1528046b8 | |
parent | 330a01d42d919c7a6ce2019b970621c6dd0ee44c (diff) | |
download | archlinuxewe.git.save-a49bd4fc83d28e96e553d2c9298e1c2f9f8c8916.tar.xz |
checkVersions: clean up sourceforge
-rwxr-xr-x | checkVersions | 20 |
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=$( \ |