Skip to content

Commit

Permalink
fnsince.pl: Deal with post-3.1.3 releases before 3.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 28, 2024
1 parent b8233af commit f022501
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build-scripts/fnsince.pl
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,15 @@
my $tag = $fulltags{$release};
my $blobname = "$tag:src/dynapi/SDL_dynapi_overrides.h";

if ($release =~ /\A3\.[01]\.\d+/) { # make everything up to the first SDL3 prerelease look like 3.1.3 (ABI lock version).
if ($release =~ /\A3\.(0\.\d+|1\.[0123])/) { # make everything up to the first SDL3 prerelease look like 3.1.3 (ABI lock version).
$release = '3.1.3';
}

else { $release = '3.2.0'; } # !!! FIXME: REMOVE ME WHEN 3.2.0 SHIPS!
# !!! FIXME: REMOVE ME WHEN 3.2.0 SHIPS!
elsif (not $release =~ /\A3\.1\.\d+/) { # a couple of releases after the initial 3.1.3, let them through.
$release = '3.2.0';
}
# !!! FIXME: REMOVE ME WHEN 3.2.0 SHIPS!

open(PIPEFH, '-|', "git show '$blobname'") or die "Failed to read git blob '$blobname': $!\n";
while (<PIPEFH>) {
Expand Down

0 comments on commit f022501

Please sign in to comment.