Skip to content

Commit

Permalink
Release 0.9.14
Browse files Browse the repository at this point in the history
  • Loading branch information
hsaturn committed Feb 23, 2023
1 parent 2587371 commit 0126a39
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
current_version=$(git describe --tags --abbrev=0)
if [ "$1" == "" ]; then
echo
echo "Syntax: $0 {new_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
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TinyMqtt
version=0.9.12
version=0.9.14
author=Francois BIOT, HSaturn, <hsaturn@gmail.com>
maintainer=Francois BIOT <hsaturn@gmail.com>
sentence=A tiny broker and client library for MQTT messaging.
Expand Down

0 comments on commit 0126a39

Please sign in to comment.