Skip to content

Commit

Permalink
check for ghostscript installation
Browse files Browse the repository at this point in the history
Check if ghostscript is installed
  • Loading branch information
kamelury committed Jan 5, 2015
1 parent 7886dd5 commit 569979a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Pod/Assets/Scripts/iconVersioning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ export PATH=/opt/local/bin/:/opt/local/sbin:$PATH:/usr/local/bin:
convertPath=`which convert`
echo ${convertPath}
if [[ ! -f ${convertPath} || -z ${convertPath} ]]; then
echo "WARNING: Skipping Icon versioning, you need to install ImageMagick and ghostscript (fonts) first, you can use brew to simplify process:
brew install imagemagick
brew install ghostscript"
echo "WARNING: Skipping Icon versioning, you need to install ImageMagick, you can use brew to simplify process:
brew install imagemagick"
exit 0;
fi

gsPath=`which gs`
echo ${gsPath}
if [[ ! -f ${gsPath} || -z ${gsPath} ]]; then
echo "WARNING: Skipping Icon versioning, you need to install ghostscript (fonts) first, you can use brew to simplify process:
brew install ghostscript"
exit 0;
fi

Expand Down Expand Up @@ -143,4 +150,4 @@ done
processIcon "AppIcon72x72~ipad*"
processIcon "AppIcon72x72@2x~ipad*"
processIcon "AppIcon76x76~ipad*"
processIcon "AppIcon76x76@2x~ipad*"
processIcon "AppIcon76x76@2x~ipad*"

0 comments on commit 569979a

Please sign in to comment.