ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
(Generate patch)
# Line 1 | Line 1
1   #!/bin/sh
2 < if [ -z "$2" ]
2 > if [ -z "$3" ]
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"
4 >    echo "Usage: make-owl.sh <svn base url> <tempdir> <tag>"
5 >    echo "If instead of a tag, you want the code from trunk, just specify 'trunk' instead of the tag name"
6 >    echo "e.g. for svn base url: svn://black/aglappe or svn://www.bioinformatics.org/svnroot/owl"
7      exit
8   fi
9  
10 + svnbaseurl=$1
11 + tempdir=$2
12 + tag=$3
13 +
14 + echo "Compiling with:"
15 + javac -version
16 + echo ""
17  
18 < tempdir=$1
19 < aglappetag=$2
12 <
13 < # compile with Java5 to keep it backward compatible
14 < JAVAVERSION=1.5.0
15 <
16 < CLASSPATH=.:/project/StruPPi/jars/mysql-connector-java.jar:\
18 > CLASSPATH=.:\
19 > /project/StruPPi/jars/mysql-connector-java.jar:\
20   /project/StruPPi/jars/JRclient-RE817.jar:\
21   /project/StruPPi/jars/java-getopt-1.0.13.jar:\
22   /project/StruPPi/jars/junit-3.8.1.jar:\
# Line 24 | Line 27
27   /project/StruPPi/jars/vecmath.jar:\
28   /project/StruPPi/jars/Jama-1.0.2.jar:\
29   /project/StruPPi/jars/jaligner.jar:\
30 + /project/StruPPi/jars/drmaa.jar:\
31   /project/StruPPi/jars/jung/collections-generic-4.01.jar:\
32 < /project/StruPPi/jars/jung/jung-api-2.0-beta1.jar:\
33 < /project/StruPPi/jars/jung/jung-graph-impl-2.0-beta1.jar:\
34 < /project/StruPPi/jars/jung/jung-algorithms-2.0-beta1.jar:\
31 < /project/StruPPi/jars/drmaa.jar
32 > /project/StruPPi/jars/jung/jung-2.0.1/jung-api-2.0.1.jar:\
33 > /project/StruPPi/jars/jung/jung-2.0.1/jung-graph-impl-2.0.1.jar:\
34 > /project/StruPPi/jars/jung/jung-2.0.1/jung-algorithms-2.0.1.jar
35  
36   cd $tempdir
37  
38 < if [ -e "$aglappetag" ]
38 > if [ -e "$tag" ]
39   then
40 <    echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
40 >    echo "File exists with name $tag, can't create directory"
41      exit 1
42   fi
43  
# Line 42 | Line 45
45   echo "Exporting source from svn"
46  
47  
48 < if [ "$aglappetag" = "trunk" ]
48 > if [ "$tag" = "trunk" ]
49   then
50 <    aglappetag="aglappe-trunk"
51 <    svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
50 >    tag="owl-trunk"
51 >    svn export $svnbaseurl/trunk/ $tag
52   else
53 <    svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
53 >    svn export $svnbaseurl/tags/$tag
54   fi
55  
56  
57   # compiling
58   echo "Compiling..."
59 < cd $aglappetag
59 > cd $tag/src
60   javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
61  
62   # creating jar file
63 < echo "Creating jar file: $aglappetag.jar ..."
64 < jar -cfm ../$aglappetag.jar Manifest.txt .
63 > echo "Creating jar file: $tag.jar ..."
64 > jar -cfm ../../$tag.jar ../Manifest.txt .
65  
66 < # removing $aglappetag temp directory
67 < cd ..
68 < rm -rf $aglappetag
66 > # removing $tag temp directory
67 > cd ../..
68 > rm -rf $tag

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines