swh:1:snp:3049115480bcaf552e96d5e9973040348b062b8e
Tip revision: 1d8bc1a30aa05f8a9f76b8c1b597c562df3a537d authored by awojna on 07 February 2018, 16:14:43 UTC
Change the version back to 3.1.2
Change the version back to 3.1.2
Tip revision: 1d8bc1a
make-pkg.sh
#!/bin/bash
########################################################################
#
# Script preparing sources and Weka package of Rseslib
#
# 1. Update Rseslib version in pom.xml
# 2. Update Rseslib version, date and URL in Description.props
# 3. Run maven with the goal 'package'
# 4. Run ./make-pkg.sh <new rseslib version>
#
########################################################################
version=$1
# clean old files
rm -f target/rseslib-$version-src.zip
rm -f target/Rseslib$version.zip
rm -rf target/weka
# prepare sources
git archive --format zip --output target/rseslib-$version-src.zip master src/ data/ COPYING
# prepare weka package
mkdir target/weka
cp Description.props target/weka/
cp target/rseslib-$version.jar target/weka/rseslib.jar
cd target/weka
zip -r ../Rseslib$version.zip *
cd ../..