Skip to content

Commit 41cabd2

Browse files
committed
scripts/buildtable: Support License-Code header
1 parent 21da438 commit 41cabd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/buildtable.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
Author => undef,
2020
'Comments-URI' => undef,
2121
License => undef,
22+
'License-Code' => undef,
2223
'Post-History' => undef,
2324
);
2425
my %DateField = (
@@ -149,9 +150,9 @@
149150
} elsif ($field eq 'Layer') { # BIP 123
150151
die "Invalid layer $val in $fn" unless exists $ValidLayer{$val};
151152
$layer = $val;
152-
} elsif ($field eq 'License') {
153+
} elsif ($field =~ /^License(?:\-Code)?$/) {
153154
die "Undefined license $val in $fn" unless exists $DefinedLicenses{$val};
154-
if (not $found{License}) {
155+
if (not $found{$field}) {
155156
die "Unacceptable license $val in $fn" unless exists $AcceptableLicenses{$val} or ($val eq 'PD' and exists $GrandfatheredPD{$bipnum});
156157
}
157158
} elsif ($field eq 'Comments-URI') {

0 commit comments

Comments
 (0)