Skip to content

Commit

Permalink
version bump + version bump process described in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xHasKx committed Jul 27, 2022
1 parent 2fde9d0 commit 579c90b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,15 @@ Both protocols has full control packets support.
# LICENSE

Standard MIT License, see LICENSE file for full text

# Version bump checklist

* in file `./mqtt/init.lua`: change `_VERSION` table field
* in file `./openwrt/make-package-without-openwrt-sources.sh`: change `Version: X.Y.Z-P` in $PKG_ROOT/control
* in file `./openwrt/Makefile`: change `PKG_VERSION:=X.Y.Z` and maybe `PKG_RELEASE:=1`
* in file `./luamqtt-X.Y.Z-P.rockspec`: change `version = "X.Y.Z-P"`, `tag = "vX.Y.Z"`, and rename the file itself
* run `./tests/run-for-all-lua-versions.sh` and check output for errors
* run `./openwrt/make-package-without-openwrt-sources.sh` and check output for errors
* run `git commit`, `git tag vX.Y.Z`
* upload renamed `./luamqtt-X.Y.Z-P.rockspec` to https://luarocks.org/upload
* run `git push`, `git push --tags`
4 changes: 2 additions & 2 deletions luamqtt-3.4.2-4.rockspec → luamqtt-3.4.3-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "luamqtt"
version = "3.4.2-4"
version = "3.4.3-1"
source = {
url = "git+https://github.com/xHasKx/luamqtt.git",
tag = "v3.4.2",
tag = "v3.4.3",
}
description = {
summary = "luamqtt - Pure-lua MQTT v3.1.1 and v5.0 client",
Expand Down
2 changes: 1 addition & 1 deletion mqtt/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local mqtt = {
v50 = 5, -- supported protocol version, MQTT v5.0

-- mqtt library version
_VERSION = "3.4.2",
_VERSION = "3.4.3",
}

-- load required stuff
Expand Down
2 changes: 1 addition & 1 deletion openwrt/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luamqtt
PKG_VERSION:=3.4.2
PKG_VERSION:=3.4.3
PKG_RELEASE:=1
PKG_MAINTAINER:=Alexander Kiranov <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion openwrt/make-package-without-openwrt-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rm -rf $PKG_ROOT/usr
# prepare control.tar.gz
cat << EOF > $PKG_ROOT/control
Package: luamqtt
Version: 3.4.2-2
Version: 3.4.3-1
Depends: libc, lua, luasocket, luabitop, luasec
Source: https://github.com/xHasKx/luamqtt
SourceName: luamqtt
Expand Down

0 comments on commit 579c90b

Please sign in to comment.