ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/modelit/scripts/make.sh
Revision: 1299
Committed: Tue Jan 11 17:38:33 2011 UTC (8 years, 8 months ago) by hstehr
File size: 1940 byte(s)
Log Message:
adding Model-It server files to repository
Line File contents
1 #!/bin/sh
2 if [ -z "$3" ]
3 then
4 echo "usage: $0 <tempdir> <aglappetag> <casptag>"
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 casptag=$3
13
14 # we force compilation in java 1.5 to keep backwards compatibility
15 #JAVAVERSION=1.5.0
16 # now we need java 6 for setExecutable() call in TinkerRunner
17 JAVAVERSION=1.6.0
18
19 CLASSPATH=.:\
20 /project/StruPPi/jars/java-getopt-1.0.13.jar:\
21 /project/StruPPi/jars/mysql-connector-java.jar:\
22 /project/StruPPi/jars/vecmath.jar:\
23 /project/StruPPi/jars/Jama-1.0.2.jar:\
24 /project/StruPPi/jars/jaligner.jar:\
25 /project/StruPPi/jars/jung/collections-generic-4.01.jar:\
26 /project/StruPPi/jars/jung/jung-api-2.0-beta1.jar:\
27 /project/StruPPi/jars/jung/jung-graph-impl-2.0-beta1.jar:\
28 /project/StruPPi/jars/drmaa.jar
29
30 cd $tempdir
31
32 if [ -e "$casptag" ] || [ -e "$aglappetag" ]
33 then
34 echo "File exists with name $casptag or name $aglappetag, can't create directory"
35 exit 1
36 fi
37
38 # exporting from svn
39 echo "Exporting source from svn"
40
41
42 if [ "$aglappetag" = "trunk" ]
43 then
44 aglappetag="aglappe-trunk"
45 svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
46 else
47 svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
48 fi
49
50 if [ "$casptag" = "trunk" ]
51 then
52 casptag="casp-trunk"
53 svn export file:///project/StruPPi/svn/Casp/trunk/src $casptag
54 else
55 svn export file:///project/StruPPi/svn/Casp/tags/$casptag/src
56 fi
57
58
59 # compiling
60 echo "Compiling..."
61 cd $casptag
62 cp -R ../$aglappetag/proteinstructure .
63 cp -R ../$aglappetag/tools .
64 cp -R ../$aglappetag/tinker .
65 cp -R ../$aglappetag/sadp .
66 cp -R ../$aglappetag/sequence .
67 cp -R ../$aglappetag/graphAveraging .
68
69 javac casp/pipeline/*.java casp/benchmarking/*.java casp/tools/*.java
70
71 # creating jar file
72 echo "Creating jar file: $casptag.jar ..."
73 jar -cf ../$casptag.jar .
74
75 # removing temp directories
76 cd ..
77 rm -rf $aglappetag
78 rm -rf $casptag

Properties

Name Value
svn:executable *