mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-12 02:23:43 +00:00
separate major and minor numbers
This commit is contained in:
@@ -2,13 +2,21 @@
|
|||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
current_version = 3.23
|
current_version = 3.23
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?)?
|
parse = (?P<major>\d+)\.(?P<minor>\d+)
|
||||||
serialize =
|
serialize =
|
||||||
{major}.{minor}
|
{major}.{minor}
|
||||||
|
|
||||||
[bumpversion:file:src/libs/config.h]
|
[bumpversion:file:src/libs/config.h]
|
||||||
search = VERSION "{current_version}"
|
parse = (?P<major>\d+)
|
||||||
replace = VERSION "{new_version}"
|
serialize = {major}
|
||||||
|
search = VERSION_MAJOR {current_version}
|
||||||
|
replace = VERSION_MAJOR {new_version}
|
||||||
|
|
||||||
|
[bumpversion:file:./src/libs/config.h]
|
||||||
|
parse = <major>\d+\.(?P<minor>\d+)
|
||||||
|
serialize = {minor}
|
||||||
|
search = VERSION_MINOR {current_version}
|
||||||
|
replace = VERSION_MINOR {new_version}
|
||||||
|
|
||||||
[bumpversion:file:python/setup.py]
|
[bumpversion:file:python/setup.py]
|
||||||
search = version="{current_version}"
|
search = version="{current_version}"
|
||||||
|
|||||||
@@ -22,6 +22,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef VERSION
|
#define VERSION_MAJOR 3
|
||||||
# define VERSION "3.23"
|
#define VERSION_MINOR 23
|
||||||
#endif
|
|
||||||
|
#define MAKE_VERSION2(_major, _minor) #_major "." #_minor
|
||||||
|
#define MAKE_VERSION1(_major, _minor) MAKE_VERSION2(_major, _minor)
|
||||||
|
#define VERSION MAKE_VERSION1(VERSION_MAJOR, VERSION_MINOR)
|
||||||
|
|
||||||
|
#define VERSION_U ((unsigned)(VERSION_MAJOR * 1000 + VERSION_MINOR))
|
||||||
|
|||||||
Reference in New Issue
Block a user