summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2016-12-15 04:20:10 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2016-12-15 04:20:14 +0000
commit42770fb6194f0e55a7e7139cf7fe97f5c8f84f4e (patch)
treec4b9113fa64bb31912d41ffe7968a6bfaf4629ff /scripts
parent959fecc15bdad070afa63455468b1dba54655fa6 (diff)
Bugfix: scripts/buildtable: Increment found marker *after* processing the header
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildtable.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildtable.pl b/scripts/buildtable.pl
index ca2f4b8..c2392af 100755
--- a/scripts/buildtable.pl
+++ b/scripts/buildtable.pl
@@ -115,7 +115,6 @@ while (++$bipnum <= $topbip) {
} else {
die "Bad line in $fn preamble";
}
- ++$found{$field};
die "Extra spaces in $fn" if $val =~ /^\s/;
if ($field eq 'BIP') {
die "$fn claims to be BIP $val" if $val ne $bipnum;
@@ -163,6 +162,7 @@ while (++$bipnum <= $topbip) {
} elsif (not exists $MiscField{$field}) {
die "Unknown field $field in $fn";
}
+ ++$found{$field};
}
if (not $found{License}) {
die "Missing License in $fn" unless exists $TolerateMissingLicense{$bipnum};