diff options
author | Raphaƫl Moll <raphael@google.com> | 2012-03-26 11:34:32 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-26 11:34:32 -0700 |
commit | 80e2f7b82c63f9b2977129249676ae00ccf7fa87 (patch) | |
tree | f083691e26fad886a8feae7e1d28ec283a8fe3be /eclipse/scripts | |
parent | f1bbd98a728a6bdc63b29283d4f7ce6f4d9a0540 (diff) | |
parent | bfe3bd7f8208a04241a7abb632899899b6087657 (diff) | |
download | sdk-80e2f7b82c63f9b2977129249676ae00ccf7fa87.zip sdk-80e2f7b82c63f9b2977129249676ae00ccf7fa87.tar.gz sdk-80e2f7b82c63f9b2977129249676ae00ccf7fa87.tar.bz2 |
Merge "Update setup_eclipse script to download CDT."
Diffstat (limited to 'eclipse/scripts')
-rwxr-xr-x | eclipse/scripts/setup_eclipse.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/eclipse/scripts/setup_eclipse.sh b/eclipse/scripts/setup_eclipse.sh index d3d597f..4154bf8 100755 --- a/eclipse/scripts/setup_eclipse.sh +++ b/eclipse/scripts/setup_eclipse.sh @@ -44,19 +44,28 @@ BASE_DIR="$1" [[ -n "$1" ]] || die "Usage: $0 <dest-dir>" -# URL for 3.5.2 RCP Linux 32 Bits. Includes GEF, WTP as needed. +# URL for Eclipse Linux RCP. DOWNLOAD_URL="http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/eclipse-rcp-helios-SR2-linux-gtk-x86_64.tar.gz" +# URL for CDT +CDT_DOWNLOAD_URL="http://download.eclipse.org/tools/cdt/releases/helios/dist/cdt-master-7.0.2.zip" + BIN="$BASE_DIR/eclipse/eclipse" # path to installed binary TARGZ="$BASE_DIR/${DOWNLOAD_URL##*/}" # base dir + filename of the download URL +CDTZIP="$BASE_DIR/${CDT_DOWNLOAD_URL##*/}" if [[ ! -f "$BIN" ]]; then echo "Downloading and installing Eclipse in $BASE_DIR." mkdir -p "$BASE_DIR" + wget --continue $V --output-document="$TARGZ" "$DOWNLOAD_URL" echo "Unpacking $TARGZ" (cd "$BASE_DIR" && tar xzf "$TARGZ") + wget --continue $V --output-document="$CDTZIP" "$CDT_DOWNLOAD_URL" + echo "Unpacking $CDTZIP" + (cd "$BASE_DIR/eclipse" && unzip -o "$CDTZIP") + echo echo "*** WARNING: To setup Eclipse correctly, it must be ran at least once manually" echo "*** Eclipse will now start." |