71f2fc2324
svn path=/nixpkgs/trunk/; revision=21133
14 lines
603 B
Bash
14 lines
603 B
Bash
# 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
|
|
skipRedirectSF='s@sourceforge.net/projects@downloads.sourceforge.net/project@; s@/files@@; s@/download$@@;'
|
|
extractReleaseSF='s@.*/([^/]+)/[^/]+@\1@'
|
|
apacheMirror='s@http://www.apache.org/dist/@mirror://apache/@'
|
|
skipRedirectApache='s@/dyn/closer.cgi[?]path=@/dist@'
|
|
|
|
replaceAllVersionOccurences() {
|
|
echo s/"$version"/\${version}/g
|
|
}
|
|
dashDelimitedVersion='s/.*-([0-9.]+)-.*/\1/'
|