mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
44216c2ef8
svn path=/nixpkgs/trunk/; revision=22390
15 lines
672 B
Bash
15 lines
672 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@'
|
|
extractVersionSF='s@.*/[^/0-9]*([0-9].*)[.](tar|tgz|tbz2|zip).*@\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/'
|