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

Properties

Name Value
svn:executable *