-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_libraries.sh
executable file
·21 lines (21 loc) · 1.14 KB
/
install_libraries.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
if [ $(uname) == "Linux" ]
then
sudo apt-get install libjpeg-dev libpng-dev libfreetype6-dev liblcms1-dev libtiff4-dev librsvg2-dev ghostscript
sudo apt-get install imagemagick
sudo sed -i.bak "s/\"gs\"/\"gs\" -dUseCIEColor/g" $(convert -list delegate | grep Path | sed -e "s/Path: //g")
sudo sed -r -i.bak "s/(-dUseCIEColor )+/-dUseCIEColor /g" $(convert -list delegate | grep Path | sed -e "s/Path: //g")
elif [ $(uname) == "Darwin" ]
then
which brew > /dev/null
if [ $? -eq 0 ]
then
brew install libjpeg libpng freetype lcms2 libtiff ghostscript librsvg gnu-sed libmagic
brew install imagemagick # --with-libtiff --enable-hdri --with-gslib # homebrew no longer support install option
gsed -r -i.bak "s/\"gs\"/\"gs\" -dUseCIEColor/g" $(convert -list delegate | grep Path | sed -e "s/Path: //g")
gsed -r -i.bak "s/(-dUseCIEColor )+/-dUseCIEColor /g" $(convert -list delegate | grep Path | sed -e "s/Path: //g")
else
echo "Homebrew is not installed. Please install it. Check http://brew.sh for more."
open http://brew.sh
fi
fi