summaryrefslogtreecommitdiff
path: root/actions.sh
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-07 00:42:45 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-07 00:42:45 +0200
commit6ac91b3bc730ad8d3476288911e596bbfd2b8880 (patch)
tree95656012f5d212a9f56ad4a0c3165da2ce8ef853 /actions.sh
parente629a35ea29dd9da9f61511130cbbee6d910e4cf (diff)
allow action.list_deps to use any module
Diffstat (limited to 'actions.sh')
-rwxr-xr-xactions.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions.sh b/actions.sh
index 9eb4a37..f950a82 100755
--- a/actions.sh
+++ b/actions.sh
@@ -42,8 +42,9 @@ check_manifest () {
help_text="$help_text list_deps\t[]\tlists all non core dependencies\n"
list_deps () {
+ module=${1:-JWebmail}
core="$(corelist -v v5.34.1 | awk '{ print $1 }')"
- deps="$(perl -wE 'use lib "lib"; use Module::Load::Conditional "requires"; @res = requires "JWebmail"; $" = "\n"; say $res[0] ? "@res" : ""')"
+ deps="$(perl -wE "use lib 'lib'; use Module::Load::Conditional 'requires'; @res = requires '$module'; \$\" = qq(\n); say \$res[0] ? qq(@res) : ''")"
for dep in $deps
do