-
Notifications
You must be signed in to change notification settings - Fork 28
/
jcutec.in
34 lines (26 loc) · 1.14 KB
/
jcutec.in
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
29
30
31
32
export JAVA_LIB_PATH=.
export LD_LIBRARY_PATH=.
export PATH=$PATH:.
arch=$(uname)
if [ $arch != "Linux" ]
then
CLASSPATH="tmpjcute/classes;jcute.jar"
else
CLASSPATH=tmpjcute/classes:jcute.jar
fi
rm -rf tmpjcute
mkdir tmpjcute
mkdir tmpjcute/classes
echo "javac -classpath $CLASSPATH -d tmpjcute -sourcepath $1 $2"
javac -classpath $CLASSPATH -d tmpjcute/classes -sourcepath $1 $2
if [ $4 != "-sequential" ]
then
echo "java -classpath $CLASSPATH cute.instrument.CuteInstrumenter -keep-line-number -d ./tmpjcute/classes -x cute -x lpsolve --app $3"
java -classpath $CLASSPATH cute.instrument.CuteInstrumenter -keep-line-number -d ./tmpjcute/classes -x cute -x lpsolve --app $3
else
echo "java -classpath $CLASSPATH -Dcute.sequential=true cute.instrument.CuteInstrumenter -keep-line-number -d ./tmpjcute/classes -x cute -x lpsolve --app $3"
java -classpath $CLASSPATH -Dcute.sequential=true cute.instrument.CuteInstrumenter -keep-line-number -d ./tmpjcute/classes -x cute -x lpsolve --app $3
fi
mv cuteSymbolTable tmpjcute
#java -classpath others.jar de.java2html.Java2Html -srcdir $1 -targetdir ./tmpjcute
#cp index.html tmpjcute