ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/make-aglappe.sh
Revision: 591
Committed: Fri Apr 11 14:57:25 2008 UTC (11 years, 6 months ago) by duarte
File size: 1628 byte(s)
Log Message:
Added some missing packages to compilation
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 519 CLASSPATH=.:/project/StruPPi/jars/mysql-connector-java.jar:/project/StruPPi/jars/JRclient-RE817.jar:/project/StruPPi/jars/java-getopt-1.0.13.jar:/project/StruPPi/jars/junit-3.8.1.jar:/project/StruPPi/jars/commons-codec-1.3.jar:/project/StruPPi/jars/xmlrpc-client-3.0.jar:/project/StruPPi/jars/xmlrpc-common-3.0.jar:/project/StruPPi/jars/ws-commons-util-1.0.1.jar:/project/StruPPi/jars/vecmath.jar:/project/StruPPi/jars/Jama-1.0.2.jar:/project/StruPPi/jars/jaligner.jar:/project/StruPPi/jars/jung/collections-generic-4.01.jar:/project/StruPPi/jars/jung/jung-api-2.0-alpha2.jar:/project/StruPPi/jars/jung/jung-graph-impl-2.0-alpha2.jar
14 duarte 496
15     cd $tempdir
16    
17     if [ -e "$aglappetag" ]
18     then
19     echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
20     exit 1
21     fi
22    
23     # exporting from svn
24     echo "Exporting source from svn"
25    
26    
27     if [ "$aglappetag" = "trunk" ]
28     then
29     aglappetag="aglappe-trunk"
30     svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
31     else
32     svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
33     fi
34    
35    
36     # compiling
37     echo "Compiling..."
38     cd $aglappetag
39 duarte 591 javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
40 duarte 496
41     # creating jar file
42     echo "Creating jar file: $aglappetag.jar ..."
43     jar -cfm ../$aglappetag.jar Manifest.txt .
44    
45     # removing $aglappetag temp directory
46     cd ..
47     rm -rf $aglappetag