Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21fb01848d | ||
|
|
66b1e71ee2 | ||
|
|
e5115087ea | ||
|
|
cc004875b5 | ||
|
|
58ae2436d3 |
24
bump_version.sh
Normal file → Executable file
24
bump_version.sh
Normal file → Executable file
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
current_version=$(git describe --tags --abbrev=0)
|
current_version=$(git describe --tags --abbrev=0)
|
||||||
|
cp library.json.skeleton library.json
|
||||||
|
while ifs= read -r line; do
|
||||||
|
name=$(echo "$line" | sed "s/=.*//g")
|
||||||
|
value=$(echo "$line" | cut -d= -f 2 | sed 's/"//g')
|
||||||
|
sed -i "s/#$name/$value/g" library.json
|
||||||
|
done < library.properties
|
||||||
|
|
||||||
if [ "$1" == "" ]; then
|
if [ "$1" == "" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Syntax: $0 {new_version}"
|
echo "Syntax: $0 {new_version}"
|
||||||
@@ -16,13 +23,16 @@ else
|
|||||||
grep $current_version library.properties
|
grep $current_version library.properties
|
||||||
if [ "$?" == "0" ]; then
|
if [ "$?" == "0" ]; then
|
||||||
sed -i "s/$current_version/$1/" library.properties
|
sed -i "s/$current_version/$1/" library.properties
|
||||||
sed -i "s/$current_version/$1/" library.json
|
if [ 0 == 1 ]; then
|
||||||
git tag $1
|
git tag $1
|
||||||
git add library.properties
|
git add library.properties
|
||||||
git add library.json
|
git add library.json
|
||||||
git commit -m "Release $1"
|
git commit -m "Release $1"
|
||||||
git push
|
git push
|
||||||
git push --tags
|
git push --tags
|
||||||
|
else
|
||||||
|
echo "No git operation made"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Current version does not match library.property version, aborting"
|
echo "Current version does not match library.property version, aborting"
|
||||||
fi
|
fi
|
||||||
|
|||||||
20
library.json
Normal file
20
library.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "TinyMqtt",
|
||||||
|
"keywords": "ethernet, mqtt, m2m, iot",
|
||||||
|
"description": "MQTT is a lightweight messaging protocol. This library allows to host a broker or to use a mqtt client in your ESP 8266 or 32 WROOM. It does support MQTT 3.1.1 with QoS",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hsaturn/TinyMqtt.git"
|
||||||
|
},
|
||||||
|
"dependencies":
|
||||||
|
{ "hsaturn/TinyConsole" : "*" },
|
||||||
|
"version": "0.9.17",
|
||||||
|
"exclude": "",
|
||||||
|
"examples": "examples/*/*.ino",
|
||||||
|
"frameworks": "arduino",
|
||||||
|
"platforms": [
|
||||||
|
"atmelavr",
|
||||||
|
"espressif8266",
|
||||||
|
"espressif32"
|
||||||
|
]
|
||||||
|
}
|
||||||
18
library.json.skeleton
Normal file
18
library.json.skeleton
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "#name",
|
||||||
|
"keywords": "ethernet, mqtt, m2m, iot",
|
||||||
|
"description": "#paragraph",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hsaturn/TinyMqtt.git"
|
||||||
|
},
|
||||||
|
"version": "#version",
|
||||||
|
"exclude": "",
|
||||||
|
"examples": "examples/*/*.ino",
|
||||||
|
"frameworks": "arduino",
|
||||||
|
"platforms": [
|
||||||
|
"atmelavr",
|
||||||
|
"espressif8266",
|
||||||
|
"espressif32"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name=TinyMqtt
|
name=TinyMqtt
|
||||||
version=0.9.14
|
version=0.9.17
|
||||||
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.
|
||||||
@@ -7,5 +7,5 @@ paragraph=MQTT is a lightweight messaging protocol. This library allows to host
|
|||||||
category=Communication
|
category=Communication
|
||||||
url=https://github.com/hsaturn/TinyMqtt
|
url=https://github.com/hsaturn/TinyMqtt
|
||||||
architectures=*
|
architectures=*
|
||||||
depends=TinyConsole
|
depends=hsaturn/TinyConsole
|
||||||
includes=TinyMqtt.h
|
includes=TinyMqtt.h
|
||||||
|
|||||||
Reference in New Issue
Block a user