ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/scripts/make-owl.sh
Revision: 991
Committed: Mon Mar 22 14:07:56 2010 UTC (9 years, 7 months ago) by jmduarteg
File size: 919 byte(s)
Log Message:
Setting the svn:executable property of make-owl.sh so that when it is checked out it will be set to executable.
Line File contents
1 #!/bin/sh
2 if [ -z "$2" ]
3 then
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 echo "Compiling with:"
13 javac -version
14 echo ""
15
16
17 cd $tempdir
18
19 tag=`basename $svnurl`
20
21
22 # exporting from svn
23 echo "Exporting source from svn"
24 svn export $svnurl
25 if [ "$?" -ne "0" ]
26 then
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
50 echo "Creating jar file: $tag.jar ..."
51 jar -cfm ../../$tag.jar ../Manifest.txt .
52
53 # removing $tag temp directory
54 cd ../..
55 rm -rf $tag

Properties

Name Value
svn:executable *