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