ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
Revision: 968
Committed: Mon Feb 22 16:03:45 2010 UTC (9 years, 7 months ago) by duarte
Original Path: trunk/make-owl.sh
File size: 1788 byte(s)
Log Message:
Updated make-aglappe script (and renamed to make-owl).
Changed aglappe strings to OWL (following new name of library)
Line User Rev File contents
1 duarte 496 #!/bin/sh
2 duarte 968 if [ -z "$3" ]
3 duarte 496 then
4 duarte 968 echo "Usage: make-owl.sh <svn base url> <tempdir> <tag>"
5     echo "If instead of a tag, you want the code from trunk, just specify 'trunk' instead of the tag name"
6     echo "e.g. for svn base url: svn://black/aglappe or svn://www.bioinformatics.org/svnroot/owl"
7 duarte 496 exit
8     fi
9    
10 duarte 968 svnbaseurl=$1
11     tempdir=$2
12     tag=$3
13 duarte 496
14 duarte 968 echo "Compiling with:"
15     javac -version
16     echo ""
17 duarte 496
18 duarte 968 CLASSPATH=.:\
19     /project/StruPPi/jars/mysql-connector-java.jar:\
20 duarte 712 /project/StruPPi/jars/JRclient-RE817.jar:\
21     /project/StruPPi/jars/java-getopt-1.0.13.jar:\
22     /project/StruPPi/jars/junit-3.8.1.jar:\
23     /project/StruPPi/jars/commons-codec-1.3.jar:\
24 duarte 739 /project/StruPPi/jars/xmlrpc-client-3.1.jar:\
25     /project/StruPPi/jars/xmlrpc-common-3.1.jar:\
26     /project/StruPPi/jars/ws-commons-util-1.0.2.jar:\
27 duarte 712 /project/StruPPi/jars/vecmath.jar:\
28     /project/StruPPi/jars/Jama-1.0.2.jar:\
29     /project/StruPPi/jars/jaligner.jar:\
30 duarte 968 /project/StruPPi/jars/drmaa.jar:\
31 duarte 712 /project/StruPPi/jars/jung/collections-generic-4.01.jar:\
32 duarte 968 /project/StruPPi/jars/jung/jung-2.0.1/jung-api-2.0.1.jar:\
33     /project/StruPPi/jars/jung/jung-2.0.1/jung-graph-impl-2.0.1.jar:\
34     /project/StruPPi/jars/jung/jung-2.0.1/jung-algorithms-2.0.1.jar
35 duarte 496
36     cd $tempdir
37    
38 duarte 968 if [ -e "$tag" ]
39 duarte 496 then
40 duarte 968 echo "File exists with name $tag, can't create directory"
41 duarte 496 exit 1
42     fi
43    
44     # exporting from svn
45     echo "Exporting source from svn"
46    
47    
48 duarte 968 if [ "$tag" = "trunk" ]
49 duarte 496 then
50 duarte 968 tag="owl-trunk"
51     svn export $svnbaseurl/trunk/ $tag
52 duarte 496 else
53 duarte 968 svn export $svnbaseurl/tags/$tag
54 duarte 496 fi
55    
56    
57     # compiling
58     echo "Compiling..."
59 duarte 968 cd $tag/src
60 duarte 591 javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
61 duarte 496
62     # creating jar file
63 duarte 968 echo "Creating jar file: $tag.jar ..."
64     jar -cfm ../../$tag.jar ../Manifest.txt .
65 duarte 496
66 duarte 968 # removing $tag temp directory
67     cd ../..
68     rm -rf $tag