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:
Ainar Garipov 2021-03-04 19:56:46 +03:00
parent 90ebc4d8c9
commit 8ead755b67
1 changed files with 3 additions and 1 deletions

View File

@ -11,8 +11,10 @@ set -e -f -u
readonly awk_program='/^v[0-9]+\.[0-9]+\.[0-9]+.*$/ {
if (!$4) {
# 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++;
$3 = 0;
}
print($1 "." $2 "." $3);