ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/make-aglappe.sh
Revision: 777
Committed: Thu Oct 9 08:29:41 2008 UTC (11 years, 1 month ago) by duarte
File size: 1817 byte(s)
Log Message:
Added drmaa.jar to make file
Line User Rev File contents
1 duarte 496 #!/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 stehr 749 # compile with Java5 to keep it backward compatible
14     JAVAVERSION=1.5.0
15    
16 duarte 712 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 duarte 739 /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 duarte 712 /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 duarte 777 /project/StruPPi/jars/jung/jung-algorithms-2.0-beta1.jar:\
31     /project/StruPPi/jars/drmaa.jar
32 duarte 496
33     cd $tempdir
34    
35     if [ -e "$aglappetag" ]
36     then
37     echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
38     exit 1
39     fi
40    
41     # exporting from svn
42     echo "Exporting source from svn"
43    
44    
45     if [ "$aglappetag" = "trunk" ]
46     then
47     aglappetag="aglappe-trunk"
48     svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
49     else
50     svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
51     fi
52    
53    
54     # compiling
55     echo "Compiling..."
56     cd $aglappetag
57 duarte 591 javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
58 duarte 496
59     # creating jar file
60     echo "Creating jar file: $aglappetag.jar ..."
61     jar -cfm ../$aglappetag.jar Manifest.txt .
62    
63     # removing $aglappetag temp directory
64     cd ..
65     rm -rf $aglappetag