blob: def44529d5e81121b1d31fbdcd0846d6389a47bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
set -e
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd | sed -e 's/\/bin$//' )"
# Before anything else is installed, install the carton.lock version of
# ExtUtils::MakeMaker to work around a dependency bug only just fixed, sigh
$DIR/bin/cpanm -l $DIR/local MSCHWERN/ExtUtils-MakeMaker-6.64.tar.gz
$DIR/bin/cpanm -l $DIR/local Carton
export PATH=$DIR/local/bin:$PATH
export PERL5LIB=$DIR/local/lib/perl5
carton install --deployment
if ! perl -MImage::Magick -e 'exit()' >/dev/null 2>&1
then
read -p "Image::Magick is not installed. Do you want to attempt to install it?" yn
case $yn in
[Yy]* ) $DIR/local/bin/carton install Image::Magick;;
* ) echo 'You will need to install it for FixMyStreet to work';;
esac
fi
|