diff --git a/Koha/Plugin/Fi/KohaSuomi/OKMStats.pm b/Koha/Plugin/Fi/KohaSuomi/OKMStats.pm index f790401..7268ee2 100644 --- a/Koha/Plugin/Fi/KohaSuomi/OKMStats.pm +++ b/Koha/Plugin/Fi/KohaSuomi/OKMStats.pm @@ -14,7 +14,7 @@ use Koha::Plugins; use Koha::Plugin::Fi::KohaSuomi::OKMStats::Modules::OPLIB::OKM; ## Here we set our plugin version -our $VERSION = "1.0"; +our $VERSION = "1.0.0"; ## Here is our metadata, some keys are required, some are optional our $metadata = { diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..dbac4dd --- /dev/null +++ b/deploy.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +PM_FILE="Koha/Plugin/Fi/KohaSuomi/OKMStats.pm" +VERSION=`grep -oE "\-?[0-9]+\.[0-9]+\.[0-9]" $PM_FILE | head -1` +MINVERSION=`grep -oE "\-?[0-9]+\.[0-9][0-9]" $PM_FILE | head -1` +RELEASE_FILE="koha-plugin-broadcast-biblios-v${VERSION}.kpz" +VERSIONTAG=`git tag -l "v${VERSION}-koha-$MINVERSION"` + +if [ $VERSIONTAG ]; then + echo "Release version already exists!" + exit 1 +fi + +rm $RELEASE_FILE + +echo "Building release package ${RELEASE_FILE}" + +zip -r $RELEASE_FILE ./Koha + +echo "Creating tag v${VERSION}-koha-$MINVERSION" + +git tag -a "v${VERSION}-koha-$MINVERSION" -m "Release ${VERSION}" \ No newline at end of file