Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
21 lines
420 B
Bash
Executable file
21 lines
420 B
Bash
Executable file
#! /bin/sh
|
|
|
|
source lib-cache.sh;
|
|
|
|
print_requirements () {
|
|
module_name="$1";
|
|
|
|
./requirements.sh "$module_name" | while read; do
|
|
echo "$REPLY";
|
|
print_reqs_cache "$REPLY";
|
|
done | sort | uniq
|
|
};
|
|
|
|
print_reqs_cache () {
|
|
module_name="$1";
|
|
module_basename="${module_name//::/-}";
|
|
|
|
cached_output print_requirements "$module_basename" "$module_name" "full.deps";
|
|
};
|
|
|
|
print_reqs_cache "$@";
|