Compare commits

...

2 Commits

Author SHA1 Message Date
Francois BIOT
cda94368a7 Change bump version script 2023-02-23 19:37:11 +01:00
Francois BIOT
0126a39327 Release 0.9.14 2023-02-23 19:36:51 +01:00
2 changed files with 31 additions and 1 deletions

30
bump_version.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
current_version=$(git describe --tags --abbrev=0)
if [ "$1" == "" ]; then
echo
echo "Syntax: $0 {new_version}"
echo
echo " Current version: $current_version"
echo
else
echo "Current version: ($current_version)"
echo "New version : ($1)"
echo -n "Do you want to proceed ? "
read a
if [ "$a" == "y" ]; then
echo "Doing this..."
grep $current_version library.properties
if [ "$?" == "0" ]; then
sed -i "s/$current_version/$1/" library.properties
sed -i "s/$current_version/$1/" library.json
git tag $1
git add library.properties
git add library.json
git commit -m "Release $1"
git push
git push --tags
else
echo "Current version does not match library.property version, aborting"
fi
fi
fi

View File

@@ -1,5 +1,5 @@
name=TinyMqtt name=TinyMqtt
version=0.9.12 version=0.9.14
author=Francois BIOT, HSaturn, <hsaturn@gmail.com> author=Francois BIOT, HSaturn, <hsaturn@gmail.com>
maintainer=Francois BIOT <hsaturn@gmail.com> maintainer=Francois BIOT <hsaturn@gmail.com>
sentence=A tiny broker and client library for MQTT messaging. sentence=A tiny broker and client library for MQTT messaging.