mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
ensure there is a blank line before a changes entry and a release marker
This commit is contained in:
@@ -24,11 +24,11 @@ $\ = "\n"; # set output record separator
|
|||||||
|
|
||||||
$change = 0;
|
$change = 0;
|
||||||
$status = 0;
|
$status = 0;
|
||||||
|
$wasblank = 1;
|
||||||
|
|
||||||
line: while (<>) {
|
line: while (<>) {
|
||||||
($Fld1,$Fld2,$Fld3,$Fld4) = split(' ', $_, 9999);
|
($Fld1,$Fld2,$Fld3,$Fld4) = split(' ', $_, 9999);
|
||||||
$change = 0 if (!$master && $Fld1 eq "---" &&
|
$change = 0 if (!$master && /^\s+--- .* ---$/);
|
||||||
$Fld3 eq "released" && $Fld4 eq "---");
|
|
||||||
if ($Fld1 =~ /^[1-9][0-9]*\.$/ && $Fld2 =~ /^\[.*\]$/) {
|
if ($Fld1 =~ /^[1-9][0-9]*\.$/ && $Fld2 =~ /^\[.*\]$/) {
|
||||||
if ($change != 0 && $Fld1 >= $change) {
|
if ($change != 0 && $Fld1 >= $change) {
|
||||||
print 'bad change number', $Fld1;
|
print 'bad change number', $Fld1;
|
||||||
@@ -39,6 +39,21 @@ line: while (<>) {
|
|||||||
$status = 1;
|
$status = 1;
|
||||||
}
|
}
|
||||||
$change = $Fld1;
|
$change = $Fld1;
|
||||||
|
if (!$wasblank) {
|
||||||
|
print 'missing blank line before change', $Fld1;
|
||||||
|
$status = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (/^\s+--- .* ---$/) {
|
||||||
|
if (!$wasblank) {
|
||||||
|
print 'missing blank line before release marker for', $Fld2;
|
||||||
|
$status = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($Fld1 eq "") {
|
||||||
|
$wasblank = 1;
|
||||||
|
} else {
|
||||||
|
$wasblank = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user