ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
Revision: 1156
Committed: Wed Jul 7 13:18:24 2010 UTC (9 years, 3 months ago) by jmduarteg
File size: 1328 byte(s)
Log Message:
More fixes to build script
Line User Rev File contents
1 duarte 496 #!/bin/sh
2 duarte 971 if [ -z "$2" ]
3 duarte 496 then
4 duarte 971 echo "Usage: make-owl.sh <svn url> <tempdir>"
5     echo "e.g. for svn url: svn://black/aglappe/trunk or svn://www.bioinformatics.org/svnroot/owl/tags/owl-1.2.0"
6 duarte 496 exit
7     fi
8    
9 duarte 971 svnurl=$1
10 duarte 968 tempdir=$2
11 duarte 496
12 duarte 968 echo "Compiling with:"
13     javac -version
14     echo ""
15 duarte 496
16    
17     cd $tempdir
18    
19 duarte 971 tag=`basename $svnurl`
20 duarte 496
21 duarte 971
22 duarte 496 # exporting from svn
23     echo "Exporting source from svn"
24 duarte 971 svn export $svnurl
25     if [ "$?" -ne "0" ]
26 duarte 496 then
27 duarte 971 echo "Couldn't export from svn. Exiting"
28     exit 1
29 duarte 496 fi
30    
31    
32     # compiling
33     echo "Compiling..."
34 duarte 968 cd $tag/src
35 duarte 971
36    
37     jarfiles=`ls ../jars/*.jar`
38     CLASSPATH="."
39     for jarfile in $jarfiles
40     do
41     CLASSPATH="$jarfile:$CLASSPATH"
42     done
43 jmduarteg 1152 jarfiles=`ls ../jars/uniprot/*.jar`
44     for jarfile in $jarfiles
45     do
46     CLASSPATH="$jarfile:$CLASSPATH"
47     done
48 duarte 971
49     echo $CLASSPATH
50    
51    
52 jmduarteg 1152 javac \
53     *.java \
54     owl/core/structure/*.java \
55 jmduarteg 1156 owl/core/structure/graphs/*.java \
56     owl/core/structure/scoring/*.java \
57 jmduarteg 1152 owl/core/sequence/*.java \
58 jmduarteg 1156 owl/core/sequence/alignment/*.java \
59 jmduarteg 1152 owl/core/util/*.java \
60 jmduarteg 1156 owl/core/util/actionTools/*.java \
61 jmduarteg 1152 owl/core/connections/*.java \
62 jmduarteg 1156 owl/core/connections/pisa/*.java \
63 jmduarteg 1152 owl/core/features/*.java \
64 jmduarteg 1156 owl/core/runners/*.java \
65     owl/core/runners/blast/*.java \
66     owl/core/runners/tinker/*.java
67 duarte 496
68     # creating jar file
69 duarte 968 echo "Creating jar file: $tag.jar ..."
70     jar -cfm ../../$tag.jar ../Manifest.txt .
71 duarte 496
72 duarte 968 # removing $tag temp directory
73     cd ../..
74 duarte 972 rm -rf $tag

Properties

Name Value
svn:executable *