1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00

Update makeversion

This commit is contained in:
MatMoul 2017-04-29 17:09:27 +02:00
parent a0d6156f58
commit 775eb5f549

View File

@ -35,9 +35,9 @@ version=$1
sed -i "/string version = /c\\\tstring version = \"$version\";" src/helpers/help.cpp sed -i "/string version = /c\\\tstring version = \"$version\";" src/helpers/help.cpp
IFS='.' read -ra VPART <<< "$version" IFS='.' read -ra VPART <<< "$version"
sed -i "/MAJOR=/cMAJOR=\"${VPART[0]}\"" makefile sed -i "/MAJOR=/cMAJOR=${VPART[0]}" makefile
sed -i "/MINOR=/cMINOR=\"${VPART[1]}\"" makefile sed -i "/MINOR=/cMINOR=${VPART[1]}" makefile
sed -i "/MICRO=/cMICRO=\"${VPART[2]}\"" makefile sed -i "/MICRO=/cMICRO=${VPART[2]}" makefile
git commit -m "Version $version" makefile src/* git commit -m "Version $version" makefile src/*
git push git push