scripts/addToolVersion.sh
changeset 1852 3f6a165d8ba7
parent 1805 ca5e7981fc24
child 1872 d7787259005e
     1.1 --- a/scripts/addToolVersion.sh	Thu Feb 04 15:18:46 2010 +0100
     1.2 +++ b/scripts/addToolVersion.sh	Sat Mar 20 18:49:15 2010 +0100
     1.3 @@ -118,6 +118,13 @@
     1.4                  SedExpr1="${SedExpr1}\n    select LIBC_UCLIBC_0_9_30_or_later"
     1.5              fi
     1.6              ;;
     1.7 +        gdb)
     1.8 +            # gdb-7.0 and above have special handling
     1.9 +            ver_M=$(echo "${version}...." |cut -d . -f 1)
    1.10 +            if [ ${ver_M} -ge 7 ]; then
    1.11 +                SedExpr1="${SedExpr1}\n    select GDB_7_0_or_later"
    1.12 +            fi
    1.13 +            ;;
    1.14      esac
    1.15      SedExpr2="    default \"${version}\" if ${config_ver_option}"
    1.16      "${sed}" -r -i -e 's/^(# CT_INSERT_VERSION_BELOW)$/\1\n\n'"${SedExpr1}"'/;' "${file}"