gnutar is in the Darwin base system
[summon-arm-toolchain.git] / summon-arm-toolchain
index b0b434f753986a8d4808d18dd3f5d34f6ec945cd..708869c7383b2fe885edd75cbe71a97ddca97e86 100755 (executable)
@@ -16,7 +16,6 @@ set -e
 TARGET=arm-eabi                # Or: TARGET=arm-elf
 PREFIX=${HOME}/arm     # Install location of your final toolchain
 PARALLEL=                      # Or: PARALLEL="-j 5" for 4 CPUs
-DARWIN_CELLAR=$(brew --cellar) # Path in which MacPorts or Fink is installed
 # Set to 'sudo' if you need superuser privileges while installing
 SUDO=''
 # Set to 1 to be quieter while running
@@ -45,7 +44,7 @@ else
        GCCRELEASE=4.6-2011.07
        GCCVERSION=${GCCRELEASE}
        GCC=gcc-linaro-${GCCVERSION}
-       GCCURL=http://launchpad.net/gcc-linaro/4.5/${GCCRELEASE}/+download/${GCC}.tar.bz2
+       GCCURL=http://launchpad.net/gcc-linaro/4.6/${GCCRELEASE}/+download/${GCC}.tar.bz2
 fi
 
 BINUTILS=binutils-2.21
@@ -117,14 +116,14 @@ case "$(uname)" in
        echo "Found Darwin OS."
 
        # darwin dependencies
-       DARWINDEPS="gnu-tar wget mpfr libmpc gmp"
+       DARWINDEPS="wget mpfr libmpc gmp"
   DARWINDEPSCOUNT=4
 
-  echo "Installing dependencies"
+  echo "Installing dependencies ..."
   if ! which brew > /dev/null; then
-    echo "homebrew not installed."
+    echo "Homebrew not installed."
   else
-    brew install ${DARWINDEPS} | grep -v '^Warning: Formula already installed: '
+      brew install ${DARWINDEPS} | (grep -v '^Warning: Formula already installed: ' || true)
   fi
 
   GCCFLAGS="${GCCFLAGS} \
@@ -156,7 +155,7 @@ esac
 function fetch {
     if [ ! -e ${STAMPS}/$1.fetch ]; then
         log "Downloading $1 sources..."
-        wget -c --no-passive-ftp $2
+        wget -c $2
         touch ${STAMPS}/$1.fetch
     fi
 }