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 "$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"
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 + svnurl=$1
10 + tempdir=$2
11  
12 < tempdir=$1
13 < aglappetag=$2
12 > echo "Compiling with:"
13 > javac -version
14 > echo ""
15  
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
16  
17   cd $tempdir
18  
19 < if [ -e "$aglappetag" ]
20 < then
19 <    echo "File exists with name $cmviewtag or name $aglappetag, can't create directory"
20 <    exit 1
21 < fi
19 > tag=`basename $svnurl`
20 >
21  
22   # exporting from svn
23   echo "Exporting source from svn"
24 <
25 <
27 < if [ "$aglappetag" = "trunk" ]
24 > svn export $svnurl
25 > if [ "$?" -ne "0" ]
26   then
27 <    aglappetag="aglappe-trunk"
28 <    svn export file:///project/StruPPi/svn/aglappe/trunk/ $aglappetag
31 < else
32 <    svn export file:///project/StruPPi/svn/aglappe/tags/$aglappetag
27 >        echo "Couldn't export from svn. Exiting"
28 >        exit 1
29   fi
30  
31  
32   # compiling
33   echo "Compiling..."
34 < cd $aglappetag
35 < javac proteinstructure/*.java tools/*.java tinker/*.java sadp/*.java
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 > jarfiles=`ls ../jars/uniprot/*.jar`
44 > for jarfile in $jarfiles
45 > do
46 >        CLASSPATH="$jarfile:$CLASSPATH"
47 > done
48 >
49 > echo $CLASSPATH
50 >
51 >
52 > javac \
53 > *.java \
54 > owl/core/structure/*.java \
55 > owl/core/sequence/*.java  \
56 > owl/core/util/*.java  \
57 > owl/core/connections/*.java \
58 > owl/core/features/*.java \
59 > owl/core/runners/*.java
60  
61   # creating jar file
62 < echo "Creating jar file: $aglappetag.jar ..."
63 < jar -cfm ../$aglappetag.jar Manifest.txt .
62 > echo "Creating jar file: $tag.jar ..."
63 > jar -cfm ../../$tag.jar ../Manifest.txt .
64  
65 < # removing $aglappetag temp directory
66 < cd ..
67 < rm -rf $aglappetag
65 > # removing $tag temp directory
66 > cd ../..
67 > rm -rf $tag

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines