Pull request: scripts: zero patch version number in snapshot versions
Merge in DNS/adguard-home from fix-version to master Squashed commit of the following: commit 3cf64a13c881987dd1f2cd679f7ef8558cefee9a Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 4 19:48:17 2021 +0300 scripts: zero patch version number in snapshot versions
This commit is contained in:
parent
90ebc4d8c9
commit
8ead755b67
|
@ -11,8 +11,10 @@ set -e -f -u
|
||||||
readonly awk_program='/^v[0-9]+\.[0-9]+\.[0-9]+.*$/ {
|
readonly awk_program='/^v[0-9]+\.[0-9]+\.[0-9]+.*$/ {
|
||||||
if (!$4) {
|
if (!$4) {
|
||||||
# The last tag is a full release version, so bump the
|
# The last tag is a full release version, so bump the
|
||||||
# minor one to get the next one.
|
# minor release number and zero the patch release number
|
||||||
|
# to get the next release.
|
||||||
$2++;
|
$2++;
|
||||||
|
$3 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
print($1 "." $2 "." $3);
|
print($1 "." $2 "." $3);
|
||||||
|
|
Loading…
Reference in New Issue