ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/aglappe-0.8.6/make-aglappe.sh
Revision: 432
Committed: Tue Nov 27 11:43:03 2007 UTC (11 years, 11 months ago) by duarte
Original Path: trunk/make-aglappe.sh
File size: 1412 byte(s)
Log Message:
Initial commit: script to make aglappe project into one compiled jar
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 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

Properties

Name Value
svn:executable *