From 0808aa091f09a13e0c09e52884b3b0fb4007bd5c Mon Sep 17 00:00:00 2001 From: Alexandre Roux D'Anzi Date: Thu, 27 Oct 2022 16:23:02 +0200 Subject: [PATCH] adding maintenance version --- config/version.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/version.mk b/config/version.mk index a4d05b19b..80dbb7445 100644 --- a/config/version.mk +++ b/config/version.mk @@ -1,6 +1,8 @@ ANDROID_LETTER := s PRODUCT_VERSION_MAJOR = 1 PRODUCT_VERSION_MINOR = 5 +PRODUCT_VERSION_MAINTENANCE := 0 +PRODUCT_PRERELEASE_STRING = "" ifdef PRODUCT_PRERELEASE ifdef PRODUCT_PRERELEASE_VERSION @@ -41,7 +43,11 @@ endif LINEAGE_VERSION_SUFFIX := $(LINEAGE_BUILD_DATE)$(CI_PIPELINE_ID)-$(LINEAGE_BUILDTYPE)$(LINEAGE_EXTRAVERSION)-$(LINEAGE_BUILD) # Internal version -LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +ifeq ($(PRODUCT_VERSION_MAINTENANCE),0) + LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +else + LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_PRERELEASE_STRING)-$(ANDROID_LETTER)-$(LINEAGE_VERSION_SUFFIX) +endif # Display version LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION) -- GitLab