17 # |
17 # |
18 if [ ! $HELIUM_HOME ] ; then |
18 if [ ! $HELIUM_HOME ] ; then |
19 export HELIUM_HOME=$(dirname $(readlink /proc/$$/fd/255)) |
19 export HELIUM_HOME=$(dirname $(readlink /proc/$$/fd/255)) |
20 fi |
20 fi |
21 |
21 |
22 # For nokia specific enviroment configurations. |
22 export LANG="en_US.UTF-8" |
23 if [ -f $HELIUM_HOME/extensions/nokia/env.sh ] ; then |
23 export ANT_ARGS="-lib $HELIUM_HOME/extensions/nokia/external/antlibs2 -lib $HELIUM_HOME/external/antlibs2 -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.diamonds.ant.HeliumListener -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener" |
24 . $HELIUM_HOME/extensions/nokia/env.sh |
|
25 fi |
|
26 |
24 |
27 export LANG="en_US.UTF-8" |
25 TEMP_PYTHONPATH="$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/external/python/lib/auto:$HELIUM_HOME/tools/common/python/scripts:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib" |
28 export ANT_ARGS="-lib $HELIUM_HOME/extensions/nokia/external/antlibs -lib $HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/bin -lib $HELIUM_HOME/external/helium-antlib/bin -lib $HELIUM_HOME/external/antlibs -lib $HELIUM_HOME/tools/common/java/lib -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.diamonds.ant.HeliumListener -listener com.nokia.helium.logger.ant.listener.StatusAndLogListener -listener com.nokia.helium.core.ant.listener.TargetTimesLogGeneratorListener" |
|
29 |
|
30 PYTHON_VERSION=`python -c "import sys; print sys.version[:3]"` |
|
31 PYTHON_VERSION2=$PYTHON_VERSION$HOSTTYPE |
|
32 PYTHONLIB=$HELIUM_HOME/external/python/lib/linux/$PYTHON_VERSION2 |
|
33 |
|
34 TEMP_PYTHONPATH="$PYTHONLIB:$HELIUM_HOME/external/python/lib/common:$HELIUM_HOME/external/helium-antlib/python/pythoncore/lib:$HELIUM_HOME/tools/common/python/scripts:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib:$HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/python:$HELIUM_HOME/extensions/nokia/external/helium-nokia-antlib/python/pythonnokia/lib" |
|
35 |
26 |
36 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages" |
27 TEMP_PERL5LIB="$HELIUM_HOME/tools/common/packages" |
37 if [ ! $PERL5LIB ] ; then |
28 if [ ! $PERL5LIB ] ; then |
38 PERL5LIB=$TEMP_PERL5LIB |
29 PERL5LIB=$TEMP_PERL5LIB |
39 else |
30 else |
47 export COMPUTERNAME=$HOSTNAME |
38 export COMPUTERNAME=$HOSTNAME |
48 else |
39 else |
49 export COMPUTERNAME=$(hostname) |
40 export COMPUTERNAME=$(hostname) |
50 fi |
41 fi |
51 |
42 |
52 CWD=`pwd` |
|
53 |
|
54 if [ ! -e "$PYTHONLIB" ] ; then |
|
55 mkdir $PYTHONLIB |
|
56 cp $HELIUM_HOME/external/python/lib/common/site.py $PYTHONLIB |
|
57 fi |
|
58 |
|
59 export PYTHONPATH=$HELIUM_HOME/external/python/lib/common/setuptools-0.6c5-py2.5.egg |
|
60 |
|
61 if [ ! -e "$PYTHONLIB/4Suite_XML-1.0.2.egg" ] ; then |
|
62 cp $HELIUM_HOME/external/python/lib/linux/easy-install.pth $PYTHONLIB |
|
63 tar xvfz $HELIUM_HOME/external/python/lib/linux/4Suite-XML-1.0.2.tar.gz -C $PYTHONLIB > /dev/null |
|
64 cd $PYTHONLIB/4Suite-XML-1.0.2 |
|
65 python setup.py bdist_egg > /dev/null |
|
66 mv dist/*.egg $PYTHONLIB/4Suite_XML-1.0.2.egg |
|
67 fi |
|
68 |
|
69 if [ ! -e "$PYTHONLIB/lxml-1.3.6.egg" ] ; then |
|
70 cp $HELIUM_HOME/external/python/lib/linux/easy-install.pth $PYTHONLIB |
|
71 tar xvfz $HELIUM_HOME/external/python/lib/linux/lxml-1.3.6.tgz -C $PYTHONLIB > /dev/null |
|
72 cd $PYTHONLIB/lxml-1.3.6 |
|
73 python setup.py bdist_egg > /dev/null |
|
74 mv dist/*.egg $PYTHONLIB/lxml-1.3.6.egg |
|
75 fi |
|
76 |
|
77 if [ ! -e "$PYTHONLIB/PyXML-0.8.4.egg" ] ; then |
|
78 cp $HELIUM_HOME/external/python/lib/linux/easy-install.pth $PYTHONLIB |
|
79 tar xvfz $HELIUM_HOME/external/python/lib/linux/PyXML-0.8.4.tar.gz -C $PYTHONLIB > /dev/null |
|
80 cd $PYTHONLIB/PyXML-0.8.4 |
|
81 python setup.py bdist > /dev/null |
|
82 mv build/lib* $PYTHONLIB/PyXML-0.8.4.egg |
|
83 fi |
|
84 |
|
85 cd $CWD |
|
86 |
|
87 if [ ! $PYTHONPATH ] ; then |
43 if [ ! $PYTHONPATH ] ; then |
88 export PYTHONPATH=$TEMP_PYTHONPATH |
44 export PYTHONPATH=$TEMP_PYTHONPATH |
89 else |
45 else |
90 export PYTHONPATH="$PYTHONPATH:$TEMP_PYTHONPATH" |
46 export PYTHONPATH="$PYTHONPATH:$TEMP_PYTHONPATH" |
91 fi |
47 fi |
92 |
48 |
93 TEMP_JYTHONPATH="$HELIUM_HOME/external/python/lib/2.5/jython-2.5-py2.5.egg:$PYTHONPATH" |
49 TEMP_JYTHONPATH="$HELIUM_HOME/external/python/lib/2.5/jython-2.5-py2.5.egg:$PYTHONPATH" |
94 |
50 |
|
51 . $HELIUM_HOME/external/python/configure_jython.sh |
95 if [ ! $JYTHONPATH ] ; then |
52 if [ ! $JYTHONPATH ] ; then |
96 export JYTHONPATH=$TEMP_JYTHONPATH |
53 export JYTHONPATH="$TEMP_JYTHONPATH:$HLM_EGG_JYTHONPATH" |
97 else |
54 else |
98 export JYTHONPATH="$JYTHONPATH:$TEMP_JYTHONPATH" |
55 export JYTHONPATH="$JYTHONPATH:$TEMP_JYTHONPATH:$HLM_EGG_JYTHONPATH" |
99 fi |
56 fi |
100 |
57 |
101 export USERNAME=$USER |
58 export USERNAME=$USER |
102 export SYMSEE_VERSION="not_in_use" |
59 export SYMSEE_VERSION="not_in_use" |
103 export PID=$$ |
60 export PID=$$ |
114 |
71 |
115 if [ ! $EPOCROOT ]; then |
72 if [ ! $EPOCROOT ]; then |
116 export EPOCROOT="/" |
73 export EPOCROOT="/" |
117 fi |
74 fi |
118 |
75 |
119 if [ ! -f "$HELIUM_HOME/external/helium-antlib/bin/helium-checktools.jar" ] ; then |
76 if [ ! -f "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" ] ; then |
120 echo helium-checktools.jar not found |
77 echo A required jar '$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar' is missing. Verification of basic tools used by Helium cannot be done. Contact Helium support. |
|
78 exit 1 |
121 else |
79 else |
122 java -cp "$HELIUM_HOME/external/helium-antlib/bin/helium-checktools.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "$HELIUM_HOME/config/helium.basic.tools.config" |
80 java -cp "$HELIUM_HOME/external/antlibs2/helium-checktools-1.0.jar" com.nokia.helium.checktools.HeliumToolsCheckerMain -config "$HELIUM_HOME/config/helium.basic.tools.config" |
123 |
81 |
124 if [ $? -eq 0 ] ; then |
82 if [ $? -eq 0 ] ; then |
125 exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $* |
83 exec ant -Dpython.cachedir=$PYTHON_CACHEDIR -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH -Dcache.dir=$HELIUM_CACHE_DIR $* |
126 else |
84 else |
127 echo Build aborted with error |
85 echo Build aborted with error |