summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-01-04 17:23:50 -0800
committerJonathan "Duke" Leto <jonathan@leto.net>2011-01-04 17:23:50 -0800
commit3a9161f147b99465dfecfff1259fe3aadc1d09bc (patch)
tree4a3975b22f783933641b736cde516bcb6ff0255e
parentCorrect mail program invocation to work on Debian systems (diff)
downloadjitterbug-3a9161f147b99465dfecfff1259fe3aadc1d09bc.tar.gz
Add some debug output to capsule.sh
-rwxr-xr-xscripts/capsule.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/capsule.sh b/scripts/capsule.sh
index b4be0d9..b103a6a 100755
--- a/scripts/capsule.sh
+++ b/scripts/capsule.sh
@@ -6,6 +6,7 @@
 builddir=$1
 report_path=$2
 
+echo "Creating report_path=$report_path"
 mkdir -p $report_path
 
 cd $builddir
@@ -15,20 +16,26 @@ source $HOME/perl5/perlbrew/etc/bashrc
 for perl in $HOME/perl5/perlbrew/perls/perl-5.*
 do
     theperl="$(basename $perl)"
+
+    echo ">perlbrew switch $theperl"
     perlbrew switch $theperl
+    # TODO: check error condition
 
     perlversion=$(perl -v)
     logfile="$report_path/$theperl.txt"
 
     if [ -f 'dist.ini' ]; then
+        echo "Found dist.ini, using Dist::Zilla"
         dzil authordeps | cpanm
         cpanm --installdeps .
         HARNESS_VERBOSE=1 dzil test >> $logfile  2>&1
     elif [ -f 'Build.PL' ]; then
+        echo "Found Build.PL, using Build.PL"
         perl Build.PL
         ./Build installdeps
         HARNESS_VERBOSE=1 ./Build test >> $logfile 2>&1
     else
+        echo "Hoping to find Makefile.PL"
         perl Makefile.PL
         cpanm --installdeps .
         make