From a18ea4b1a5a40c3ea32982c9bf75f6d2605eb163 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Thu, 7 Mar 2024 11:59:38 -0500 Subject: [PATCH] test patch limit --- CMakeLists.txt | 2 +- commit.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56333e9..f173b76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5) include(cmake/color.cmake) -set(BLT_VERSION 0.14.1) +set(BLT_VERSION 0.14.0) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/commit.py b/commit.py index dca8d9c..4c2f868 100755 --- a/commit.py +++ b/commit.py @@ -8,6 +8,7 @@ import subprocess VERSION_BEGIN_STR = "set(BLT_VERSION " VERSION_END_STR = ")" +PATCH_LIMIT = 10 #--------------------------------------- # DO NOT TOUCH @@ -56,6 +57,8 @@ def inc_minor(cmake_text): def inc_patch(cmake_text): version_parts, begin, end = split_version(cmake_text) + if int(version_parts[2]) + 1 >= PATCH_LIMIT: + return inc_minor(cmake_text) version_parts[2] = str(int(version_parts[2]) + 1) return recombine(cmake_text, version_parts, begin, end)