biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / perl-modules / expression-generator / grab-url.sh
blob8935cad8cefe3dbdd3c441e1c88ddc36126edf13
1 #! /bin/sh
3 source lib-cache.sh
5 get_file() {
6 url="$1";
8 if [ -n "$url" ]; then
9 curl "$1";
10 else
11 echo -n;
12 fi;
15 url="$1";
16 name="$2";
17 name=${name:-$(basename "$url")}
19 cached_output get_file "${name%%.*}" "$url" "${name#*.}"