To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / bin / may
History | View | Annotate | Download (1.18 KB)
| 1 |
#!/bin/sh |
|---|---|
| 2 |
|
| 3 |
MAY_INIT_MODULES=${MAY_INIT_MODULES:=may.vector:may.matrix:may.complex:may.plot:may.vamp}
|
| 4 |
|
| 5 |
ARCH=unknown |
| 6 |
|
| 7 |
case `uname -a` in |
| 8 |
Linux*x86_64*) ARCH=linux64;; |
| 9 |
Linux*) ARCH=linux32;; |
| 10 |
Darwin*) ARCH=osx;; |
| 11 |
CYG*) ARCH=win32;; |
| 12 |
MINGW*) ARCH=win32;; |
| 13 |
esac |
| 14 |
|
| 15 |
if [ "$ARCH" = "unknown" ]; then |
| 16 |
echo "Failed to guess architecture for native libraries, sorry!" 1>&2 |
| 17 |
exit 2 |
| 18 |
fi |
| 19 |
|
| 20 |
YLDIR=`dirname $0`/.. |
| 21 |
|
| 22 |
EXTDIR=$YLDIR/ext |
| 23 |
JARDIR=$EXTDIR/jar |
| 24 |
SODIR=$EXTDIR/native/$ARCH |
| 25 |
|
| 26 |
JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=256m" |
| 27 |
|
| 28 |
YETI_LIBDIR=${YETI_LIBDIR:=$YLDIR/../yeti}
|
| 29 |
if [ ! -d "$YETI_LIBDIR" ]; then |
| 30 |
YETI_LIBDIR=$YLDIR/../other/yeti |
| 31 |
fi |
| 32 |
|
| 33 |
CLASSPATH=$YLDIR/may.jar:$JARDIR/ayr.jar:$YETI_LIBDIR/yeti.jar:$YETI_LIBDIR/yeti-lib.jar:$JARDIR/jline-2.11-SNAPSHOT.jar:$JARDIR/jvamp.jar:$JARDIR/yertle.jar:$JARDIR/jtransforms-2.4.jar:$JARDIR/jzy3d-swt-0.9.1.jar:$JARDIR/jzy3d-api-0.9.1.jar:$JARDIR/jogl-all.jar:$JARDIR/gluegen.jar:$JARDIR/gluegen-rt.jar:$JARDIR/opencsv-2.1.jar:$JARDIR/org.convexhull.jar:$CLASSPATH |
| 34 |
|
| 35 |
YETI_MODULE_SOURCE_PATH=${YETI_LIBDIR}/modules \
|
| 36 |
LD_LIBRARY_PATH=$SODIR:$LD_LIBRARY_PATH \ |
| 37 |
$JAVA_HOME/bin/java $JAVA_OPTS -classpath "$CLASSPATH" com.particularprograms.ayr -init "$MAY_INIT_MODULES" "$@" |
| 38 |
|