ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-1.9.2/reconstruct/package-reconstruct.sh
Revision: 976
Committed: Tue Feb 23 17:36:23 2010 UTC (10 years, 3 months ago) by duarte
Original Path: trunk/scripts/package-reconstruct.sh
File size: 1069 byte(s)
Log Message:
Renamed script and fixed bug
Line File contents
1 #!/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 svn export $svnurl/scripts/reconstruct.sh $tmpdir/reconstruct
30 #svn export $svnurl/scripts/reconstruct.bat $tmpdir/reconstruct.bat
31 svn export $svnurl/scripts/reconstruct.cfg $tmpdir/reconstruct.cfg
32
33 # jars
34 svn export $svnurl/jars $tmpdir/jars
35 cp $thejar $tmpdir/jars/owl.jar
36
37 # the owl jar
38 $scriptdir/make-owl.sh $svnurl $tmpdir
39 mv $tmpdir/*.jar $tmpdir/jars/owl.jar
40
41
42 # zipping up
43 cd $roottmpdir
44 zip -r reconstruct-$ver.zip reconstruct-$ver/

Properties

Name Value
svn:executable *