mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-18 05:42:12 +01:00
scripts/buildtable: Support License-Code header
This commit is contained in:
parent
21da438ad5
commit
41cabd2de5
@ -19,6 +19,7 @@ my %MayHaveMulti = (
|
||||
Author => undef,
|
||||
'Comments-URI' => undef,
|
||||
License => undef,
|
||||
'License-Code' => undef,
|
||||
'Post-History' => undef,
|
||||
);
|
||||
my %DateField = (
|
||||
@ -149,9 +150,9 @@ while (++$bipnum <= $topbip) {
|
||||
} elsif ($field eq 'Layer') { # BIP 123
|
||||
die "Invalid layer $val in $fn" unless exists $ValidLayer{$val};
|
||||
$layer = $val;
|
||||
} elsif ($field eq 'License') {
|
||||
} elsif ($field =~ /^License(?:\-Code)?$/) {
|
||||
die "Undefined license $val in $fn" unless exists $DefinedLicenses{$val};
|
||||
if (not $found{License}) {
|
||||
if (not $found{$field}) {
|
||||
die "Unacceptable license $val in $fn" unless exists $AcceptableLicenses{$val} or ($val eq 'PD' and exists $GrandfatheredPD{$bipnum});
|
||||
}
|
||||
} elsif ($field eq 'Comments-URI') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user