Skip to content

Commit

Permalink
Add the makedist script, bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-petrak committed May 29, 2015
1 parent 7d1e61a commit ae2fdd7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion creole.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<CREOLE-DIRECTORY
ID="com.jpetrak.VirtualCorpus"
VERSION="0.14"
VERSION="0.16"
DESCRIPTION="Virtual Corpus LRs for directories or JDBC databases"
HELPURL="http://code.google.com/p/gateplugin-virtualcorpus/"
>
Expand Down
26 changes: 26 additions & 0 deletions makedist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

name=VirtualCorpus
tmpdir=/tmp
curdir=`pwd -P`
version=`perl -n -e 'if (/VERSION="([^"]+)"/) { print $1;}' < $curdir/creole.xml`
destdir=$tmpdir/${name}$$

rm -rf "$destdir"
mkdir -p $destdir/$name
rm -f $name-*.zip
rm -f $name-*.tgz
git archive --format zip --output ${name}-${version}-src.zip --prefix=$name/ master
pushd $destdir
unzip $curdir/${name}-${version}-src.zip
cd $name
cp $curdir/build.properties .
ant || exit
ant clean.classes || exit
rm -rf build.properties
rm -rf makedist.sh
rm -rf tests
rm $curdir/${name}-${version}-src.zip
cd ..
zip -r $curdir/$name-$version.zip $name
popd

0 comments on commit ae2fdd7

Please sign in to comment.