pinact: 1.0.0 -> 1.1.2 and set CGO_ENABLED=0 (#368078)
[NixPkgs.git] / pkgs / development / perl-modules / expression-generator / source-download-link.sh
blob779d131961f071e670a7be8242e8c286c8264cd8
1 #! /bin/sh
3 source lib-cache.sh;
5 module_name="$1";
6 module_basename="${module_name//::/-}";
8 write_link() {
9 module_basename="$1";
11 ./retrieve-modulepage.sh "$module_basename" |
12 grep -A 2 "This Release" |
13 grep href |
14 sed -re 's/.*href="//; s/".*//; s@^/@http://search.cpan.org/@';
17 cached_output write_link "$module_basename" "$module_basename" src.link;