-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the makedist script, bump version.
- Loading branch information
1 parent
7d1e61a
commit ae2fdd7
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |