diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install_perl_modules | 26 | ||||
-rwxr-xr-x | bin/make_css | 4 |
2 files changed, 28 insertions, 2 deletions
diff --git a/bin/install_perl_modules b/bin/install_perl_modules new file mode 100755 index 000000000..ece7e7bce --- /dev/null +++ b/bin/install_perl_modules @@ -0,0 +1,26 @@ +#!/bin/bash + +DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd | sed -e 's/\/bin$//' )" + +curl -LO http://xrl.us/cpanm +mv cpanm $DIR/bin +chmod +x $DIR/bin/cpanm +$DIR/bin/cpanm -l local Carton + +export PATH=$DIR/local/bin:$PATH +export PERL5LIB=$DIR/local/lib/perl5 + +carton install --deployment + +perl -MImage::Magick -e 'exit()' >/dev/null 2>&1 + +HAVE_IM=$? + +if [ $HAVE_IM -ne 0 ] +then + read -p "Image::Magick is not installed. Do you want to attempt to install it?" yn + case $yn in + [Yy]* ) ./local/bin/carton install Image::Magick;; + * ) echo 'You will need to install it for FixMyStreet to work';; + esac +fi diff --git a/bin/make_css b/bin/make_css index 59acdb984..96c768acc 100755 --- a/bin/make_css +++ b/bin/make_css @@ -2,8 +2,8 @@ # # make_css: # Generate CSS files from SCSS files. -# Curerntly the CSS files are also in version control, though I guess -# in future they don't need to be, and compressed style could then be used. +# +# Requires sass which you can get from http://sass-lang.com/ # # Copyright (c) 2011 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org |