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" ]
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"
4 >    echo "Usage: make-owl.sh <svn url> <tempdir> [<rev>]"
5 >    echo "e.g. for svn url: svn://black/aglappe/trunk or svn://bioinformatics.org/svnroot/owl/tags/owl-1.2.0"
6 >    echo "Optionally specify a revision to be exported instead of head"
7      exit
8   fi
9  
10   svnurl=$1
11   tempdir=$2
12 + rev=""
13 + if [ -n "$3" ]
14 + then
15 +        rev=$3
16 + fi
17  
18   echo "Compiling with:"
19   javac -version
# Line 18 | Line 24
24  
25   tag=`basename $svnurl`
26  
27 + revStr=""
28 + if [ -n "$rev" ]
29 + then
30 +        revStr="-r $rev"
31 + fi
32  
33   # exporting from svn
34   echo "Exporting source from svn"
35 < svn export $svnurl
35 > svn export $revStr $svnurl
36   if [ "$?" -ne "0" ]
37   then
38          echo "Couldn't export from svn. Exiting"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines