buildframework/helium/hlm.sh
changeset 1 be27ed110b50
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     1 #!/bin/csh
       
     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 if (`alias module` != "") then
       
    20     module load "java/1.6.0"
       
    21     module load "tww/ant/1.7.1"
       
    22     module load "tww/python/2.5.2"
       
    23     module load "tww/p7zip/4.58"
       
    24     module load "rvct/2.2_616"
       
    25     module load "tww/graphviz/2.12"
       
    26     module load mercurial
       
    27 endif
       
    28 
       
    29 setenv LANG en_US.UTF-8
       
    30 
       
    31 if (! $?HELIUM_HOME ) then
       
    32     setenv HELIUM_HOME `pwd`
       
    33 endif
       
    34 
       
    35 setenv JEP_HOME $HELIUM_HOME/external/jep_1.6_2.5
       
    36 
       
    37 
       
    38 setenv 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 -lib $JEP_HOME -logger com.nokia.ant.HeliumLogger -Dant.executor.class=com.nokia.helium.core.ant.HeliumExecutor -listener com.nokia.helium.diamonds.ant.HeliumListener"
       
    39 
       
    40 setenv LD_LIBRARY_PATH $JEP_HOME
       
    41 if (-e /nokia/apps/tww/@sys/python252/lib/python2.5/config/libpython2.5.so) then
       
    42     setenv LD_PRELOAD /nokia/apps/tww/@sys/python252/lib/python2.5/config/libpython2.5.so
       
    43 else
       
    44     setenv LD_PRELOAD /usr/lib/libpython2.5.so.1
       
    45 endif
       
    46 
       
    47 setenv PYTHONPATH $HELIUM_HOME/external/python/lib/2.5/linux:$HELIUM_HOME/tools/common/python/lib:$HELIUM_HOME/extensions/nokia/external/python/lib/2.5:$HELIUM_HOME/extensions/nokia/tools/common/python/lib
       
    48 setenv JYTHONPATH "$HELIUM_HOME/external/python/lib/2.5/jython-2.5-py2.5.egg:$HELIUM_HOME/external/python/lib/2.5:$PYTHONPATH"
       
    49 setenv PERL5LIB $HELIUM_HOME/tools/common/packages
       
    50 
       
    51 setenv USERNAME $USER
       
    52 setenv TEMP /tmp/$USER
       
    53 if ($?HOST) then
       
    54     setenv COMPUTERNAME $HOST
       
    55 else
       
    56     setenv COMPUTERNAME `hostname`
       
    57 endif
       
    58 
       
    59 if (! $?EPOCROOT) then
       
    60     setenv EPOCROOT /
       
    61 endif
       
    62 
       
    63 setenv SYMSEE_VERSION not_in_use
       
    64 setenv PID $$
       
    65 setenv HELIUM_CACHE_DIR $TEMP/helium/$USER
       
    66 setenv ANT_OPTS "-Dlog4j.configuration=com/nokia/log4j.xml -Dlog4j.cache.dir=$HELIUM_CACHE_DIR"
       
    67 ant -Dpython.cachedir=$HELIUM_HOME/temp -Dhelium.dir=$HELIUM_HOME -Dpython.path=$PYTHONPATH $*