Skip to content

Commit ba0cfb2

Browse files
authored
Merge pull request #8 from simbabque/module-build-cont
install dependencies from Module::Build
2 parents a2a226f + ccd24b3 commit ba0cfb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/cpan-install-dist-deps

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ set -eux
55
if [[ -e cpanfile ]];then
66
cpm install -g --cpanfile cpanfile --with-recommends --with-suggests --show-build-log-on-failure "$@"
77
fi
8+
9+
if [[ -e Build.PL ]]; then
10+
# This will install both build and dist deps
11+
perl Build.PL
12+
PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpm install -g --show-build-log-on-failure' || true
13+
fi

0 commit comments

Comments
 (0)