2009-08-26 12:13:36 +01:00
|
|
|
# sed scripts
|
|
|
|
|
|
|
|
#http://sourceforge.net/projects/webdruid/files/webdruid/0.6.0-alpha5/webdruid-0.6.0-alpha5.tar.gz/download
|
|
|
|
#http://downloads.sourceforge.net/webdruid/files/webdruid/0.6.0-alpha5/webdruid-0.6.0-alpha5.tar.gz
|
2010-04-16 18:34:01 +01:00
|
|
|
skipRedirectSF='s@sourceforge.net/projects@downloads.sourceforge.net/project@; s@/files@@; s@/download$@@;'
|
2009-08-26 12:13:36 +01:00
|
|
|
extractReleaseSF='s@.*/([^/]+)/[^/]+@\1@'
|
2010-06-23 05:58:07 +01:00
|
|
|
extractVersionSF='s@.*/[^/0-9]*([0-9].*)[.](tar|tgz|tbz2|zip).*@\1@'
|
2009-12-09 12:59:23 +00:00
|
|
|
apacheMirror='s@http://www.apache.org/dist/@mirror://apache/@'
|
|
|
|
skipRedirectApache='s@/dyn/closer.cgi[?]path=@/dist@'
|
2009-09-13 19:31:33 +01:00
|
|
|
|
|
|
|
replaceAllVersionOccurences() {
|
|
|
|
echo s/"$version"/\${version}/g
|
|
|
|
}
|
|
|
|
dashDelimitedVersion='s/.*-([0-9.]+)-.*/\1/'
|