217
|
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 |
fi
|
|
32 |
|
|
33 |
export LANG="en_US.UTF-8"
|
|
34 |
|
|
35 |
if [ ! $EPOCROOT ]; then
|
|
36 |
export EPOCROOT="/"
|
|
37 |
fi
|
|
38 |
|
|
39 |
BUILDER_HOME=$(cd ${0%/*} && pwd -P)
|
|
40 |
|
|
41 |
CWD=`pwd`
|
|
42 |
|
|
43 |
if [ ! -e "$BUILDER_HOME/../deps/amara/4Suite_XML/1.0.2/4Suite_XML-1.0.2.py2.6-unix.egg" ] ; then
|
|
44 |
cd $BUILDER_HOME/../deps/amara/4Suite_XML/1.0.2
|
|
45 |
tar xvfz 4Suite-XML-1.0.2.tar.gz > /dev/null
|
|
46 |
cd 4Suite-XML-1.0.2
|
|
47 |
python setup.py bdist_egg > /dev/null
|
|
48 |
mv dist/*.egg ../4Suite_XML-1.0.2.py2.6-unix.egg
|
|
49 |
fi
|
|
50 |
|
|
51 |
cd $CWD
|
|
52 |
|
|
53 |
export PYTHONPATH=$BUILDER_HOME/python/lib/setuptools-0.6c11-py2.5.egg
|
|
54 |
|
|
55 |
if [ ! -e "$BUILDER_HOME/../deps/lxml/lxml/2.2.1/lxml-2.2.1.py2.6-unix.egg" ] ; then
|
|
56 |
cd $BUILDER_HOME/../deps/lxml/lxml/2.2.1
|
|
57 |
tar xvfz lxml-1.3.6.tgz > /dev/null
|
|
58 |
cd lxml-1.3.6
|
|
59 |
python setup.py bdist_egg > /dev/null
|
|
60 |
mv dist/*.egg ../lxml-2.2.1.py2.6-unix.egg
|
|
61 |
fi
|
|
62 |
|
|
63 |
cd $CWD
|
|
64 |
|
|
65 |
export USERNAME=$USER
|
|
66 |
export PATH=$PATH:.
|
|
67 |
ant -lib $BUILDER_HOME/antlibs $*
|