From e78a72ec380608fe9c3b37940fc39c1cba69bfe6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 15 May 2022 23:50:08 -0400 Subject: [PATCH] fnsince.pl: Fix next version value to match new versioning scheme. --- build-scripts/fnsince.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build-scripts/fnsince.pl b/build-scripts/fnsince.pl index 6c69c5473..fde65c862 100755 --- a/build-scripts/fnsince.pl +++ b/build-scripts/fnsince.pl @@ -46,9 +46,15 @@ my @releases = sort { # this happens to work for how SDL versions things at the moment. my $current_release = $releases[-1]; -my @current_release_segments = split /\./, $current_release; -@current_release_segments[2] = '' . ($current_release_segments[2] + 2); -my $next_release = join('.', @current_release_segments); +my $next_release; + +if ($current_release eq '2.0.22') { # Hack for our jump from 2.0.22 to 2.24.0... + $next_release = '2.24.0'; +} else { + my @current_release_segments = split /\./, $current_release; + @current_release_segments[1] = '' . ($current_release_segments[1] + 2); + $next_release = join('.', @current_release_segments); +} #print("\n\nSORTED\n"); #foreach (@releases) {