ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.2/reconstruct/package-reconstruct.sh
Revision: 992
Committed: Mon Mar 22 14:10:34 2010 UTC (10 years, 2 months ago) by jmduarteg
Original Path: trunk/reconstruct/package-reconstruct.sh
File size: 1277 byte(s)
Log Message:
Removed unneeded code
Line User Rev File contents
1 duarte 975 #!/bin/sh
2     # script to package the OWL library by exporting trunk/tag from repository,
3     # making a jar file for it, adding some scripts and packing it all under a single
4     # zip file so that the reconstruct program can be distributed to the world
5    
6     if [ -z "$3" ]
7     then
8     echo "usage: $0 <tmp dir> <svn url> <version>"
9     echo "svn url should be like: svn://black/aglappe/trunk or svn://black/aglappe/tags/owl-1.2.0"
10     exit 1
11     fi
12    
13     roottmpdir=$1
14     svnurl=$2
15     ver=$3
16    
17    
18     scriptdir=`dirname $0`
19    
20 duarte 979 if [ ! -e "$roottmpdir" ]
21     then
22     echo "Directory $roottmpdir doesn't exist"
23     exit 1
24     fi
25 duarte 975
26     # files
27     tmpdir=$roottmpdir/reconstruct-$ver
28     mkdir $tmpdir
29    
30    
31     svn export $svnurl/LICENSE $tmpdir/LICENSE
32     svn export $svnurl/gpl.txt $tmpdir/gpl.txt
33 duarte 978 svn export $svnurl/reconstruct/reconstruct.sh $tmpdir/reconstruct
34     #svn export $svnurl/reconstruct/reconstruct.bat $tmpdir/reconstruct.bat
35     svn export $svnurl/reconstruct/reconstruct.cfg $tmpdir/reconstruct.cfg
36     svn export $svnurl/reconstruct/README-reconstruct.txt $tmpdir/README.txt
37     svn export $svnurl/reconstruct/sample.cm $tmpdir/sample.cm
38 duarte 975
39     # jars
40     svn export $svnurl/jars $tmpdir/jars
41    
42     # the owl jar
43 duarte 978 $scriptdir/../scripts/make-owl.sh $svnurl $tmpdir
44 duarte 975 mv $tmpdir/*.jar $tmpdir/jars/owl.jar
45    
46    
47     # zipping up
48     cd $roottmpdir
49     zip -r reconstruct-$ver.zip reconstruct-$ver/

Properties

Name Value
svn:executable *