2009-08-26 15:13:36 +04: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 21:34:01 +04:00
|
|
|
skipRedirectSF='s@sourceforge.net/projects@downloads.sourceforge.net/project@; s@/files@@; s@/download$@@;'
|
2009-08-26 15:13:36 +04:00
|
|
|
extractReleaseSF='s@.*/([^/]+)/[^/]+@\1@'
|
2010-06-23 08:58:07 +04:00
|
|
|
extractVersionSF='s@.*/[^/0-9]*([0-9].*)[.](tar|tgz|tbz2|zip).*@\1@'
|
2009-12-09 15:59:23 +03:00
|
|
|
apacheMirror='s@http://www.apache.org/dist/@mirror://apache/@'
|
|
|
|
skipRedirectApache='s@/dyn/closer.cgi[?]path=@/dist@'
|
2009-09-13 22:31:33 +04:00
|
|
|
|
|
|
|
replaceAllVersionOccurences() {
|
|
|
|
echo s/"$version"/\${version}/g
|
|
|
|
}
|
|
|
|
dashDelimitedVersion='s/.*-([0-9.]+)-.*/\1/'
|