From 9465e7638f24672b0e963a5e9c8827da09d26209 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 14 Apr 2017 02:40:33 +0200 Subject: [PATCH] Update makerelease --- makerelease | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/makerelease b/makerelease index c5a3b6d..631ca16 100755 --- a/makerelease +++ b/makerelease @@ -34,12 +34,22 @@ esac version=$1 sed -i "/string version = /c\\\tstring version = \"$version\";" src/helpers/help.cpp +IFS='.' read -ra VPART <<< "$version" +sed -i "/MAJOR=/cMAJOR=\"${VPART[0]}\"" makefile +sed -i "/MINOR=/cMINOR=\"${VPART[1]}\"" makefile +sed -i "/MICRO=/cMICRO=\"${VPART[2]}\"" makefile + git commit -m "Version $version" src/* git push +git checkout master +git merge develop + git tag -a "v$version" -m "Version $version" git push --tags +git checkout $branch + #wget https://github.com/MatMoul/g810-led/archive/v$version.zip #wget https://github.com/MatMoul/g810-led/archive/v$version.tar.gz