Skip to content
Snippets Groups Projects
Commit 7a7309d4 authored by inso's avatar inso
Browse files

Executable mode

parent 999350b9
Branches
Tags
No related merge requests found
release.sh 100644 → 100755
......@@ -4,11 +4,11 @@
current=`grep -P "__version_info__ = \(\'\d+\', \'\d+\', \'\d+(\w*)\'\)" src/sakia/__init__.py | grep -oP "\'\d+\', \'\d+\', \'\d+(\w*)\'"`
echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9a-z]+$ ]]; then
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]+$ ]]; then
IFS='.' read -r -a array <<< "$1"
sed -i "s/__version_info__\ = ($current)/__version_info__ = ('${array[0]}', '${array[1]}', '${array[2]}')/g" src/sakia/__init__.py
git commit src/sakia/__init__.py -m "$2"
git tag "$2"
git commit src/sakia/__init__.py -m "$1"
git tag "$1"
else
echo "Wrong version format"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment