ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
Revision: 749
Committed: Tue Sep 16 09:53:42 2008 UTC (11 years, 1 month ago) by stehr
Original Path: trunk/make-aglappe.sh
File size: 1783 byte(s)
Log Message:
set javaversion to 1.5 for compatibility with cluster
Line File contents
1 #!/bin/sh
2 if [ -z "$2" ]
3 then
4 echo "usage: make-aglappe.sh <tempdir> <aglappetag>"
5 echo "if instead of a tag, you want the code from trunk, just specify 'trunk' instead of the tag name"
6 exit
7 fi
8
9
10 tempdir=$1
11 aglappetag=$2
12
13 # compile with Java5 to keep it backward compatible
14 JAVAVERSION=1.5.0
15
16 CLASSPATH=.:/project/StruPPi/jars/mysql-connector-java.jar:\
17 /project/StruPPi/jars/JRclient-RE817.jar:\
18 /project/StruPPi/jars/java-getopt-1.0.13.jar:\
19 /project/StruPPi/jars/junit-3.8.1.jar:\
20 /project/StruPPi/jars/commons-codec-1.3.jar:\
21 /project/StruPPi/jars/xmlrpc-client-3.1.jar:\
22 /project/StruPPi/jars/xmlrpc-common-3.1.jar:\
23 /project/StruPPi/jars/ws-commons-util-1.0.2.jar:\
24 /project/StruPPi/jars/vecmath.jar:\
25 /project/StruPPi/jars/Jama-1.0.2.jar:\
26 /project/StruPPi/jars/jaligner.jar:\
27 /project/StruPPi/jars/jung/collections-generic-4.01.jar:\
28 /project/StruPPi/jars/jung/jung-api-2.0-beta1.jar:\
29 /project/StruPPi/jars/jung/jung-graph-impl-2.0-beta1.jar:\
30 /project/StruPPi/jars/jung/jung-algorithms-2.0-beta1.jar
31
32 cd $tempdir
33
34 if [ -e "$aglappetag" ]
35 then
36 echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
37 exit 1
38 fi
39
40 # exporting from svn
41 echo "Exporting source from svn"
42
43
44 if [ "$aglappetag" = "trunk" ]
45 then
46 aglappetag="aglappe-trunk"
47 svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
48 else
49 svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
50 fi
51
52
53 # compiling
54 echo "Compiling..."
55 cd $aglappetag
56 javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
57
58 # creating jar file
59 echo "Creating jar file: $aglappetag.jar ..."
60 jar -cfm ../$aglappetag.jar Manifest.txt .
61
62 # removing $aglappetag temp directory
63 cd ..
64 rm -rf $aglappetag