ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/aglappe-1.1.0/make-aglappe.sh
Revision: 496
Committed: Wed Jan 2 14:11:56 2008 UTC (11 years, 9 months ago) by duarte
Original Path: trunk/make-aglappe.sh
File size: 1410 byte(s)
Log Message:
Rescued the make-aglappe.sh script from the old trunk
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     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
14    
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     javac proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java
40    
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