1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-06 08:35:26 +02:00
cdt/releng/org.eclipse.rse.releng.infocenter/setup.sh
2009-05-27 15:19:10 +00:00

75 lines
2.3 KiB
Bash
Executable file

#!/bin/sh
#*******************************************************************************
# Copyright (c) 2008, 2009 Wind River Systems, Inc.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Martin Oberhuber - initial API and implementation
#*******************************************************************************
umask 022
curdir=`pwd`
#PATH=/opt/j2sdk1.4.2_12/bin:$PATH
PATH=/opt/JDKs/amd64/jdk1.6.0_11/bin:$PATH
export PATH
if [ "$IHOME" = "" ]; then
IHOME=/home/infocenter/latest
fi
# prepare the base Eclipse installation in folder "eclipse"
ECL_DIR=$IHOME/eclipse
ep_rel=S
ep_ver=3.5M4
ep_date=200812111908
uname_s=`uname -s`
uname_m=`uname -m`
case ${uname_s}${uname_m} in
Linuxppc*) ep_arch=linux-gtk-ppc
cdt_arch=linux.ppc
;;
Linuxx86_64*) ep_arch=linux-gtk-x86_64
cdt_arch=linux.x86_64
;;
Linuxx86*|Linuxi686*) ep_arch=linux-gtk
cdt_arch=linux.x86
;;
esac
P2_no_dropins=false
if [ ! -f ${ECL_DIR}/eclipse/plugins/org.eclipse.swt_3.5.0.v3525.jar ]; then
if [ ! -d ${ECL_DIR} ]; then
mkdir -p ${ECL_DIR}
else
rm -rf ${ECL_DIR}/*
fi
cd "${ECL_DIR}"
echo "Getting Eclipse Platform SDK..."
wget "http://download.eclipse.org/eclipse/downloads/drops/${ep_rel}-${ep_ver}-${ep_date}/eclipse-platform-SDK-${ep_ver}-${ep_arch}.tar.gz"
tar xfvz eclipse-platform-SDK-${ep_ver}-${ep_arch}.tar.gz
rm eclipse-platform-SDK-${ep_ver}-${ep_arch}.tar.gz
cd "${curdir}"
fi
if [ ! -f "${ECL_DIR}/eclipse/startup.jar" ]; then
cd "${ECL_DIR}/eclipse/plugins"
if [ -h ../startup.jar ]; then
rm ../startup.jar
fi
LAUNCHER=`ls org.eclipse.equinox.launcher_*.jar | sort | tail -1`
if [ "${LAUNCHER}" != "" ]; then
echo "eclipse LAUNCHER=${LAUNCHER}"
ln -s plugins/${LAUNCHER} ../startup.jar
else
echo "Eclipse: NO startup.jar LAUNCHER FOUND!"
fi
cd "${curdir}"
fi
if [ ! -d "${ECL_DIR}/eclipse/plugins.disabled" ]; then
mkdir -p "${ECL_DIR}/eclipse/plugins.disabled"
cd "${ECL_DIR}/eclipse/plugins"
mv org.eclipse.platform.doc.user_*.jar ../plugins.disabled
cd "${curdir}"
fi