2006-09-29 22:28:05 +00:00
|
|
|
#!/bin/sh
|
2006-11-09 12:34:44 +00:00
|
|
|
#*******************************************************************************
|
|
|
|
# Copyright (c) 2006 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
|
|
|
|
#*******************************************************************************
|
2006-09-29 22:28:05 +00:00
|
|
|
#
|
|
|
|
# setup.sh : Set up an environment for building TM / RSE
|
|
|
|
# Works on build.eclipse.org -- may need to be adjusted
|
|
|
|
# for other hosts.
|
|
|
|
#
|
2007-01-17 19:17:14 +00:00
|
|
|
# This must be run in $HOME/ws2 in order for the mkTestUpdateSite.sh
|
2006-09-29 22:28:05 +00:00
|
|
|
# script to find the published packages
|
2006-09-29 22:42:15 +00:00
|
|
|
#
|
|
|
|
# Bootstrapping: Get this script by
|
|
|
|
# wget -O setup.sh "http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/releng/org.eclipse.rse.build/setup.sh?rev=HEAD&cvsroot=DSDP_Project&content-type=text/plain"
|
|
|
|
# sh setup.sh
|
|
|
|
# ./doit_ibuild.sh
|
|
|
|
# cd testUpdates/bin
|
|
|
|
# mkTestUpdates.sh
|
2006-09-29 22:28:05 +00:00
|
|
|
|
|
|
|
curdir=`pwd`
|
|
|
|
|
|
|
|
# prepare the base Eclipse installation in folder "eclipse"
|
2007-02-19 20:53:24 +00:00
|
|
|
if [ ! -f eclipse/plugins/org.eclipse.core.resources_3.3.0.v20070202.jar ]; then
|
2007-02-19 21:52:44 +00:00
|
|
|
## Eclipse Platform 3.3M5
|
|
|
|
#wget "http://download.eclipse.org/eclipse/downloads/drops/S-3.3M5-200702091006/eclipse-platform-3.3M5-linux-gtk-ppc.tar.gz"
|
|
|
|
#tar xfvz eclipse-platform-3.3M5-linux-gtk-ppc.tar.gz
|
|
|
|
#rm eclipse-platform-3.3M5-linux-gtk-ppc.tar.gz
|
|
|
|
# Eclipse SDK 3.3M5: Need the SDK because EMF needs JDT (somehow)
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Getting Eclipse SDK..."
|
2007-02-19 21:52:44 +00:00
|
|
|
wget "http://download.eclipse.org/eclipse/downloads/drops/S-3.3M5-200702091006/eclipse-SDK-3.3M5-linux-gtk-ppc.tar.gz"
|
|
|
|
tar xfvz eclipse-SDK-3.3M5-linux-gtk-ppc.tar.gz
|
|
|
|
rm eclipse-SDK-3.3M5-linux-gtk-ppc.tar.gz
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
2007-02-28 10:06:37 +00:00
|
|
|
if [ ! -f eclipse/startup.jar ]; then
|
2007-02-27 22:05:43 +00:00
|
|
|
curdir2=`pwd`
|
|
|
|
cd eclipse/plugins
|
2007-02-28 10:06:37 +00:00
|
|
|
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
|
2007-02-27 22:05:43 +00:00
|
|
|
cd ${curdir2}
|
|
|
|
fi
|
2007-02-19 20:53:24 +00:00
|
|
|
if [ ! -f eclipse/plugins/org.eclipse.cdt.core_4.0.0.200702161600.jar ]; then
|
2007-01-17 19:17:14 +00:00
|
|
|
# CDT 4.0.0 Runtime
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Getting CDT Runtime..."
|
2007-02-19 20:53:24 +00:00
|
|
|
wget "http://download.eclipse.org/tools/cdt/releases/europa/dist/4.0.0M5/cdt-4.0.0-M5-linux.ppc.tar.gz"
|
|
|
|
tar xfvz cdt-4.0.0-M5-linux.ppc.tar.gz
|
|
|
|
rm cdt-4.0.0-M5-linux.ppc.tar.gz
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
2007-02-19 20:53:24 +00:00
|
|
|
if [ ! -f eclipse/plugins/org.eclipse.emf_2.2.0.v200702121527.jar ]; then
|
2007-01-17 19:17:14 +00:00
|
|
|
# EMF 2.3.0 Runtime
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Getting EMF Runtime..."
|
2007-02-19 20:53:24 +00:00
|
|
|
wget "http://download.eclipse.org//modeling/emf/emf/downloads/drops/2.3.0/S200702121527/emf-sdo-runtime-2.3.0M5.zip"
|
|
|
|
unzip -o emf-sdo-runtime-2.3.0M5.zip
|
|
|
|
rm emf-sdo-runtime-2.3.0M5.zip
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
2007-01-17 19:38:27 +00:00
|
|
|
if [ ! -f eclipse/plugins/org.junit_3.8.2/junit.jar ]; then
|
|
|
|
# Eclipse Test Framework
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Getting Eclipse Test Framework..."
|
2007-02-19 20:53:24 +00:00
|
|
|
wget "http://download.eclipse.org/eclipse/downloads/drops/S-3.3M5-200702091006/eclipse-test-framework-3.3M5.zip"
|
|
|
|
unzip -o eclipse-test-framework-3.3M5.zip
|
|
|
|
rm eclipse-test-framework-3.3M5.zip
|
2007-01-17 19:38:27 +00:00
|
|
|
fi
|
2006-09-29 22:28:05 +00:00
|
|
|
|
|
|
|
# checkout the basebuilder
|
2007-03-22 12:23:05 +00:00
|
|
|
#baseBuilderTag=M5_33
|
|
|
|
#if [ ! -f org.eclipse.releng.basebuilder/plugins/org.eclipse.update.core_3.2.100.200702211317.jar ]; then
|
|
|
|
baseBuilderTag=v20070321
|
|
|
|
if [ ! -f org.eclipse.releng.basebuilder/plugins/org.eclipse.jdt.core.contrib.converter_1.1.2.200703120901.jar ]; then
|
2006-09-29 22:28:05 +00:00
|
|
|
if [ -d org.eclipse.releng.basebuilder ]; then
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Re-getting basebuilder from CVS..."
|
2006-09-29 22:28:05 +00:00
|
|
|
rm -rf org.eclipse.releng.basebuilder
|
2007-02-27 22:05:43 +00:00
|
|
|
else
|
|
|
|
echo "Getting basebuilder from CVS..."
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
2007-03-22 12:23:05 +00:00
|
|
|
cvs -Q -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse co -r ${baseBuilderTag} org.eclipse.releng.basebuilder
|
2007-02-28 10:06:37 +00:00
|
|
|
fi
|
|
|
|
if [ ! -f org.eclipse.releng.basebuilder/startup.jar ]; then
|
|
|
|
curdir2=`pwd`
|
|
|
|
cd org.eclipse.releng.basebuilder/plugins
|
|
|
|
if [ -h ../startup.jar ]; then
|
|
|
|
rm ../startup.jar
|
|
|
|
fi
|
|
|
|
LAUNCHER=`ls org.eclipse.equinox.launcher*.jar | sort | tail -1`
|
|
|
|
if [ "${LAUNCHER}" != "" ]; then
|
|
|
|
echo "basebuilder: LAUNCHER=${LAUNCHER}"
|
|
|
|
ln -s plugins/${LAUNCHER} ../startup.jar
|
|
|
|
else
|
|
|
|
echo "basebuilder: NO LAUNCHER FOUND"
|
|
|
|
fi
|
|
|
|
cd ${curdir2}
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# checkout the RSE builder
|
|
|
|
if [ -f org.eclipse.rse.build/CVS/Entries ]; then
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Updating org.eclipse.rse.build from CVS"
|
2006-09-29 22:28:05 +00:00
|
|
|
cd org.eclipse.rse.build
|
2007-02-27 22:05:43 +00:00
|
|
|
cvs -q update -dPR
|
2006-09-29 22:28:05 +00:00
|
|
|
cd ..
|
|
|
|
else
|
|
|
|
if [ -d org.eclipse.rse.build ]; then
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Re-getting org.eclipse.rse.build from CVS"
|
2006-09-29 22:28:05 +00:00
|
|
|
rm -rf org.eclipse.rse.build
|
2007-02-27 22:05:43 +00:00
|
|
|
else
|
|
|
|
echo "Getting org.eclipse.rse.build from CVS"
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
2007-02-27 22:05:43 +00:00
|
|
|
cvs -q -d :pserver:anonymous@dev.eclipse.org:/cvsroot/dsdp co -Rd org.eclipse.rse.build org.eclipse.tm.rse/releng/org.eclipse.rse.build
|
2006-09-29 22:28:05 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# prepare directories for the build
|
2007-02-27 22:05:43 +00:00
|
|
|
echo "Preparing directories and symbolic links..."
|
2006-09-29 22:28:05 +00:00
|
|
|
if [ ! -d working/package ]; then
|
|
|
|
mkdir -p working/package
|
|
|
|
fi
|
|
|
|
if [ ! -d working/build ]; then
|
|
|
|
mkdir -p working/build
|
|
|
|
fi
|
|
|
|
if [ ! -e publish ]; then
|
|
|
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/downloads/drops publish
|
|
|
|
fi
|
|
|
|
if [ ! -e testUpdates ]; then
|
|
|
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/testUpdates testUpdates
|
|
|
|
fi
|
|
|
|
if [ ! -e udpates ]; then
|
|
|
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/updates updates
|
|
|
|
fi
|
2007-01-17 19:17:14 +00:00
|
|
|
if [ ! -e staging ]; then
|
|
|
|
ln -s /home/data/httpd/download-staging.priv/dsdp/tm staging
|
|
|
|
fi
|
2006-09-29 22:28:05 +00:00
|
|
|
|
|
|
|
# create symlinks as needed
|
2007-02-28 10:23:19 +00:00
|
|
|
ln -s org.eclipse.rse.build/bin/doit_irsbuild.sh .
|
2006-09-29 22:28:05 +00:00
|
|
|
ln -s org.eclipse.rse.build/bin/doit_nightly.sh .
|
2007-02-28 10:23:19 +00:00
|
|
|
chmod a+x doit_irsbuild.sh doit_nightly.sh
|
2006-09-29 22:28:05 +00:00
|
|
|
cd org.eclipse.rse.build
|
|
|
|
chmod a+x build.pl build.rb go.sh nightly.sh
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo "Your build environment is now created."
|
|
|
|
echo ""
|
2007-02-28 10:23:19 +00:00
|
|
|
echo "Run \"./doit_irsbuild.sh I\" to create an I-build."
|
2006-09-29 22:28:05 +00:00
|
|
|
echo ""
|
|
|
|
echo "Test the testUpdates, then copy them to updates:"
|
|
|
|
echo "cd updates"
|
|
|
|
echo "rm -rf plugins features"
|
|
|
|
echo "cp -R ../testUpdates/plugins ."
|
|
|
|
echo "cp -R ../testUpdates/features ."
|
|
|
|
echo "cd bin"
|
2007-02-28 10:23:19 +00:00
|
|
|
echo "cvs update"
|
2006-09-29 22:28:05 +00:00
|
|
|
echo "./mkTestUpdates.sh"
|
|
|
|
|
|
|
|
exit 0
|