14 # Contributors: |
14 # Contributors: |
15 # |
15 # |
16 # Description: |
16 # Description: |
17 # |
17 # |
18 |
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" |
19 export LANG="en_US.UTF-8" |
36 |
20 |
37 if [ ! $EPOCROOT ]; then |
21 if [ ! $EPOCROOT ]; then |
38 export EPOCROOT="/" |
22 export EPOCROOT="/" |
39 fi |
23 fi |
40 |
24 |
41 BUILDER_HOME=$(cd ${0%/*} && pwd -P) |
25 BUILDER_HOME=$(cd ${0%/*} && pwd -P) |
42 |
26 |
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 |
27 export JYTHONPATH=$BUILDER_HOME/antlibs/jython-2.5-py2.5.egg |
68 export USERNAME=$USER |
28 export USERNAME=$USER |
69 export PATH=$PATH:. |
29 export PATH=$PATH:. |
70 ant -lib $BUILDER_HOME/antlibs $* |
30 ant -lib $BUILDER_HOME/antlibs $* |