ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.2/reconstruct/package-reconstruct.sh
Revision: 978
Committed: Tue Feb 23 18:57:24 2010 UTC (10 years, 3 months ago) by duarte
Original Path: trunk/reconstruct/package-reconstruct.sh
File size: 1224 byte(s)
Log Message:
Moved all reconstruct scripts and config files to reconstruct directory. 
Modified scripts accordingly
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    
21    
22     # files
23     tmpdir=$roottmpdir/reconstruct-$ver
24     mkdir $tmpdir
25    
26    
27     svn export $svnurl/LICENSE $tmpdir/LICENSE
28     svn export $svnurl/gpl.txt $tmpdir/gpl.txt
29 duarte 978 svn export $svnurl/reconstruct/reconstruct.sh $tmpdir/reconstruct
30     #svn export $svnurl/reconstruct/reconstruct.bat $tmpdir/reconstruct.bat
31     svn export $svnurl/reconstruct/reconstruct.cfg $tmpdir/reconstruct.cfg
32     svn export $svnurl/reconstruct/README-reconstruct.txt $tmpdir/README.txt
33     svn export $svnurl/reconstruct/sample.cm $tmpdir/sample.cm
34 duarte 975
35     # jars
36     svn export $svnurl/jars $tmpdir/jars
37     cp $thejar $tmpdir/jars/owl.jar
38    
39     # the owl jar
40 duarte 978 $scriptdir/../scripts/make-owl.sh $svnurl $tmpdir
41 duarte 975 mv $tmpdir/*.jar $tmpdir/jars/owl.jar
42    
43    
44     # zipping up
45     cd $roottmpdir
46     zip -r reconstruct-$ver.zip reconstruct-$ver/

Properties

Name Value
svn:executable *