mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
125600079d
svn path=/nixpkgs/trunk/; revision=17100
12 lines
482 B
Bash
12 lines
482 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@^http://sourceforge.net/projects/@http://downloads.sourceforge.net/@; s@/download$@@'
|
|
extractReleaseSF='s@.*/([^/]+)/[^/]+@\1@'
|
|
|
|
replaceAllVersionOccurences() {
|
|
echo s/"$version"/\${version}/g
|
|
}
|
|
dashDelimitedVersion='s/.*-([0-9.]+)-.*/\1/'
|