diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-07 00:42:45 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-07 00:42:45 +0200 |
commit | 6ac91b3bc730ad8d3476288911e596bbfd2b8880 (patch) | |
tree | 95656012f5d212a9f56ad4a0c3165da2ce8ef853 | |
parent | e629a35ea29dd9da9f61511130cbbee6d910e4cf (diff) |
allow action.list_deps to use any module
-rwxr-xr-x | actions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |