[llvm-commits] [llvm] r73213 - /llvm/trunk/utils/crosstool/ARM/build-install-linux.sh
Misha Brukman
brukman+llvm at gmail.com
Thu Jun 11 19:04:47 PDT 2009
Author: brukman
Date: Thu Jun 11 21:04:47 2009
New Revision: 73213
URL: http://llvm.org/viewvc/llvm-project?rev=73213&view=rev
Log:
Update script to tell the user where to get the CodeSourcery crosstool, if it's
not found.
Modified:
llvm/trunk/utils/crosstool/ARM/build-install-linux.sh
Modified: llvm/trunk/utils/crosstool/ARM/build-install-linux.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/crosstool/ARM/build-install-linux.sh?rev=73213&r1=73212&r2=73213&view=diff
==============================================================================
--- llvm/trunk/utils/crosstool/ARM/build-install-linux.sh (original)
+++ llvm/trunk/utils/crosstool/ARM/build-install-linux.sh Thu Jun 11 21:04:47 2009
@@ -20,6 +20,7 @@
readonly CODE_SOURCERY="${INSTALL_ROOT}/codesourcery"
readonly CODE_SOURCERY_PKG_PATH="${CODE_SOURCERY_PKG_PATH:-${HOME}/codesourcery}"
+readonly CODE_SOURCERY_HTTP="http://www.codesourcery.com/sgpp/lite/arm/portal/package1787/public"
readonly CODE_SOURCERY_PKG="arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
readonly CODE_SOURCERY_ROOT="${CODE_SOURCERY}/arm-2007q3"
readonly CODE_SOURCERY_BIN="${CODE_SOURCERY_ROOT}/bin"
@@ -110,8 +111,16 @@
# Unpack the tarball.
if [[ ! -d ${CODE_SOURCERY_ROOT} ]]; then
cd ${CODE_SOURCERY}
- runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
- tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
+ if [[ -e ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG} ]]; then
+ runCommand "Unpacking CodeSourcery in ${CODE_SOURCERY}" \
+ tar jxf ${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}
+ else
+ echo -n "CodeSourcery tarball not found in "
+ echo "${CODE_SOURCERY_PKG_PATH}/${CODE_SOURCERY_PKG}"
+ echo -n "Fix the path or download it from "
+ echo "${CODE_SOURCERY_HTTP}/${CROSS_TARGET}/${CODE_SOURCERY_PKG}"
+ exit
+ fi
else
echo "CodeSourcery install dir already exists."
fi
More information about the llvm-commits
mailing list