scripts/addToolVersion.sh
changeset 2441 4cd9cda2265c
parent 2412 20edcd78cf67
child 2485 288f1261964f
     1.1 --- a/scripts/addToolVersion.sh	Thu Apr 28 00:13:41 2011 +0200
     1.2 +++ b/scripts/addToolVersion.sh	Sun May 08 11:02:18 2011 +0200
     1.3 @@ -102,15 +102,16 @@
     1.4              # Extract 'M'ajor and 'm'inor from version string
     1.5              ver_M=$(echo "${version}...." |cut -d . -f 1)
     1.6              ver_m=$(echo "${version}...." |cut -d . -f 2)
     1.7 -            if [    ${ver_M} -gt 4                          \
     1.8 -                 -o \( ${ver_M} -eq 4 -a ${ver_m} -ge 5 \)  ]; then
     1.9 -                SedExpr1="${SedExpr1}\n    select CC_GCC_4_5_or_later"
    1.10 -            elif [    ${ver_M} -gt 4                          \
    1.11 -                   -o \( ${ver_M} -eq 4 -a ${ver_m} -ge 4 \)  ]; then
    1.12 -                SedExpr1="${SedExpr1}\n    select CC_GCC_4_4_or_later"
    1.13 -            elif [    ${ver_M} -gt 4                          \
    1.14 -                   -o \( ${ver_M} -eq 4 -a ${ver_m} -ge 3 \)  ]; then
    1.15 -                SedExpr1="${SedExpr1}\n    select CC_GCC_4_3_or_later"
    1.16 +            if [   \( ${ver_M} -eq 4 -a ${ver_m} -eq 6 \)  ]; then
    1.17 +                SedExpr1="${SedExpr1}\n    select CC_GCC_4_6"
    1.18 +            elif [ \( ${ver_M} -eq 4 -a ${ver_m} -eq 5 \)  ]; then
    1.19 +                SedExpr1="${SedExpr1}\n    select CC_GCC_4_5"
    1.20 +            elif [ \( ${ver_M} -eq 4 -a ${ver_m} -eq 4 \)  ]; then
    1.21 +                SedExpr1="${SedExpr1}\n    select CC_GCC_4_4"
    1.22 +            elif [ \( ${ver_M} -eq 4 -a ${ver_m} -eq 3 \)  ]; then
    1.23 +                SedExpr1="${SedExpr1}\n    select CC_GCC_4_3"
    1.24 +            elif [ \( ${ver_M} -eq 4 -a ${ver_m} -eq 2 \)  ]; then
    1.25 +                SedExpr1="${SedExpr1}\n    select CC_GCC_4_2"
    1.26              fi
    1.27              ;;
    1.28          uClibc)