From 8ead755b67e06e09206299c013275b0890e4ab41 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Thu, 4 Mar 2021 19:56:46 +0300 Subject: [PATCH] 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 Date: Thu Mar 4 19:48:17 2021 +0300 scripts: zero patch version number in snapshot versions --- scripts/make/version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/make/version.sh b/scripts/make/version.sh index 08f9b482..9822ec2e 100644 --- a/scripts/make/version.sh +++ b/scripts/make/version.sh @@ -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);