Mercurial > hg > may
annotate bin/yetilab @ 121:789da8e322e1
Guess the architecture, and minor fixes
author | Chris Cannam |
---|---|
date | Thu, 18 Apr 2013 17:03:53 +0100 |
parents | 44d745823a75 |
children | e65bdec6470e |
rev | line source |
---|---|
Chris@68 | 1 #!/bin/sh |
Chris@116 | 2 |
Chris@121 | 3 ARCH=unknown |
Chris@121 | 4 |
Chris@121 | 5 case `uname -a` in |
Chris@121 | 6 Linux*x86_64*) ARCH=linux64;; |
Chris@121 | 7 Linux*) ARCH=linux32;; |
Chris@121 | 8 Darwin*) ARCH=osx;; |
Chris@121 | 9 CYG*) ARCH=win32;; |
Chris@121 | 10 MINGW*) ARCH=win32;; |
Chris@121 | 11 esac |
Chris@121 | 12 |
Chris@121 | 13 if [ "$ARCH" == "unknown" ]; then |
Chris@121 | 14 echo "Failed to guess architecture for native libraries, sorry!" 1>&2 |
Chris@121 | 15 exit 2 |
Chris@121 | 16 fi |
Chris@116 | 17 |
Chris@116 | 18 YLDIR=`dirname $0`/.. |
Chris@116 | 19 |
Chris@116 | 20 EXTDIR=$YLDIR/ext |
Chris@116 | 21 JARDIR=$EXTDIR/jar |
Chris@116 | 22 SODIR=$EXTDIR/native/$ARCH |
Chris@116 | 23 |
Chris@116 | 24 YETI_LIBDIR=${YETI_LIBDIR:=$YLDIR/../yeti} |
Chris@69 | 25 if [ ! -d "$YETI_LIBDIR" ]; then |
Chris@116 | 26 YETI_LIBDIR=$YLDIR/../other/yeti |
Chris@69 | 27 fi |
Chris@116 | 28 |
Chris@116 | 29 AYR_DIR=${AYR_DIR:=$YLDIR/../ayr} |
Chris@116 | 30 JVAMP_DIR=${JVAMP_DIR:=$YLDIR/../jvamp} |
Chris@116 | 31 YERTLE_DIR=${YERTLE_DIR:=$YLDIR/../yertle} |
Chris@116 | 32 |
Chris@116 | 33 CLASSPATH=$YLDIR/yetilab.jar:$AYR_DIR/ayr.jar:$AYR_DIR/libreadline-java.jar:$YETI_LIBDIR/yeti.jar:$YETI_LIBDIR/yeti-lib.jar:$JVAMP_DIR/jvamp.jar:$YERTLE_DIR/yertle.jar:$JARDIR/jtransforms-2.4.jar:$JARDIR/org.jzy3d-0.9.jar:$JARDIR/jogl-all.jar:$JARDIR/gluegen.jar:$JARDIR/gluegen-rt.jar:$JARDIR/misc/opencsv-2.1.jar:$JARDIR/misc/org.convexhull.jar:$JARDIR/misc/swt.jar |
Chris@69 | 34 |
Chris@69 | 35 YETI_MODULE_SOURCE_PATH=${YETI_LIBDIR}/modules \ |
Chris@116 | 36 LD_LIBRARY_PATH=$AYR_DIR:$JVAMP_DIR:$SODIR:$LD_LIBRARY_PATH \ |
Chris@116 | 37 $JAVA_HOME/bin/java -classpath "$CLASSPATH" com.particularprograms.ayr "$@" |
Chris@69 | 38 |