https://github.com/awojna/Rseslib
Revision 88a9863ccc6982f059fc93f0a03f24599e82ce3f authored by Arkadiusz Wojna on 27 April 2018, 15:30:25 UTC, committed by GitHub on 27 April 2018, 15:30:25 UTC
Scripts for executing SimpleGrid
2 parent s d402a41 + 24d383b
Raw File
Tip revision: 88a9863ccc6982f059fc93f0a03f24599e82ce3f authored by Arkadiusz Wojna on 27 April 2018, 15:30:25 UTC
Merge pull request #3 from rlatkows/master
Tip revision: 88a9863
make-pkg.sh
#!/bin/bash

########################################################################
#
# Script preparing library, 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  <upload working directory> <new rseslib version>
#
########################################################################

basedir=$1
version=$2

rm -rf $basedir
mkdir $basedir

# make library
cp target/rseslib-$version.jar $basedir/

# make sources
git archive --format zip --prefix=rseslib-$version-src/ --output $basedir/rseslib-$version-src.zip master

# make weka package
mkdir $basedir/weka
cp Description.props $basedir/weka/
cp target/rseslib-$version.jar $basedir/weka/rseslib.jar
cd $basedir/weka
zip -r ../Rseslib$version.zip *
back to top