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
|
Status: Closed
|
||||||
Type: Process
|
Type: Process
|
||||||
Assigned: 2016-02-03
|
Assigned: 2016-02-03
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause OR OPL
|
||||||
OPL
|
|
||||||
Replaces: 1
|
Replaces: 1
|
||||||
Proposed-Replacement: 3
|
Proposed-Replacement: 3
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Informational
|
Type: Informational
|
||||||
Assigned: 2017-02-01
|
Assigned: 2017-02-01
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -7,8 +7,7 @@
|
|||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2021-05-13
|
Assigned: 2021-05-13
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause OR OPL
|
||||||
OPL
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Informational
|
Type: Informational
|
||||||
Assigned: 2020-03-20
|
Assigned: 2020-03-20
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause OR OPL
|
||||||
OPL
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2017-05-22
|
Assigned: 2017-05-22
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Closed
|
Status: Closed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2017-01-13
|
Assigned: 2017-01-13
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause OR GNU-All-Permissive
|
||||||
GNU-All-Permissive
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -5,8 +5,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Process
|
Type: Process
|
||||||
Assigned: 2015-08-26
|
Assigned: 2015-08-26
|
||||||
License: CC0-1.0
|
License: CC0-1.0 OR GNU-All-Permissive
|
||||||
GNU-All-Permissive
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Closed
|
Status: Closed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2016-07-27
|
Assigned: 2016-07-27
|
||||||
License: CC-BY-SA-4.0
|
License: CC-BY-SA-4.0 OR OPL
|
||||||
OPL
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -5,8 +5,7 @@
|
|||||||
Status: Closed
|
Status: Closed
|
||||||
Type: Informational
|
Type: Informational
|
||||||
Assigned: 2017-03-29
|
Assigned: 2017-03-29
|
||||||
License: CC0-1.0
|
License: CC0-1.0 OR GNU-All-Permissive
|
||||||
GNU-All-Permissive
|
|
||||||
Discussion: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-April/013969.html
|
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/
|
https://bitco.in/forum/threads/bip9-generalized-version-bits-voting-bip-genvbvoting.1968/
|
||||||
Replaces: 9
|
Replaces: 9
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2016-01-30
|
Assigned: 2016-01-30
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause OR OPL
|
||||||
OPL
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2017-03-12
|
Assigned: 2017-03-12
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -6,8 +6,7 @@
|
|||||||
Status: Closed
|
Status: Closed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2017-04-14
|
Assigned: 2017-04-14
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -7,8 +7,7 @@
|
|||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2019-03-19
|
Assigned: 2019-03-19
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -9,8 +9,7 @@
|
|||||||
Status: Closed
|
Status: Closed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2017-03-27
|
Assigned: 2017-03-27
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -7,8 +7,7 @@
|
|||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Informational
|
Type: Informational
|
||||||
Assigned: 2018-03-10
|
Assigned: 2018-03-10
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -5,8 +5,7 @@
|
|||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2018-03-01
|
Assigned: 2018-03-01
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -10,9 +10,7 @@
|
|||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2020-01-19
|
Assigned: 2020-01-19
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
License-Code: BSD-2-Clause
|
License-Code: BSD-2-Clause OR MIT OR CC0-1.0
|
||||||
MIT
|
|
||||||
CC0-1.0
|
|
||||||
Discussion: 2018-07-06: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-July/016203.html [bitcoin-dev] Schnorr signatures BIP
|
Discussion: 2018-07-06: https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2018-July/016203.html [bitcoin-dev] Schnorr signatures BIP
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,7 @@
|
|||||||
Status: Deployed
|
Status: Deployed
|
||||||
Type: Specification
|
Type: Specification
|
||||||
Assigned: 2021-04-25
|
Assigned: 2021-04-25
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause OR CC0-1.0
|
||||||
CC0-1.0
|
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
==Abstract==
|
==Abstract==
|
||||||
|
|||||||
@ -136,13 +136,14 @@ while (++$bipnum <= $topbip) {
|
|||||||
}
|
}
|
||||||
my %found;
|
my %found;
|
||||||
my ($title, $authors, $status, $type, $layer);
|
my ($title, $authors, $status, $type, $layer);
|
||||||
my ($field, $val, @field_order);
|
my ($field, $val, @field_order, $continuation);
|
||||||
while (<$F>) {
|
while (<$F>) {
|
||||||
last if ($is_markdown && m[^```$]);
|
last if ($is_markdown && m[^```$]);
|
||||||
last if (!$is_markdown && m[^</pre>$]);
|
last if (!$is_markdown && m[^</pre>$]);
|
||||||
if (m[^ ([\w-]+)\: (.*\S)$]) {
|
if (m[^ ([\w-]+)\: (.*\S)$]) {
|
||||||
$field = $1;
|
$field = $1;
|
||||||
$val = $2;
|
$val = $2;
|
||||||
|
$continuation = 0;
|
||||||
die "Duplicate $field field in $fn" if exists $found{$field};
|
die "Duplicate $field field in $fn" if exists $found{$field};
|
||||||
die "Too many spaces in $fn" if $val =~ /^\s/;
|
die "Too many spaces in $fn" if $val =~ /^\s/;
|
||||||
} elsif (m[^ ( +)(.*\S)$]) {
|
} elsif (m[^ ( +)(.*\S)$]) {
|
||||||
@ -150,6 +151,7 @@ while (++$bipnum <= $topbip) {
|
|||||||
die "Too many spaces in $fn" if length $1 != 2 + length $field;
|
die "Too many spaces in $fn" if length $1 != 2 + length $field;
|
||||||
die "Not allowed for multi-value in $fn" unless exists $MayHaveMulti{$field};
|
die "Not allowed for multi-value in $fn" unless exists $MayHaveMulti{$field};
|
||||||
$val = $2;
|
$val = $2;
|
||||||
|
$continuation = 1;
|
||||||
} else {
|
} else {
|
||||||
die "Bad line in $fn preamble";
|
die "Bad line in $fn preamble";
|
||||||
}
|
}
|
||||||
@ -187,6 +189,8 @@ while (++$bipnum <= $topbip) {
|
|||||||
die "Invalid layer $val in $fn" unless exists $ValidLayer{$val};
|
die "Invalid layer $val in $fn" unless exists $ValidLayer{$val};
|
||||||
$layer = $val;
|
$layer = $val;
|
||||||
} elsif ($field =~ /^License(?:\-Code)?$/) {
|
} 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};
|
die "Undefined license $val in $fn" unless exists $DefinedLicenses{$val};
|
||||||
if (not $found{$field}) {
|
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});
|
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