-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinvoke.sh
executable file
·28 lines (23 loc) · 1.19 KB
/
invoke.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env sh
#env PYTHONPATH=/home/jaseg/dev/toys/ffi MONO_PATH=/home/jaseg/dev/toys/ffi/mono/mcs/class/lib/net_4_x LD_LIBRARY_PATH=/usr/lib/jvm/java-8-openjdk/jre/lib/amd64/server:. java -Djava.library.path=/home/jaseg/dev/toys/ffi:/usr/lib -cp ./nativelibs4java/libraries/Mono/Mono.jar:. Stage1 $@
debug=""
cmd="java -Djava.library.path=/home/jaseg/ffi -cp ./nativelibs4java/libraries/Mono/Mono.jar:/usr/share/java/groovy.jar:/usr/share/java/asm3.jar:/usr/share/java/antlr.jar:/usr/share/java/ivy.jar:. -Djava.compiler=NONE Stage1"
if [ $1 = "-d" ]; then
debug="gdb -x gdb.init -ex run --args"
shift
fi
if [ $1 = "-D" ]; then
debug="gdb -x gdb.init --args"
shift
fi
if [ $1 = "-x" ]; then
cmd=""
shift
fi
${debug} env LD_PRELOAD=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjsig.so\
PYTHONPATH=/home/jaseg/ffi\
LD_LIBRARY_PATH=.:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server:/home/jaseg/ffi:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib:/usr/local/lib/octave/4.0.1:/home/jaseg/ffi:/home/jaseg/ffi/haskell-libs:/usr/lib/ghc\
R_HOME=/usr/lib/R\
LOGNAME=jaseg\
USER=jaseg\
${cmd} "$@"