2006-06-27 15:49:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#nightly build for RSE - to be executed on build.eclipse.org
|
2006-08-18 14:30:48 +00:00
|
|
|
#
|
|
|
|
# Prerequisites:
|
|
|
|
# - Eclipse 3.2 installed or linked from ../eclipse
|
|
|
|
# - org.eclipse.releng.basebuilder checked out to ../org.eclipse.releng.basebuilder
|
|
|
|
#
|
2006-06-27 15:49:08 +00:00
|
|
|
#author: martin oberhuber
|
|
|
|
|
|
|
|
curdir=`pwd`
|
|
|
|
cd `dirname $0`
|
|
|
|
mydir=`pwd`
|
|
|
|
|
|
|
|
# pathes: see build.rb for reference
|
|
|
|
cd "$mydir/../eclipse" ; eclipse=`pwd`
|
2006-08-18 14:30:48 +00:00
|
|
|
cd "$mydir/../org.eclipse.releng.basebuilder" ; basebuilder=`pwd`
|
2006-06-27 15:49:08 +00:00
|
|
|
cd "$mydir/../working" ; working=`pwd`
|
|
|
|
cd "$mydir/../publish" ; publishDirectory=`pwd`
|
|
|
|
cd "$mydir" ; builder=`pwd`
|
|
|
|
|
|
|
|
# Find the base build scripts: genericTargets.xml and build.xml
|
2006-08-18 14:30:48 +00:00
|
|
|
pdeBuild="${basebuilder}/plugins/org.eclipse.pde.build"
|
2006-06-27 15:49:08 +00:00
|
|
|
buildDirectory="${working}/build"
|
|
|
|
packageDirectory="${working}/package"
|
|
|
|
|
|
|
|
tag="HEAD"
|
|
|
|
buildType="N"
|
|
|
|
timestamp=`date +'%Y%m%d-%H%M'`
|
|
|
|
buildId="${buildType}${timestamp}"
|
|
|
|
rm -rf "${buildDirectory}"
|
|
|
|
|
2006-08-18 14:30:48 +00:00
|
|
|
command="java -cp ${basebuilder}/startup.jar org.eclipse.core.launcher.Main "
|
2006-06-27 15:49:08 +00:00
|
|
|
command="$command -application org.eclipse.ant.core.antRunner "
|
2006-08-18 14:30:48 +00:00
|
|
|
command="$command -buildfile ${pdeBuild}/scripts/build.xml "
|
2006-06-27 15:49:08 +00:00
|
|
|
command="$command -DbuildDirectory=${buildDirectory} "
|
|
|
|
command="$command -DpackageDirectory=${packageDirectory} "
|
|
|
|
command="$command -DpublishDirectory=${publishDirectory} "
|
|
|
|
command="$command -Dbuilder=${builder} "
|
|
|
|
command="$command -DbaseLocation=${eclipse} "
|
|
|
|
command="$command -DbuildType=${buildType} "
|
|
|
|
command="$command -DbuildId=${buildId} "
|
|
|
|
command="$command -DmapVersionTag=${tag} "
|
|
|
|
command="$command -DdoPublish=true "
|
2006-07-25 17:07:26 +00:00
|
|
|
command="$command -DforceContextQualifier=${buildId} "
|
2006-06-27 15:49:08 +00:00
|
|
|
#command="$command postBuild "
|
|
|
|
|
|
|
|
echo "$command"
|
|
|
|
exec $command
|