summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-12 12:54:47 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-03-12 08:59:43 +0100
commitb502d204d7c9ad5ff6f6e2beb5d3e2e1546c295a (patch)
treea8ed563faa6133ac8b5498fba090d0346bde54ba
parenta7c077494b0e855b505f8152e78fc1abccb002dd (diff)
downloadptxdist-b502d204d7c9ad5ff6f6e2beb5d3e2e1546c295a.tar.gz
ptxdist-b502d204d7c9ad5ff6f6e2beb5d3e2e1546c295a.tar.xz
ptxd_make_spdx: update with new script
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_spdx.sh273
1 files changed, 161 insertions, 112 deletions
diff --git a/scripts/lib/ptxd_make_spdx.sh b/scripts/lib/ptxd_make_spdx.sh
index 5e3a97d49..acb094907 100644
--- a/scripts/lib/ptxd_make_spdx.sh
+++ b/scripts/lib/ptxd_make_spdx.sh
@@ -1,6 +1,7 @@
+
#!/bin/bash
#
-# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+# Copyright (C) 2018 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -9,100 +10,81 @@
#
#
-# WARNING: This file is generated with 'update_spdx.sh' from
-# 'spdx_licenselist_v2.5.csv' and 'spdx_licenselist_v2.5_exceptions.csv'.
+# WARNING: This file is generated with 'update_spdx.py' from
+# 'licenses.json' and 'exceptions.json'.
#
-# To regenerate this file export the license and exception sheets from the
-# original SPDX license list using '|' as field delimiter and run
-# 'update_spdx.sh'.
+# The source files can be found in the SPDX data repository:
+# https://github.com/spdx/license-list-data.git
ptxd_make_spdx() {
license="${1}"
case "${license}" in
- Glide) ;;
+ 0BSD) ;;
+ AAL) osi="true" ;;
Abstyles) ;;
+ Adobe-2006) ;;
+ Adobe-Glyph) ;;
+ ADSL) ;;
AFL-1.1) osi="true" ;;
AFL-1.2) osi="true" ;;
AFL-2.0) osi="true" ;;
AFL-2.1) osi="true" ;;
AFL-3.0) osi="true" ;;
- AMPAS) ;;
- APL-1.0) osi="true" ;;
- Adobe-Glyph) ;;
- APAFML) ;;
- Adobe-2006) ;;
- AGPL-1.0) ;;
Afmparse) ;;
+ AGPL-1.0) ;;
+ AGPL-3.0-only) osi="true" ;;
+ AGPL-3.0-or-later) osi="true" ;;
Aladdin) ;;
- ADSL) ;;
AMDPLPA) ;;
+ AML) ;;
+ AMPAS) ;;
ANTLR-PD) ;;
Apache-1.0) ;;
Apache-1.1) osi="true" ;;
Apache-2.0) osi="true" ;;
- AML) ;;
+ APAFML) ;;
+ APL-1.0) osi="true" ;;
APSL-1.0) osi="true" ;;
APSL-1.1) osi="true" ;;
APSL-1.2) osi="true" ;;
APSL-2.0) osi="true" ;;
- Artistic-1.0) osi="true" ;;
- Artistic-1.0-Perl) osi="true" ;;
Artistic-1.0-cl8) osi="true" ;;
+ Artistic-1.0-Perl) osi="true" ;;
+ Artistic-1.0) osi="true" ;;
Artistic-2.0) osi="true" ;;
- AAL) osi="true" ;;
Bahyph) ;;
Barr) ;;
Beerware) ;;
BitTorrent-1.0) ;;
BitTorrent-1.1) ;;
- BSL-1.0) osi="true" ;;
Borceux) ;;
- BSD-2-Clause) osi="true" ;;
+ BSD-1-Clause) ;;
BSD-2-Clause-FreeBSD) ;;
BSD-2-Clause-NetBSD) ;;
- BSD-3-Clause) osi="true" ;;
+ BSD-2-Clause-Patent) osi="true" ;;
+ BSD-2-Clause) osi="true" ;;
+ BSD-3-Clause-Attribution) ;;
BSD-3-Clause-Clear) ;;
- BSD-3-Clause-No-Nuclear-License) ;;
+ BSD-3-Clause-LBNL) ;;
BSD-3-Clause-No-Nuclear-License-2014) ;;
+ BSD-3-Clause-No-Nuclear-License) ;;
BSD-3-Clause-No-Nuclear-Warranty) ;;
+ BSD-3-Clause) osi="true" ;;
+ BSD-4-Clause-UC) ;;
BSD-4-Clause) ;;
BSD-Protection) ;;
BSD-Source-Code) ;;
- BSD-3-Clause-Attribution) ;;
- 0BSD) osi="true" ;;
- BSD-4-Clause-UC) ;;
+ BSL-1.0) osi="true" ;;
bzip2-1.0.5) ;;
bzip2-1.0.6) ;;
Caldera) ;;
- CECILL-1.0) ;;
- CECILL-1.1) ;;
- CECILL-2.0) ;;
- CECILL-2.1) osi="true" ;;
- CECILL-B) ;;
- CECILL-C) ;;
- ClArtistic) ;;
- MIT-CMU) ;;
- CNRI-Jython) ;;
- CNRI-Python) osi="true" ;;
- CNRI-Python-GPL-Compatible) ;;
- CPOL-1.02) ;;
- CDDL-1.0) osi="true" ;;
- CDDL-1.1) ;;
- CPAL-1.0) osi="true" ;;
- CPL-1.0) osi="true" ;;
CATOSL-1.1) osi="true" ;;
- Condor-1.1) ;;
CC-BY-1.0) ;;
CC-BY-2.0) ;;
CC-BY-2.5) ;;
CC-BY-3.0) ;;
CC-BY-4.0) ;;
- CC-BY-ND-1.0) ;;
- CC-BY-ND-2.0) ;;
- CC-BY-ND-2.5) ;;
- CC-BY-ND-3.0) ;;
- CC-BY-ND-4.0) ;;
CC-BY-NC-1.0) ;;
CC-BY-NC-2.0) ;;
CC-BY-NC-2.5) ;;
@@ -118,12 +100,35 @@ ptxd_make_spdx() {
CC-BY-NC-SA-2.5) ;;
CC-BY-NC-SA-3.0) ;;
CC-BY-NC-SA-4.0) ;;
+ CC-BY-ND-1.0) ;;
+ CC-BY-ND-2.0) ;;
+ CC-BY-ND-2.5) ;;
+ CC-BY-ND-3.0) ;;
+ CC-BY-ND-4.0) ;;
CC-BY-SA-1.0) ;;
CC-BY-SA-2.0) ;;
CC-BY-SA-2.5) ;;
CC-BY-SA-3.0) ;;
CC-BY-SA-4.0) ;;
CC0-1.0) ;;
+ CDDL-1.0) osi="true" ;;
+ CDDL-1.1) ;;
+ CDLA-Permissive-1.0) ;;
+ CDLA-Sharing-1.0) ;;
+ CECILL-1.0) ;;
+ CECILL-1.1) ;;
+ CECILL-2.0) ;;
+ CECILL-2.1) osi="true" ;;
+ CECILL-B) ;;
+ CECILL-C) ;;
+ ClArtistic) ;;
+ CNRI-Jython) ;;
+ CNRI-Python-GPL-Compatible) ;;
+ CNRI-Python) osi="true" ;;
+ Condor-1.1) ;;
+ CPAL-1.0) osi="true" ;;
+ CPL-1.0) osi="true" ;;
+ CPOL-1.02) ;;
Crossword) ;;
CrystalStacker) ;;
CUA-OPL-1.0) osi="true" ;;
@@ -131,130 +136,142 @@ ptxd_make_spdx() {
curl) ;;
D-FSL-1.0) ;;
diffmark) ;;
- WTFPL) ;;
DOC) ;;
Dotseqn) ;;
DSDP) ;;
dvipdfm) ;;
- EPL-1.0) osi="true" ;;
ECL-1.0) osi="true" ;;
ECL-2.0) osi="true" ;;
- eGenix) ;;
EFL-1.0) osi="true" ;;
EFL-2.0) osi="true" ;;
- MIT-advertising) ;;
- MIT-enna) ;;
+ eGenix) ;;
Entessa) osi="true" ;;
+ EPL-1.0) osi="true" ;;
+ EPL-2.0) osi="true" ;;
ErlPL-1.1) ;;
EUDatagrid) osi="true" ;;
EUPL-1.0) ;;
EUPL-1.1) osi="true" ;;
+ EUPL-1.2) osi="true" ;;
Eurosym) ;;
Fair) osi="true" ;;
- MIT-feh) ;;
Frameworx-1.0) osi="true" ;;
FreeImage) ;;
- FTL) ;;
FSFAP) ;;
FSFUL) ;;
FSFULLR) ;;
+ FTL) ;;
+ GFDL-1.1-only) ;;
+ GFDL-1.1-or-later) ;;
+ GFDL-1.2-only) ;;
+ GFDL-1.2-or-later) ;;
+ GFDL-1.3-only) ;;
+ GFDL-1.3-or-later) ;;
Giftware) ;;
GL2PS) ;;
+ Glide) ;;
Glulxe) ;;
- AGPL-3.0) osi="true" ;;
- GFDL-1.1) ;;
- GFDL-1.2) ;;
- GFDL-1.3) ;;
- GPL-1.0) ;;
- GPL-2.0) osi="true" ;;
- GPL-3.0) osi="true" ;;
- LGPL-2.1) osi="true" ;;
- LGPL-3.0) osi="true" ;;
- LGPL-2.0) osi="true" ;;
gnuplot) ;;
+ GPL-1.0-only) ;;
+ GPL-1.0-or-later) ;;
+ GPL-2.0-only) osi="true" ;;
+ GPL-2.0-or-later) osi="true" ;;
+ GPL-3.0-only) osi="true" ;;
+ GPL-3.0-or-later) osi="true" ;;
gSOAP-1.3b) ;;
HaskellReport) ;;
HPND) osi="true" ;;
IBM-pibs) ;;
- IPL-1.0) osi="true" ;;
ICU) ;;
+ IJG) ;;
ImageMagick) ;;
iMatix) ;;
Imlib2) ;;
- IJG) ;;
Info-ZIP) ;;
Intel-ACPI) ;;
Intel) osi="true" ;;
Interbase-1.0) ;;
IPA) osi="true" ;;
+ IPL-1.0) osi="true" ;;
ISC) osi="true" ;;
JasPer-2.0) ;;
JSON) ;;
- LPPL-1.0) ;;
- LPPL-1.1) ;;
- LPPL-1.2) ;;
- LPPL-1.3a) ;;
- LPPL-1.3c) osi="true" ;;
+ LAL-1.2) ;;
+ LAL-1.3) ;;
Latex2e) ;;
- BSD-3-Clause-LBNL) ;;
Leptonica) ;;
+ LGPL-2.0-only) osi="true" ;;
+ LGPL-2.0-or-later) osi="true" ;;
+ LGPL-2.1-only) osi="true" ;;
+ LGPL-2.1-or-later) osi="true" ;;
+ LGPL-3.0-only) osi="true" ;;
+ LGPL-3.0-or-later) osi="true" ;;
LGPLLR) ;;
Libpng) ;;
libtiff) ;;
- LAL-1.2) ;;
- LAL-1.3) ;;
LiLiQ-P-1.1) osi="true" ;;
- LiLiQ-Rplus-1.1) osi="true" ;;
LiLiQ-R-1.1) osi="true" ;;
- LPL-1.02) osi="true" ;;
+ LiLiQ-Rplus-1.1) osi="true" ;;
LPL-1.0) osi="true" ;;
+ LPL-1.02) osi="true" ;;
+ LPPL-1.0) ;;
+ LPPL-1.1) ;;
+ LPPL-1.2) ;;
+ LPPL-1.3a) ;;
+ LPPL-1.3c) osi="true" ;;
MakeIndex) ;;
- MTLL) ;;
- MS-PL) osi="true" ;;
- MS-RL) osi="true" ;;
MirOS) osi="true" ;;
- MITNFA) ;;
+ MIT-advertising) ;;
+ MIT-CMU) ;;
+ MIT-enna) ;;
+ MIT-feh) ;;
MIT) osi="true" ;;
+ MITNFA) ;;
Motosoto) osi="true" ;;
+ mpich2) ;;
MPL-1.0) osi="true" ;;
MPL-1.1) osi="true" ;;
- MPL-2.0) osi="true" ;;
MPL-2.0-no-copyleft-exception) osi="true" ;;
- mpich2) ;;
+ MPL-2.0) osi="true" ;;
+ MS-PL) osi="true" ;;
+ MS-RL) osi="true" ;;
+ MTLL) ;;
Multics) osi="true" ;;
Mup) ;;
NASA-1.3) osi="true" ;;
Naumen) osi="true" ;;
NBPL-1.0) ;;
+ NCSA) osi="true" ;;
+ Net-SNMP) ;;
NetCDF) ;;
+ Newsletr) ;;
NGPL) osi="true" ;;
+ NLOD-1.0) ;;
+ NLPL) ;;
+ Nokia) osi="true" ;;
NOSL) ;;
+ Noweb) ;;
NPL-1.0) ;;
NPL-1.1) ;;
- Newsletr) ;;
- NLPL) ;;
- Nokia) osi="true" ;;
NPOSL-3.0) osi="true" ;;
- NLOD-1.0) ;;
- Noweb) ;;
NRL) ;;
NTP) osi="true" ;;
- Nunit) ;;
+ OCCT-PL) ;;
OCLC-2.0) osi="true" ;;
ODbL-1.0) ;;
- PDDL-1.0) ;;
- OCCT-PL) ;;
+ OFL-1.0) ;;
+ OFL-1.1) osi="true" ;;
OGTSL) osi="true" ;;
- OLDAP-2.2.2) ;;
OLDAP-1.1) ;;
OLDAP-1.2) ;;
OLDAP-1.3) ;;
OLDAP-1.4) ;;
- OLDAP-2.0) ;;
OLDAP-2.0.1) ;;
+ OLDAP-2.0) ;;
OLDAP-2.1) ;;
- OLDAP-2.2) ;;
OLDAP-2.2.1) ;;
+ OLDAP-2.2.2) ;;
+ OLDAP-2.2) ;;
OLDAP-2.3) ;;
OLDAP-2.4) ;;
OLDAP-2.5) ;;
@@ -262,14 +279,15 @@ ptxd_make_spdx() {
OLDAP-2.7) ;;
OLDAP-2.8) ;;
OML) ;;
+ OpenSSL) ;;
OPL-1.0) ;;
+ OSET-PL-2.1) osi="true" ;;
OSL-1.0) osi="true" ;;
OSL-1.1) ;;
OSL-2.0) osi="true" ;;
OSL-2.1) osi="true" ;;
OSL-3.0) osi="true" ;;
- OpenSSL) ;;
- OSET-PL-2.1) osi="true" ;;
+ PDDL-1.0) ;;
PHP-3.0) osi="true" ;;
PHP-3.01) ;;
Plexus) ;;
@@ -277,58 +295,60 @@ ptxd_make_spdx() {
psfrag) ;;
psutils) ;;
Python-2.0) osi="true" ;;
- QPL-1.0) osi="true" ;;
Qhull) ;;
+ QPL-1.0) osi="true" ;;
Rdisc) ;;
- RPSL-1.0) osi="true" ;;
+ RHeCos-1.1) ;;
RPL-1.1) osi="true" ;;
RPL-1.5) osi="true" ;;
- RHeCos-1.1) ;;
- RSCPL) osi="true" ;;
+ RPSL-1.0) osi="true" ;;
RSA-MD) ;;
+ RSCPL) osi="true" ;;
Ruby) ;;
SAX-PD) ;;
Saxpath) ;;
SCEA) ;;
- SWL) ;;
- SMPPL) ;;
Sendmail) ;;
SGI-B-1.0) ;;
SGI-B-1.1) ;;
SGI-B-2.0) ;;
- OFL-1.0) ;;
- OFL-1.1) osi="true" ;;
SimPL-2.0) osi="true" ;;
+ SISSL-1.2) ;;
+ SISSL) osi="true" ;;
Sleepycat) osi="true" ;;
+ SMLNJ) ;;
+ SMPPL) ;;
SNIA) ;;
Spencer-86) ;;
Spencer-94) ;;
Spencer-99) ;;
- SMLNJ) ;;
- SugarCRM-1.1.3) ;;
- SISSL) osi="true" ;;
- SISSL-1.2) ;;
SPL-1.0) osi="true" ;;
- Watcom-1.0) osi="true" ;;
+ SugarCRM-1.1.3) ;;
+ SWL) ;;
TCL) ;;
- Unlicense) ;;
+ TCP-wrappers) ;;
TMate) ;;
TORQUE-1.1) ;;
TOSL) ;;
+ Unicode-DFS-2015) ;;
+ Unicode-DFS-2016) ;;
Unicode-TOU) ;;
+ Unlicense) ;;
UPL-1.0) osi="true" ;;
- NCSA) osi="true" ;;
Vim) ;;
VOSTROM) ;;
VSL-1.0) osi="true" ;;
W3C-19980720) ;;
+ W3C-20150513) ;;
W3C) osi="true" ;;
+ Watcom-1.0) osi="true" ;;
Wsuipa) ;;
- Xnet) osi="true" ;;
+ WTFPL) ;;
X11) ;;
Xerox) ;;
XFree86-1.1) ;;
xinetd) ;;
+ Xnet) osi="true" ;;
xpp) ;;
XSkat) ;;
YPL-1.0) ;;
@@ -337,15 +357,43 @@ ptxd_make_spdx() {
Zend-2.0) ;;
Zimbra-1.3) ;;
Zimbra-1.4) ;;
- Zlib) osi="true" ;;
zlib-acknowledgement) ;;
+ Zlib) osi="true" ;;
ZPL-1.1) ;;
ZPL-2.0) osi="true" ;;
ZPL-2.1) ;;
+ AGPL-3.0) deprecated="true" ;;
+ eCos-2.0) deprecated="true" ;;
+ GFDL-1.1) deprecated="true" ;;
+ GFDL-1.2) deprecated="true" ;;
+ GFDL-1.3) deprecated="true" ;;
+ GPL-1.0+) deprecated="true" ;;
+ GPL-1.0) deprecated="true" ;;
+ GPL-2.0+) deprecated="true" ;;
+ GPL-2.0-with-autoconf-exception) deprecated="true" ;;
+ GPL-2.0-with-bison-exception) deprecated="true" ;;
+ GPL-2.0-with-classpath-exception) deprecated="true" ;;
+ GPL-2.0-with-font-exception) deprecated="true" ;;
+ GPL-2.0-with-GCC-exception) deprecated="true" ;;
+ GPL-2.0) deprecated="true" ;;
+ GPL-3.0+) deprecated="true" ;;
+ GPL-3.0-with-autoconf-exception) deprecated="true" ;;
+ GPL-3.0-with-GCC-exception) deprecated="true" ;;
+ GPL-3.0) deprecated="true" ;;
+ LGPL-2.0+) deprecated="true" ;;
+ LGPL-2.0) deprecated="true" ;;
+ LGPL-2.1+) deprecated="true" ;;
+ LGPL-2.1) deprecated="true" ;;
+ LGPL-3.0+) deprecated="true" ;;
+ LGPL-3.0) deprecated="true" ;;
+ Nunit) deprecated="true" ;;
+ StandardML-NJ) deprecated="true" ;;
+ wxWindows) deprecated="true" ;;
389-exception) exception="true" ;;
Autoconf-exception-2.0) exception="true" ;;
Autoconf-exception-3.0) exception="true" ;;
Bison-exception-2.2) exception="true" ;;
+ Bootloader-exception) exception="true" ;;
Classpath-exception-2.0) exception="true" ;;
CLISP-exception-2.0) exception="true" ;;
DigiRule-FOSS-exception) exception="true" ;;
@@ -359,6 +407,7 @@ ptxd_make_spdx() {
gnu-javamail-exception) exception="true" ;;
i2p-gpl-java-exception) exception="true" ;;
Libtool-exception) exception="true" ;;
+ Linux-syscall-note) exception="true" ;;
LZMA-exception) exception="true" ;;
mif-exception) exception="true" ;;
Nokia-Qt-exception-1.1) exception="true" ;;