fnsince.pl: Fix next version value to match new versioning scheme.

This commit is contained in:
Ryan C. Gordon 2022-05-15 23:50:08 -04:00
parent bfac54b59c
commit e78a72ec38
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 9 additions and 3 deletions

View File

@ -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) {