2009-08-26 11:13:36 +00: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 17:34:01 +00:00
|
|
|
skipRedirectSF='s@sourceforge.net/projects@downloads.sourceforge.net/project@; s@/files@@; s@/download$@@;'
|
2009-08-26 11:13:36 +00:00
|
|
|
extractReleaseSF='s@.*/([^/]+)/[^/]+@\1@'
|
2010-06-23 04:58:07 +00: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 18:31:33 +00:00
|
|
|
|
|
|
|
replaceAllVersionOccurences() {
|
|
|
|
echo s/"$version"/\${version}/g
|
|
|
|
}
|
|
|
|
dashDelimitedVersion='s/.*-([0-9.]+)-.*/\1/'
|