mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
b98a144355
svn path=/nixpkgs/trunk/; revision=11947
18 lines
365 B
Bash
Executable File
18 lines
365 B
Bash
Executable File
#! /bin/sh
|
|
|
|
source lib-cache.sh;
|
|
|
|
module_name="$1";
|
|
module_basename="${module_name//::/-}";
|
|
|
|
write_link() {
|
|
module_basename="$1";
|
|
|
|
./retrieve-modulepage.sh "$module_basename" |
|
|
grep -A 2 "This Release" |
|
|
grep href |
|
|
sed -re 's/.*href="//; s/".*//; s@^/@http://search.cpan.org/@';
|
|
}
|
|
|
|
cached_output write_link "$module_basename" "$module_basename" src.link;
|