1 |
duarte |
975 |
#!/bin/sh |
2 |
|
|
# shell script to run the reconstruct program (a java class in the default package of the OWL Java library) |
3 |
|
|
|
4 |
|
|
# If the program is to be used on a cluster through the Sun Grid Engine |
5 |
|
|
# job scheduler (option -A) this variable needs to be set to wherever the |
6 |
|
|
# root of the local installation of SGE is |
7 |
|
|
sgeroot=/usr/local/sge |
8 |
|
|
|
9 |
|
|
exedir=`dirname $0` |
10 |
|
|
|
11 |
|
|
jarfiles=`ls $exedir/jars/*.jar` |
12 |
|
|
CLASSPATH="." |
13 |
|
|
for jarfile in $jarfiles |
14 |
|
|
do |
15 |
|
|
CLASSPATH="$jarfile:$CLASSPATH" |
16 |
|
|
done |
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
if [ -e "$sgeroot/util/arch" ] |
21 |
|
|
then |
22 |
|
|
arch=`$sgeroot/util/arch` |
23 |
|
|
libstr="-Djava.library.path=$sgeroot/lib/$arch" |
24 |
|
|
else |
25 |
|
|
libstr="" |
26 |
|
|
fi |
27 |
|
|
|
28 |
|
|
java $libstr reconstruct $@ |