Skip to content

Commit

Permalink
Add overrides parsing (Fix aboutcode-org#4122)
Browse files Browse the repository at this point in the history
Signed-off-by: Diviz Bansal <[email protected]>
  • Loading branch information
divizbansal committed Feb 4, 2025
1 parent 7922295 commit 56aa1e7
Show file tree
Hide file tree
Showing 55 changed files with 5,971 additions and 5,971 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
key: bash-exception-gpl
short_name: Bash exception to GPL
name: Bash exception to GPL
category: Copyleft
owner: Free Software Foundation (FSF)
notes: this used with GPL 1.0 and 2.0. It was removed from the V3 text https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8
is_exception: yes
spdx_license_key: LicenseRef-scancode-bash-exception-gpl-2.0
text_urls:
- https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283
---

The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
---
key: bash-exception-gpl
short_name: Bash exception to GPL
name: Bash exception to GPL
category: Copyleft
owner: Free Software Foundation (FSF)
notes: this used with GPL 1.0 and 2.0. It was removed from the V3 text https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8
is_exception: yes
spdx_license_key: LicenseRef-scancode-bash-exception-gpl-2.0
text_urls:
- https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283
---
The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
based primarily on Bash as opposed to other GNU software.
346 changes: 173 additions & 173 deletions tests/licensedcode/data/license_db/license_dump/bash-exception-gpl.html
Original file line number Diff line number Diff line change
@@ -1,174 +1,174 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LicenseDB: bash-exception-gpl</title>
<style>
table.dataTable {visibility: visible!important;}
.dataTables_filter {display: none;}
table.dataTable thead th, table.dataTable thead td {padding: 8px!important; border-top: 1px solid #111;}
.dataTables_wrapper .dataTables_info {padding: 0 0 2px!important; font-size: .75rem!important; color: #3b4351!important;}
header {padding-top: .4rem; padding-bottom: .4rem;}
footer {background-color: #f7f8f9; color: #bcc3ce; padding: 1.5rem .75rem 1rem; margin-top: 1em;}
a:visited {color: #5755d9!important;}
.navbar .nav-item {color:#66758c;padding: .25rem .4rem;}
.navbar .nav-item a, .navbar .nav-item a:visited {color:#66758c !important;}
.anchor {color: #6362dc; display: none; margin-left: .2rem; padding: 0 .2rem;}
h4:focus .anchor, h4:hover .anchor {display: inline; text-decoration: none;}
.help_text, .help_text:hover, .help_text:visited {color: #3b4351!important; border-bottom: dotted 0.0625rem #cccccc; text-decoration: inherit;}
</style>
<link rel="stylesheet" href="static/spectre-0.5.9.min.css">
<script src="static/jquery-3.5.1.slim.min.js"></script>

<script src="static/jquery.mark-8.11.1.min.js"></script>
<style>
table.dataTable {visibility: visible!important;}
#search-section {display: none;}
ul.list-style-none {list-style: none; margin: 0;}
ul li:first-child {margin-top: 0;}
dl {display: flex; flex-flow: row wrap;}
dl dt, dl dd {margin: 0; padding: 6px 10px;}
dt {flex-basis: 20%; background: #555; text-align: right; color: #fff;}
dd {flex-basis: 70%; flex-grow: 1;}
</style>

</head>
<body style="padding: 0 7rem;">
<div class="container">
<header class="navbar">
<section class="navbar-section">
<a class="navbar-brand text-bold mr-2" style="font-size: 1rem;" href="index.html">ScanCode LicenseDB</a>
<a href="help.html" class="btn btn-link">Help</a>
<a href="https://gitter.im/aboutcode-org/discuss" target="_blank" class="btn btn-link">Chat</a>
<a href="https://github.com/nexB/scancode-licensedb" target="_blank" class="btn btn-link">GitHub</a>
<span class="nav-item">Licensed under <a href="cc-by-4.0.html" class="text-bold">CC-BY-4.0</a></span>
</section>
<section id="search-section">
<div class="input-group input-inline">
<button class="btn btn-primary input-group-btn disabled" tabindex="-1" style="opacity: 0.9">Search</button>
<input id="searchbox" class="form-input" type="search">
</div>
</section>
</header>
</div>

<div class="container">
<hr>
<a href="index.html">back to list</a> -
<a href="bash-exception-gpl.yml">yml</a> -
<a href="bash-exception-gpl.json">json</a> -
<a href="bash-exception-gpl.LICENSE">text</a> -
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/bash-exception-gpl.LICENSE" target="_blank">edit License</a>
<hr>
<dl>

<dt style="">key</dt>
<dd>

bash-exception-gpl

</dd>

<dt style="">short_name</dt>
<dd>

Bash exception to GPL

</dd>

<dt style="">name</dt>
<dd>

Bash exception to GPL

</dd>

<dt style="">category</dt>
<dd>

Copyleft

</dd>

<dt style="">owner</dt>
<dd>

Free Software Foundation (FSF)

</dd>

<dt style="">notes</dt>
<dd>

this used with GPL 1.0 and 2.0. It was removed from the V3 text <a href="https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8" rel="noopener" target="_blank">https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8</a>

</dd>

<dt style="">is_exception</dt>
<dd>

True

</dd>

<dt style="">spdx_license_key</dt>
<dd>

LicenseRef-scancode-bash-exception-gpl-2.0

</dd>

<dt style="">text_urls</dt>
<dd>

<ul class="list-style-none">
<li><a href="https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&amp;id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283" rel="noopener" target="_blank">https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&amp;id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283</a></li>
</ul>

</dd>

</dl>
<div class="text-bold">license_text</div>
<pre id="license-text" class="code mt-1" style="white-space: pre-wrap;"><code>The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
based primarily on Bash as opposed to other GNU software.</code></pre>
</div>

<div class="container">
<footer class="section text-dark">
<p>
<a href="help.html">Help</a> ·
<a href="https://gitter.im/aboutcode-org/discuss" target="_blank">Chat</a> ·
<a href="https://github.com/nexB/scancode-licensedb" target="_blank">GitHub</a> ·
<a href="https://www.aboutcode.org/" target="_blank">AboutCode</a>
</p>
<p>Designed and built by <a href="https://www.nexb.com/" target="_blank">nexB</a>.
Licensed under the <a href="cc-by-4.0.html">Creative Commons Attribution License 4.0 (CC-BY-4.0)</a>.</p>
<p>Generated with <a href="https://github.com/nexB/scancode-toolkit" target="_blank">ScanCode toolkit</a>
32.0.0b1 on Dec 22, 2022.</p>
<p>SPDX Licenses list version: 3.20</p>

</footer>
</div>

<script>
$(document).ready(function() {
let url_params = new URLSearchParams(window.location.search);
let marks = url_params.getAll('mark'); // ?mark=0-10&mark=30-40
$.each(marks, function(index, value) {
let [start, end] = value.split("-");
$("#license-text").markRanges([{
start: start,
length: end - start,
}]);
});
});
</script>

</body>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>LicenseDB: bash-exception-gpl</title>
<style>
table.dataTable {visibility: visible!important;}
.dataTables_filter {display: none;}
table.dataTable thead th, table.dataTable thead td {padding: 8px!important; border-top: 1px solid #111;}
.dataTables_wrapper .dataTables_info {padding: 0 0 2px!important; font-size: .75rem!important; color: #3b4351!important;}
header {padding-top: .4rem; padding-bottom: .4rem;}
footer {background-color: #f7f8f9; color: #bcc3ce; padding: 1.5rem .75rem 1rem; margin-top: 1em;}
a:visited {color: #5755d9!important;}
.navbar .nav-item {color:#66758c;padding: .25rem .4rem;}
.navbar .nav-item a, .navbar .nav-item a:visited {color:#66758c !important;}
.anchor {color: #6362dc; display: none; margin-left: .2rem; padding: 0 .2rem;}
h4:focus .anchor, h4:hover .anchor {display: inline; text-decoration: none;}
.help_text, .help_text:hover, .help_text:visited {color: #3b4351!important; border-bottom: dotted 0.0625rem #cccccc; text-decoration: inherit;}
</style>
<link rel="stylesheet" href="static/spectre-0.5.9.min.css">
<script src="static/jquery-3.5.1.slim.min.js"></script>

<script src="static/jquery.mark-8.11.1.min.js"></script>
<style>
table.dataTable {visibility: visible!important;}
#search-section {display: none;}
ul.list-style-none {list-style: none; margin: 0;}
ul li:first-child {margin-top: 0;}
dl {display: flex; flex-flow: row wrap;}
dl dt, dl dd {margin: 0; padding: 6px 10px;}
dt {flex-basis: 20%; background: #555; text-align: right; color: #fff;}
dd {flex-basis: 70%; flex-grow: 1;}
</style>

</head>
<body style="padding: 0 7rem;">
<div class="container">
<header class="navbar">
<section class="navbar-section">
<a class="navbar-brand text-bold mr-2" style="font-size: 1rem;" href="index.html">ScanCode LicenseDB</a>
<a href="help.html" class="btn btn-link">Help</a>
<a href="https://gitter.im/aboutcode-org/discuss" target="_blank" class="btn btn-link">Chat</a>
<a href="https://github.com/nexB/scancode-licensedb" target="_blank" class="btn btn-link">GitHub</a>
<span class="nav-item">Licensed under <a href="cc-by-4.0.html" class="text-bold">CC-BY-4.0</a></span>
</section>
<section id="search-section">
<div class="input-group input-inline">
<button class="btn btn-primary input-group-btn disabled" tabindex="-1" style="opacity: 0.9">Search</button>
<input id="searchbox" class="form-input" type="search">
</div>
</section>
</header>
</div>

<div class="container">
<hr>
<a href="index.html">back to list</a> -
<a href="bash-exception-gpl.yml">yml</a> -
<a href="bash-exception-gpl.json">json</a> -
<a href="bash-exception-gpl.LICENSE">text</a> -
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/bash-exception-gpl.LICENSE" target="_blank">edit License</a>
<hr>
<dl>

<dt style="">key</dt>
<dd>

bash-exception-gpl

</dd>

<dt style="">short_name</dt>
<dd>

Bash exception to GPL

</dd>

<dt style="">name</dt>
<dd>

Bash exception to GPL

</dd>

<dt style="">category</dt>
<dd>

Copyleft

</dd>

<dt style="">owner</dt>
<dd>

Free Software Foundation (FSF)

</dd>

<dt style="">notes</dt>
<dd>

this used with GPL 1.0 and 2.0. It was removed from the V3 text <a href="https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8" rel="noopener" target="_blank">https://git.savannah.gnu.org/cgit/bash.git/commit/COPYING?id=3185942a5234e26ab13fa02f9c51d340cec514f8</a>

</dd>

<dt style="">is_exception</dt>
<dd>

True

</dd>

<dt style="">spdx_license_key</dt>
<dd>

LicenseRef-scancode-bash-exception-gpl-2.0

</dd>

<dt style="">text_urls</dt>
<dd>

<ul class="list-style-none">
<li><a href="https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&amp;id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283" rel="noopener" target="_blank">https://git.savannah.gnu.org/cgit/bash.git/plain/COPYING?h=bash-3.0-rc1&amp;id=dd9e6dfa23d0dae4888f11fb8c6a27bc36d1b283</a></li>
</ul>

</dd>

</dl>
<div class="text-bold">license_text</div>
<pre id="license-text" class="code mt-1" style="white-space: pre-wrap;"><code>The Free Software Foundation has exempted Bash from the requirement of
Paragraph 2c of the General Public License. This is to say, there is
no requirement for Bash to print a notice when it is started
interactively in the usual way. We made this exception because users
and standards expect shells not to print such messages. This
exception applies to any program that serves as a shell and that is
based primarily on Bash as opposed to other GNU software.</code></pre>
</div>

<div class="container">
<footer class="section text-dark">
<p>
<a href="help.html">Help</a> ·
<a href="https://gitter.im/aboutcode-org/discuss" target="_blank">Chat</a> ·
<a href="https://github.com/nexB/scancode-licensedb" target="_blank">GitHub</a> ·
<a href="https://www.aboutcode.org/" target="_blank">AboutCode</a>
</p>
<p>Designed and built by <a href="https://www.nexb.com/" target="_blank">nexB</a>.
Licensed under the <a href="cc-by-4.0.html">Creative Commons Attribution License 4.0 (CC-BY-4.0)</a>.</p>
<p>Generated with <a href="https://github.com/nexB/scancode-toolkit" target="_blank">ScanCode toolkit</a>
32.0.0b1 on Dec 22, 2022.</p>
<p>SPDX Licenses list version: 3.20</p>

</footer>
</div>

<script>
$(document).ready(function() {
let url_params = new URLSearchParams(window.location.search);
let marks = url_params.getAll('mark'); // ?mark=0-10&mark=30-40
$.each(marks, function(index, value) {
let [start, end] = value.split("-");
$("#license-text").markRanges([{
start: start,
length: end - start,
}]);
});
});
</script>

</body>
</html>
Loading

0 comments on commit 56aa1e7

Please sign in to comment.