buildframework/helium/external/helium-antlib/builder/bld
author Daniel Jacobs <daniel.jacobs@nokia.com>
Mon, 17 May 2010 11:07:30 +0100
changeset 554 e7dd8533063f
parent 217 0f5e3a7fb6af
permissions -rw-r--r--
Version 2.14.0 (candidate one).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
217
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     1
#!/bin/bash
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     2
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     3
#
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     4
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     5
# All rights reserved.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     6
# This component and the accompanying materials are made available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     7
# under the terms of the License "Eclipse Public License v1.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     8
# which accompanies this distribution, and is available
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
     9
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    10
#
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    11
# Initial Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    12
# Nokia Corporation - initial contribution.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    13
#
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    14
# Contributors:
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    15
#
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    16
# Description: 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    17
#
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    18
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    19
# loading the system wide settings from ~/.bashrc
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    20
if [ -f ~/.bashrc ] ; then
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    21
	. ~/.bashrc
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    22
fi
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    23
MODULE_VERSION="$(module --version 2>&1)"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    24
if [ "$?" == "0" ] ; then
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    25
    module load "java/1.6.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    26
    module load "tww/ant/1.7.0"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    27
    module load mercurial
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    28
    module load tww/python/2.6.4
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    29
    module load "tww/p7zip/4.58"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    30
    module load ccm
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    31
fi
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    32
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    33
export LANG="en_US.UTF-8"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    34
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    35
if [ ! $EPOCROOT ]; then
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    36
    export EPOCROOT="/"
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    37
fi 
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    38
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    39
BUILDER_HOME=$(cd ${0%/*} && pwd -P)
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    40
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    41
CWD=`pwd`
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    42
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    43
if [ ! -e "$BUILDER_HOME/../deps/amara/4Suite_XML/1.0.2/4Suite_XML-1.0.2.py2.6-unix.egg" ] ; then
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    44
    cd $BUILDER_HOME/../deps/amara/4Suite_XML/1.0.2
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    45
    tar xvfz 4Suite-XML-1.0.2.tar.gz > /dev/null
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    46
    cd 4Suite-XML-1.0.2
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    47
    python setup.py bdist_egg > /dev/null
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    48
    mv dist/*.egg ../4Suite_XML-1.0.2.py2.6-unix.egg
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    49
fi
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    50
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    51
cd $CWD
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    52
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    53
export PYTHONPATH=$BUILDER_HOME/python/lib/setuptools-0.6c11-py2.5.egg
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    54
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    55
if [ ! -e "$BUILDER_HOME/../deps/lxml/lxml/2.2.1/lxml-2.2.1.py2.6-unix.egg" ] ; then
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    56
    cd $BUILDER_HOME/../deps/lxml/lxml/2.2.1
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    57
    tar xvfz lxml-1.3.6.tgz > /dev/null
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    58
    cd lxml-1.3.6
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    59
    python setup.py bdist_egg > /dev/null
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    60
    mv dist/*.egg ../lxml-2.2.1.py2.6-unix.egg
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    61
fi
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    62
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    63
cd $CWD
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    64
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    65
export USERNAME=$USER
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    66
export PATH=$PATH:.
0f5e3a7fb6af helium_8.0-r15308
wbernard
parents:
diff changeset
    67
ant -lib $BUILDER_HOME/antlibs $*