| #!/bin/sh |
| # executes a build of the whole project and all active tests |
| # see: http://wiki.eclipse.org/SMILA/Documentation/HowTo/Howto_build_a_SMILA-Distribution |
| |
| # set this to the location of your working copy of the SMILA source code (default is ok, usually |
| SMILA_HOME=$PWD/.. |
| |
| # set this to the location of a Eclipse Classic 4.4.2 SDK + matching delta pack |
| ECLIPSE_HOME=/usr/local/eclipse-4.4.2 |
| |
| # make sure that the arch setting matches the used JDK |
| ARCH="-Dos=linux -Dws=gtk -Darch=x86_64" |
| JAVA_HOME=/usr/local/jdk1.7.0_75 |
| |
| ANT_HOME=/usr/local/apache-ant-1.7.0 |
| BUILDLIB_DIR=$HOME/SMILA/3rd_party_sw/lib |
| |
| # set to location of libraries needed for build |
| # comment out, if your lib directory is in trunk |
| libDir="-Dlib.dir=$BUILDLIB_DIR" |
| |
| # usually there is no need to change the following lines |
| buildDir=-DbuildDirectory=${SMILA_HOME}/smila.build |
| builder=-Dbuilder=${SMILA_HOME}/SMILA.builder |
| eclipseHome=-Declipse.home="${ECLIPSE_HOME}" |
| testJava=-Dtest.java.home="${JAVA_HOME}" |
| |
| antTarget=$1 |
| logfile=log.${antTarget}.txt |
| |
| date | tee ${logfile} |
| |
| PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH |
| |
| export JAVA_HOME ANT_HOME PATH |
| |
| exec ant -f make.xml ${buildDir} ${eclipseHome} ${builder} ${ARCH} ${testJava} ${buildOpts} ${configHome} ${libDir} $* | tee -a ${logfile} |