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