2020-04-24 23:36:52 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
source lib-cache.sh;
|
|
|
|
|
|
|
|
print_requirements () {
|
2021-12-06 16:07:01 +00:00
|
|
|
module_name="$1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
./requirements.sh "$module_name" | while read; do
|
|
|
|
echo "$REPLY";
|
|
|
|
print_reqs_cache "$REPLY";
|
|
|
|
done | sort | uniq
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
print_reqs_cache () {
|
2021-12-06 16:07:01 +00:00
|
|
|
module_name="$1";
|
|
|
|
module_basename="${module_name//::/-}";
|
|
|
|
|
|
|
|
cached_output print_requirements "$module_basename" "$module_name" "full.deps";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
print_reqs_cache "$@";
|