#!/bin/bash

working_dir=`dirname $0`

cd $working_dir

source ./script/set_perl_brew_environment.sh
perl -v
set -u
set -o  errexit

if [ `uname` == 'Darwin' ]; then

    # Mac OS X
    CPANM=/usr/local/bin/cpanm

else

    # assume Ubuntu
    CPANM=cpanm

fi

$CPANM CPAN~2.00

# FIXME Install ExtUtils::MakeMaker (a Carton dependency) separately
# without testing it because t/meta_convert.t fails on some machines
# (https://rt.cpan.org/Public/Bug/Display.html?id=85861)
$CPANM --notest ExtUtils::MakeMaker

# 1.0.9 or newer
# (if the install of Carton 1.0.9 fails because of CPAN::Meta failure,
# purge Perl with ./install_scripts/purge_mc_perl_brew.sh and
# ./install_scripts/purge_carton_install.sh)
$CPANM Carton~1.0.9

$CPANM List::MoreUtils
$CPANM Devel::NYTProf


#!/bin/bash

working_dir=`dirname $0`

cd $working_dir

source ./script/set_perl_brew_environment.sh
perl -v
set -u
set -o  errexit

if [ `uname` == 'Darwin' ]; then

    # Mac OS X
    CPANM=/usr/local/bin/cpanm

else

    # assume Ubuntu
    CPANM=cpanm

fi

$CPANM CPAN~2.00

# FIXME Install ExtUtils::MakeMaker (a Carton dependency) separately
# without testing it because t/meta_convert.t fails on some machines
# (https://rt.cpan.org/Public/Bug/Display.html?id=85861)
$CPANM --notest ExtUtils::MakeMaker

# 1.0.9 or newer
# (if the install of Carton 1.0.9 fails because of CPAN::Meta failure,
# purge Perl with ./install_scripts/purge_mc_perl_brew.sh and
# ./install_scripts/purge_carton_install.sh)
$CPANM Carton~1.0.9

$CPANM List::MoreUtils
$CPANM Devel::NYTProf

$CPANM Module::Install

$CPANM Gearman::XS

Add Module::Install and Gearman::XS to modules install outside carton to fix build errors.
Add Module::Install and Gearman::XS to modules install outside carton to fix build errors.
