ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.2/reconstruct/reconstruct.sh
Revision: 975
Committed: Tue Feb 23 17:30:54 2010 UTC (10 years, 3 months ago) by duarte
Original Path: trunk/scripts/reconstruct
File size: 631 byte(s)
Log Message:
Moved scripts to scripts directory.
New scripts for packaging the reconstruct executable for distribution.
Line User Rev File contents
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 $@

Properties

Name Value
svn:executable *