From 23c809cd3754a0c70ef3edd957cbd314fbfd0137 Mon Sep 17 00:00:00 2001 From: Stefan Graupner Date: Wed, 3 Nov 2010 21:08:37 +0100 Subject: [PATCH] moved check for gnutar into general dependencies check --- summon-arm-toolchain | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 97c2508..e1f396e 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -104,35 +104,32 @@ case "$(uname)" in Darwin) echo "Found Darwin OS." + # darwin dependencies + DARWINDEPS="gnutar mpfr libmpc gmp" + DARWINDEPSCOUNT=4 + GCCFLAGS="${GCCFLAGS} \ --with-gmp=${DARWIN_OPT_PATH} \ --with-mpfr=${DARWIN_OPT_PATH} \ --with-mpc=${DARWIN_OPT_PATH} \ -with-libiconv-prefix=${DARWIN_OPT_PATH}" - if ! which gnutar > /dev/null ; then - echo "ERROR: GNU tar not found! (try 'sudo port install gnutar')" - exit 1 - else - echo "GNU tar found!" - TAR=gnutar - fi - - echo "Attempting to automatically check if common depencies are installed on your system" + + echo "Attempting to automatically check if common dependencies are installed on your system" if ! which port > /dev/null; then - echo "MacPorts not installed, could not check for requirements automatically" + echo "MacPorts not installed." else - pc=`port installed mpfr libmpc gmp | wc -l | tr -d " "` - if [ ${pc} -lt 4 ]; + pc=`port installed ${DARWINDEPS} | wc -l | tr -d " "` + if [ ${pc} -lt ${DARWINDEPSCOUNT} ]; then echo "Something is missing, do you want to install everything needed?" echo "(You need super user rights to do this.)" if [ read = "y" || read = "yes" ]; then - sudo port install mpfr libmpc gmp + sudo port install ${DARWINDEPS} fi else - echo "Found mpfr, libmpc and gmp. Proceeding..." + echo "Found: "${DARWINDEPS}"!" fi fi -- 2.25.1