Update upstream source from tag 'upstream/2.3.0'
Update to upstream version '2.3.0'
with Debian dir 9670d8fd8048ac95f5f38ace781bf7a162874e8c
Xavier Guimard
3 years ago
|
0 |
#!/usr/bin/env node
|
|
1 |
var fs = require('fs')
|
|
2 |
var https = require('https')
|
|
3 |
|
|
4 |
https.request('https://spdx.org/licenses/exceptions.json', function (response) {
|
|
5 |
if (response.statusCode !== 200) {
|
|
6 |
console.error('spdx.org responded ' + response.statusCode)
|
|
7 |
process.exit(1)
|
|
8 |
}
|
|
9 |
var chunks = []
|
|
10 |
response
|
|
11 |
.on('data', function (chunk) {
|
|
12 |
chunks.push(chunk)
|
|
13 |
})
|
|
14 |
.once('end', function () {
|
|
15 |
var buffer = Buffer.concat(chunks)
|
|
16 |
var parsed = JSON.parse(buffer)
|
|
17 |
var output = parsed.exceptions
|
|
18 |
.map(function (exception) {
|
|
19 |
return exception.licenseExceptionId
|
|
20 |
})
|
|
21 |
.sort(function (a, b) {
|
|
22 |
return a.toLowerCase().localeCompare(b.toLowerCase())
|
|
23 |
})
|
|
24 |
fs.writeFile(
|
|
25 |
'index.json',
|
|
26 |
JSON.stringify(output, null, 2) + '\n',
|
|
27 |
function (error) {
|
|
28 |
if (error) throw error
|
|
29 |
}
|
|
30 |
)
|
|
31 |
})
|
|
32 |
}).end()
|
14 | 14 |
"GCC-exception-2.0",
|
15 | 15 |
"GCC-exception-3.1",
|
16 | 16 |
"gnu-javamail-exception",
|
|
17 |
"GPL-3.0-linking-exception",
|
|
18 |
"GPL-3.0-linking-source-exception",
|
|
19 |
"GPL-CC-1.0",
|
17 | 20 |
"i2p-gpl-java-exception",
|
18 | 21 |
"Libtool-exception",
|
19 | 22 |
"Linux-syscall-note",
|
|
21 | 24 |
"LZMA-exception",
|
22 | 25 |
"mif-exception",
|
23 | 26 |
"Nokia-Qt-exception-1.1",
|
|
27 |
"OCaml-LGPL-linking-exception",
|
24 | 28 |
"OCCT-exception-1.0",
|
25 | 29 |
"OpenJDK-assembly-exception-1.0",
|
26 | 30 |
"openvpn-openssl-exception",
|
|
28 | 32 |
"Qt-GPL-exception-1.0",
|
29 | 33 |
"Qt-LGPL-exception-1.1",
|
30 | 34 |
"Qwt-exception-1.0",
|
|
35 |
"Swift-exception",
|
31 | 36 |
"u-boot-exception-2.0",
|
|
37 |
"Universal-FOSS-exception-1.0",
|
32 | 38 |
"WxWindows-exception-3.1"
|
33 | 39 |
]
|
0 | 0 |
{
|
1 | 1 |
"name": "spdx-exceptions",
|
2 | 2 |
"description": "list of SPDX standard license exceptions",
|
3 | |
"version": "2.2.0",
|
|
3 |
"version": "2.3.0",
|
4 | 4 |
"author": "The Linux Foundation",
|
5 | 5 |
"contributors": [
|
6 | 6 |
"Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com/)"
|
7 | 7 |
],
|
8 | 8 |
"license": "CC-BY-3.0",
|
9 | |
"repository": "kemitchell/spdx-exceptions.json"
|
|
9 |
"repository": "kemitchell/spdx-exceptions.json",
|
|
10 |
"files": [
|
|
11 |
"index.json"
|
|
12 |
],
|
|
13 |
"scripts": {
|
|
14 |
"build": "node build.js"
|
|
15 |
}
|
10 | 16 |
}
|