Skip to content

Commit c9b908b

Browse files
committedMay 25, 2023
Adding BOOST License.
1 parent b7cb814 commit c9b908b

File tree

3 files changed

+41
-8
lines changed

3 files changed

+41
-8
lines changed
 

‎LICENSE-BOOST

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Boost Software License - Version 1.0 - August 17th, 2003
2+
3+
Permission is hereby granted, free of charge, to any person or organization
4+
obtaining a copy of the software and accompanying documentation covered by
5+
this license (the "Software") to use, reproduce, display, distribute,
6+
execute, and transmit the Software, and to prepare derivative works of the
7+
Software, and to permit third-parties to whom the Software is furnished to
8+
do so, all subject to the following:
9+
10+
The copyright notices in the Software and this entire statement, including
11+
the above license grant, this restriction and the following disclaimer,
12+
must be included in all copies of the Software, in whole or in part, and
13+
all derivative works of the Software, unless such copies or derivative
14+
works are solely in the form of machine-executable object code generated by
15+
a source language processor.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23+
DEALINGS IN THE SOFTWARE.

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ under the Apache 2.0 license.
279279

280280
<sup>
281281
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
282-
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
282+
2.0</a> or <a href="LICENSE-MIT">MIT license</a> or <a href="LICENSE-BOOST">BOOST license</a> .
283283
</sup>
284284

285285
<br>
286286

287287
<sub>
288288
Unless you explicitly state otherwise, any contribution intentionally submitted
289289
for inclusion in this repository by you, as defined in the Apache-2.0 license,
290-
shall be dual licensed as above, without any additional terms or conditions.
290+
shall be triple licensed as above, without any additional terms or conditions.
291291
</sub>

‎script/amalgamate.py

+16-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
text += '// fast_float by ' + line
1111
if filename == 'CONTRIBUTORS':
1212
text += '// with contributions from ' + line
13-
processed_files[filename] = text + '//\n'
13+
processed_files[filename] = text + '//\n//\n'
1414

1515
# licenses
16-
for filename in ['LICENSE-MIT', 'LICENSE-APACHE']:
16+
for filename in ['LICENSE-MIT', 'LICENSE-APACHE', 'LICENSE-BOOST']:
1717
lines = []
1818
with open(filename, encoding='utf8') as f:
1919
lines = f.readlines()
@@ -44,14 +44,20 @@
4444
import argparse
4545

4646
parser = argparse.ArgumentParser(description='Amalgamate fast_float.')
47-
parser.add_argument('--license', default='DUAL', choices=['DUAL', 'MIT', 'APACHE'], help='choose license')
47+
parser.add_argument('--license', default='TRIPLE', choices=['DUAL', 'TRIPLE', 'MIT', 'APACHE', 'BOOST'], help='choose license')
4848
parser.add_argument('--output', default='', help='output file (stdout if none')
4949

5050
args = parser.parse_args()
5151

5252
def license_content(license_arg):
5353
result = []
54-
54+
if license_arg == 'TRIPLE':
55+
result += [
56+
'// Licensed under the Apache License, Version 2.0, or the\n',
57+
'// MIT License or the Boost License. This file may not be copied,\n',
58+
'// modified, or distributed except according to those terms.\n',
59+
'//\n'
60+
]
5561
if license_arg == 'DUAL':
5662
result += [
5763
'// Licensed under the Apache License, Version 2.0, or the\n',
@@ -60,14 +66,18 @@ def license_content(license_arg):
6066
'//\n'
6167
]
6268

63-
if license_arg in ('DUAL', 'MIT'):
69+
if license_arg in ('DUAL', 'TRIPLE', 'MIT'):
6470
result.append('// MIT License Notice\n//\n')
6571
result.append(processed_files['LICENSE-MIT'])
6672
result.append('//\n')
67-
if license_arg in ('DUAL', 'APACHE'):
73+
if license_arg in ('DUAL', 'TRIPLE', 'APACHE'):
6874
result.append('// Apache License (Version 2.0) Notice\n//\n')
6975
result.append(processed_files['LICENSE-APACHE'])
7076
result.append('//\n')
77+
if license_arg in ('TRIPLE', 'BOOST'):
78+
result.append('// BOOST License Notice\n//\n')
79+
result.append(processed_files['LICENSE-BOOST'])
80+
result.append('//\n')
7181

7282
return result
7383

0 commit comments

Comments
 (0)
Please sign in to comment.