Added a generator for CPAN expressions. Expressions often require manual editing, but still something..
svn path=/nixpkgs/trunk/; revision=11947
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#! /bin/sh
|
||||
|
||||
source lib-cache.sh
|
||||
|
||||
get_file() {
|
||||
url="$1";
|
||||
|
||||
if [ -n "$url" ]; then
|
||||
curl "$1";
|
||||
else
|
||||
echo -n;
|
||||
fi;
|
||||
}
|
||||
|
||||
url="$1";
|
||||
name="$2";
|
||||
name=${name:-$(basename "$url")}
|
||||
|
||||
cached_output get_file "${name%%.*}" "$url" "${name#*.}"
|
||||
|
||||
Reference in New Issue
Block a user