mirror of
https://github.com/bitcoin/bips.git
synced 2026-01-19 15:03:08 +00:00
Convert licenses to SPDX codes
This commit is contained in:
parent
24e96e870f
commit
2885f13d3f
@ -5,8 +5,7 @@
|
||||
Status: Closed
|
||||
Type: Process
|
||||
Assigned: 2016-02-03
|
||||
License: BSD-2-Clause
|
||||
OPL
|
||||
License: BSD-2-Clause OR OPL
|
||||
Replaces: 1
|
||||
Proposed-Replacement: 3
|
||||
</pre>
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Draft
|
||||
Type: Informational
|
||||
Assigned: 2017-02-01
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -7,8 +7,7 @@
|
||||
Status: Draft
|
||||
Type: Specification
|
||||
Assigned: 2021-05-13
|
||||
License: BSD-2-Clause
|
||||
OPL
|
||||
License: BSD-2-Clause OR OPL
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
@ -7,8 +7,7 @@
|
||||
Status: Deployed
|
||||
Type: Informational
|
||||
Assigned: 2020-03-20
|
||||
License: BSD-2-Clause
|
||||
OPL
|
||||
License: BSD-2-Clause OR OPL
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Deployed
|
||||
Type: Specification
|
||||
Assigned: 2017-05-22
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Closed
|
||||
Type: Specification
|
||||
Assigned: 2017-01-13
|
||||
License: BSD-2-Clause
|
||||
GNU-All-Permissive
|
||||
License: BSD-2-Clause OR GNU-All-Permissive
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -5,8 +5,7 @@
|
||||
Status: Deployed
|
||||
Type: Process
|
||||
Assigned: 2015-08-26
|
||||
License: CC0-1.0
|
||||
GNU-All-Permissive
|
||||
License: CC0-1.0 OR GNU-All-Permissive
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Closed
|
||||
Type: Specification
|
||||
Assigned: 2016-07-27
|
||||
License: CC-BY-SA-4.0
|
||||
OPL
|
||||
License: CC-BY-SA-4.0 OR OPL
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -5,8 +5,7 @@
|
||||
Status: Closed
|
||||
Type: Informational
|
||||
Assigned: 2017-03-29
|
||||
License: CC0-1.0
|
||||
GNU-All-Permissive
|
||||
License: CC0-1.0 OR GNU-All-Permissive
|
||||
Discussion: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-April/013969.html
|
||||
https://bitco.in/forum/threads/bip9-generalized-version-bits-voting-bip-genvbvoting.1968/
|
||||
Replaces: 9
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Deployed
|
||||
Type: Specification
|
||||
Assigned: 2016-01-30
|
||||
License: BSD-2-Clause
|
||||
OPL
|
||||
License: BSD-2-Clause OR OPL
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Deployed
|
||||
Type: Specification
|
||||
Assigned: 2017-03-12
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -6,8 +6,7 @@
|
||||
Status: Closed
|
||||
Type: Specification
|
||||
Assigned: 2017-04-14
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -7,8 +7,7 @@
|
||||
Status: Draft
|
||||
Type: Specification
|
||||
Assigned: 2019-03-19
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -9,8 +9,7 @@
|
||||
Status: Closed
|
||||
Type: Specification
|
||||
Assigned: 2017-03-27
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -7,8 +7,7 @@
|
||||
Status: Draft
|
||||
Type: Informational
|
||||
Assigned: 2018-03-10
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -5,8 +5,7 @@
|
||||
Status: Draft
|
||||
Type: Specification
|
||||
Assigned: 2018-03-01
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
Type: Specification
|
||||
Assigned: 2020-01-19
|
||||
License: BSD-2-Clause
|
||||
License-Code: BSD-2-Clause
|
||||
MIT
|
||||
CC0-1.0
|
||||
License-Code: BSD-2-Clause OR MIT OR CC0-1.0
|
||||
Discussion: 2018-07-06: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-July/016203.html [bitcoin-dev] Schnorr signatures BIP
|
||||
</pre>
|
||||
|
||||
|
||||
@ -7,8 +7,7 @@
|
||||
Status: Deployed
|
||||
Type: Specification
|
||||
Assigned: 2021-04-25
|
||||
License: BSD-3-Clause
|
||||
CC0-1.0
|
||||
License: BSD-3-Clause OR CC0-1.0
|
||||
</pre>
|
||||
|
||||
==Abstract==
|
||||
|
||||
@ -136,13 +136,14 @@ while (++$bipnum <= $topbip) {
|
||||
}
|
||||
my %found;
|
||||
my ($title, $authors, $status, $type, $layer);
|
||||
my ($field, $val, @field_order);
|
||||
my ($field, $val, @field_order, $continuation);
|
||||
while (<$F>) {
|
||||
last if ($is_markdown && m[^```$]);
|
||||
last if (!$is_markdown && m[^</pre>$]);
|
||||
if (m[^ ([\w-]+)\: (.*\S)$]) {
|
||||
$field = $1;
|
||||
$val = $2;
|
||||
$continuation = 0;
|
||||
die "Duplicate $field field in $fn" if exists $found{$field};
|
||||
die "Too many spaces in $fn" if $val =~ /^\s/;
|
||||
} elsif (m[^ ( +)(.*\S)$]) {
|
||||
@ -150,6 +151,7 @@ while (++$bipnum <= $topbip) {
|
||||
die "Too many spaces in $fn" if length $1 != 2 + length $field;
|
||||
die "Not allowed for multi-value in $fn" unless exists $MayHaveMulti{$field};
|
||||
$val = $2;
|
||||
$continuation = 1;
|
||||
} else {
|
||||
die "Bad line in $fn preamble";
|
||||
}
|
||||
@ -187,6 +189,8 @@ while (++$bipnum <= $topbip) {
|
||||
die "Invalid layer $val in $fn" unless exists $ValidLayer{$val};
|
||||
$layer = $val;
|
||||
} elsif ($field =~ /^License(?:\-Code)?$/) {
|
||||
die "License continued across lines in $fn, use SPDX expression (... OR $val) instead" if $continuation;
|
||||
$val =~ s/ OR .*//;
|
||||
die "Undefined license $val in $fn" unless exists $DefinedLicenses{$val};
|
||||
if (not $found{$field}) {
|
||||
die "Unacceptable license $val in $fn" unless exists $AcceptableLicenses{$val} or ($val eq 'PD' and exists $GrandfatheredPD{$bipnum}) or ($val eq 'CC-BY-SA-4.0' and exists $GrandfatheredCCBySA{$bipnum});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user