fixed the MacPorts check
authorStefan Graupner <stefan.graupner@gmail.com>
Thu, 4 Nov 2010 08:20:26 +0000 (09:20 +0100)
committerStefan Graupner <stefan.graupner@gmail.com>
Thu, 4 Nov 2010 08:20:26 +0000 (09:20 +0100)
summon-arm-toolchain

index c09c7039a30d58d7a08b4f50e0e7220b945c9b2b..a5051ff6c7404a6e2cc1a8f13cf1c858ae81eaa8 100755 (executable)
@@ -27,7 +27,7 @@ SUDO='sudo'
 # Set to 1 to be quieter while running
 QUIET=0
 # Set to 1 to use linaro gcc instead of the FSF gcc
-USE_LINARO=0
+USE_LINARO=1
 # Set to 1 to build libstm32 provided by ST
 LIBSTM32_EN=0
 # Set to 1 to build libopenstm32 an open source library for stm32
@@ -119,7 +119,7 @@ case "$(uname)" in
     echo "MacPorts not installed."
   else
     pc=`port installed ${DARWINDEPS} | wc -l | tr -d " "`
-    if [ ${pc} -lt ${DARWINDEPSCOUNT} ];
+    if [ ${pc} -lt $[{DARWINDEPSCOUNT}+1] ];
     then
       echo "Something is missing, do you want to install everything needed?"
       echo "(You need super user rights to do this.)"