cdt/cdt_6_0_x/org.eclipse.cdt.releng/build.sh
author cawthron
Wed, 04 Nov 2009 15:12:39 -0600
branchRCL_2_4
changeset 107 50bdf9ce2ff9
parent 37 c2bce6dd59e7
permissions -rw-r--r--
add branch RCL_2_4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     1
#*******************************************************************************
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     2
# Copyright (c) 2005, 2008 IBM Corporation and others.
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     3
# All rights reserved. This program and the accompanying materials
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     4
# are made available under the terms of the Eclipse Public License v1.0
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     5
# which accompanies this distribution, and is available at
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     6
# http://www.eclipse.org/legal/epl-v10.html
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     7
#
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     8
# Contributors:
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     9
#     IBM Corporation - initial API and implementation
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    10
#*******************************************************************************
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    11
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    12
# The CDT build script, set up the environment to run the build.xml ant script
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    13
# We are running on build.eclipse.org
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    14
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    15
# export display for running the tests
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    16
export DISPLAY=:1
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    17
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    18
# set up to use the Java 5 JRE
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    19
export PATH=/opt/public/common/ibm-java2-ppc-50/bin:$PATH
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    20
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    21
# make sure we're in the releng project dir 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    22
cd `dirname $0`
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    23
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    24
# make sure the umask doesn't allow for group execute permissions\
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    25
# TODO not sure we really need this any more
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    26
umask 0022
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    27
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    28
# Checkout basebuilder to run the build
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    29
mkdir -p tools
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    30
cd tools
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    31
cvs -d:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse \
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    32
	checkout -r R35_RC4 org.eclipse.releng.basebuilder
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    33
cd ..
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    34
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    35
# Let's go!
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    36
java $CDT_BUILD_VMARGS -jar tools/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar \
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    37
	-ws gtk -arch ppc -os linux -application org.eclipse.ant.core.antRunner $*
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    38
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    39
# Copy the build.log to where the latest build is
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    40
cp /opt/public/download-staging.priv/tools/cdt/releng/build.log /home/www/tools/cdt/builds/6.0.0/latest