ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
Revision: 712
Committed: Mon Aug 4 15:00:57 2008 UTC (11 years, 2 months ago) by duarte
Original Path: trunk/make-aglappe.sh
File size: 1711 byte(s)
Log Message:
Switching to JUNG2-beta1:
- got rid of our custom fix to removeEdge
- now both addVertex and removeVertex are correctly implemented: they update properly the nodes2serials map. 
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:\
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 /project/StruPPi/jars/jung/jung-algorithms-2.0-beta1.jar
28
29 cd $tempdir
30
31 if [ -e "$aglappetag" ]
32 then
33 echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
34 exit 1
35 fi
36
37 # exporting from svn
38 echo "Exporting source from svn"
39
40
41 if [ "$aglappetag" = "trunk" ]
42 then
43 aglappetag="aglappe-trunk"
44 svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
45 else
46 svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
47 fi
48
49
50 # compiling
51 echo "Compiling..."
52 cd $aglappetag
53 javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
54
55 # creating jar file
56 echo "Creating jar file: $aglappetag.jar ..."
57 jar -cfm ../$aglappetag.jar Manifest.txt .
58
59 # removing $aglappetag temp directory
60 cd ..
61 rm -rf $aglappetag