llvm.org GIT mirror llvm / 00c1073
Update script to tell the user where to get the CodeSourcery crosstool, if it's not found. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73213 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 10 years ago
1 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1919
2020 readonly CODE_SOURCERY="${INSTALL_ROOT}/codesourcery"
2121 readonly CODE_SOURCERY_PKG_PATH="${CODE_SOURCERY_PKG_PATH:-${HOME}/codesourcery}"
22 readonly CODE_SOURCERY_HTTP="http://www.codesourcery.com/sgpp/lite/arm/portal/package1787/public"
2223 readonly CODE_SOURCERY_PKG="arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
2324 readonly CODE_SOURCERY_ROOT="${CODE_SOURCERY}/arm-2007q3"
2425 readonly CODE_SOURCERY_BIN="${CODE_SOURCERY_ROOT}/bin"
109110 # Unpack the tarball.
110111 if [[ ! -d ${CODE_SOURCERY_ROOT} ]]; then
111112 cd ${CODE_SOURCERY}
112 runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
113 tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
113 if [[ -e ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG} ]]; then
114 runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
115 tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
116 else
117 echo -n "CodeSourcery tarball not found in "
118 echo "${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}"
119 echo -n "Fix the path or download it from "
120 echo "${CODE_SOURCERY_HTTP}/${CROSS_TARGET}/${CODE_SOURCERY_PKG}"
121 exit
122 fi
114123 else
115124 echo "CodeSourcery install dir already exists."
116125 fi