release-notes.pl: enable warnings, fix them

This commit is contained in:
Viktor Szakats 2025-07-11 15:00:35 +02:00
parent fbca901d39
commit 78b0ee0d84
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -54,7 +54,10 @@
#
################################################
my $cleanup = ($ARGV[0] eq "cleanup");
use strict;
use warnings;
my $cleanup = (@ARGV && $ARGV[0] eq "cleanup");
my @gitlog=`git log @^{/RELEASE-NOTES:.synced}..` if(!$cleanup);
my @releasenotes=`cat RELEASE-NOTES`;
@ -120,6 +123,12 @@ sub extract {
# false alarm, not a valid line
}
my @fixes;
my @closes;
my @bug;
my @line;
my %moreinfo;
my $short;
my $first;
for my $l (@gitlog) {
@ -167,7 +176,7 @@ if($first) {
# call at the end of a parsed commit
sub onecommit {
my ($short)=@_;
my $ref;
my $ref = '';
if($dupe{$short}) {
# this git commit message was found in the file