From a49bd4fc83d28e96e553d2c9298e1c2f9f8c8916 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 3 Dec 2018 09:40:32 +0100 Subject: checkVersions: clean up sourceforge --- checkVersions | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'checkVersions') 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=$( \ -- cgit v1.2.3-70-g09d2