ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.3/scripts/make-owl.sh
(Generate patch)
# Line 1 | Line 1
1   #!/bin/sh
2 < if [ -z "$3" ]
2 > if [ -z "$2" ]
3   then
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"
4 >    echo "Usage: make-owl.sh <svn url> <tempdir>"
5 >    echo "e.g. for svn url: svn://black/aglappe/trunk or svn://www.bioinformatics.org/svnroot/owl/tags/owl-1.2.0"
6      exit
7   fi
8  
9 < svnbaseurl=$1
9 > svnurl=$1
10   tempdir=$2
12 tag=$3
11  
12   echo "Compiling with:"
13   javac -version
14   echo ""
15  
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:\
23 /project/StruPPi/jars/commons-codec-1.3.jar:\
24 /project/StruPPi/jars/xmlrpc-client-3.1.jar:\
25 /project/StruPPi/jars/xmlrpc-common-3.1.jar:\
26 /project/StruPPi/jars/ws-commons-util-1.0.2.jar:\
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-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
16  
17   cd $tempdir
18  
19 < if [ -e "$tag" ]
20 < then
40 <    echo "File exists with name $tag, can't create directory"
41 <    exit 1
42 < fi
19 > tag=`basename $svnurl`
20 >
21  
22   # exporting from svn
23   echo "Exporting source from svn"
24 <
25 <
48 < if [ "$tag" = "trunk" ]
24 > svn export $svnurl
25 > if [ "$?" -ne "0" ]
26   then
27 <    tag="owl-trunk"
28 <    svn export $svnbaseurl/trunk/ $tag
52 < else
53 <    svn export $svnbaseurl/tags/$tag
27 >        echo "Couldn't export from svn. Exiting"
28 >        exit 1
29   fi
30  
31  
32   # compiling
33   echo "Compiling..."
34   cd $tag/src
35 +
36 +
37 + jarfiles=`ls ../jars/*.jar`
38 + CLASSPATH="."
39 + for jarfile in $jarfiles
40 + do
41 +        CLASSPATH="$jarfile:$CLASSPATH"
42 + done
43 +
44 + echo $CLASSPATH
45 +
46 +
47   javac *.java proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java sequence/*.java actionTools/*.java ppi/*.java
48  
49   # creating jar file
# Line 65 | Line 52
52  
53   # removing $tag temp directory
54   cd ../..
55 < rm -rf $tag
55 > #rm -rf $tag

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines