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