summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-01-03 14:23:02 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-01-03 14:23:02 -0800
commit63f9711cc229376c9c566b97efeef0ada8695da3 (patch)
treebc9e83680ad53d7b68b72cecf175630e31804e0b
parentConvert jitterbug to use Module::Build (diff)
downloadjitterbug-63f9711cc229376c9c566b97efeef0ada8695da3.tar.gz
Make capsule.sh prefer Build.PL
-rwxr-xr-xscripts/capsule.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/capsule.sh b/scripts/capsule.sh
index 1977313..5d9c57c 100755
--- a/scripts/capsule.sh
+++ b/scripts/capsule.sh
@@ -24,6 +24,10 @@ do
         dzil authordeps | cpanm
         cpanm --installdeps .
         HARNESS_VERBOSE=1 dzil test >> $logfile  2>&1
+    else if [ -f 'Build.PL' ]; then
+        perl Build.PL
+        ./Build installdeps
+        HARNESS_VERBOSE=1 ./Build test >> $logfile 2>&1
     else
         perl Makefile.PL
         cpanm --installdeps .