From 41cabd2de5eeaf6b905d7464d18ab16c21774a68 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 29 Oct 2017 04:04:07 +0000 Subject: [PATCH] scripts/buildtable: Support License-Code header --- scripts/buildtable.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/buildtable.pl b/scripts/buildtable.pl index 36701a5..144ede6 100755 --- a/scripts/buildtable.pl +++ b/scripts/buildtable.pl @@ -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') {