Skip to content

Commit

Permalink
refactor: add a third party licenses file
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Jul 17, 2019
1 parent 20c2bde commit 646e15e
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ jobs:
- checkout
- run: git submodule update --init --recursive
- run: ./tools/clang-format-check.sh
- run:
name: Verify THIRD_PARTY_LICENSES.txt
command: |
./tools/third-party-licenses-check.sh
test-gyp:
<<: *test-base-legacy
Expand Down
106 changes: 106 additions & 0 deletions THIRD_PARTY_LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
libdrafter
---------separator---------
Boost 1.70.0
Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
---------separator---------
variant
Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
---------separator---------
Sundown
`Sundown` is based on the original Upskirt parser by Natacha Porté, with many
additions by Vicent Marti (@vmg) and contributions from the following authors:

Ben Noordhuis, Bruno Michel, Joseph Koshy, Krzysztof Kowalczyk, Samuel
Bronson, Shuhei Tanuma

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
---------separator---------

drafter-cli
---------separator---------
cmdline
Copyright (c) 2009, Hideyuki Tanaka

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Hideyuki Tanaka nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------separator---------
2 changes: 1 addition & 1 deletion ext/snowcrash/ext/markdown-parser/ext/sundown
Submodule sundown updated 2 files
+17 −0 LICENSE
+0 −24 README.markdown
31 changes: 31 additions & 0 deletions tools/make-third-party-licenses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

set -e

DESTINATION=THIRD_PARTY_LICENSES.txt
SEPARATOR="---------separator---------"

echo "libdrafter" > $DESTINATION
echo $SEPARATOR >> $DESTINATION
(
echo "Boost $(cat ext/boost/VERSION)" >> $DESTINATION
cat ext/boost/LICENSE_1_0.txt >> $DESTINATION
echo $SEPARATOR >> $DESTINATION

echo "variant" >> $DESTINATION
cat ext/variant/LICENSE.md >> $DESTINATION
echo $SEPARATOR >> $DESTINATION

echo "Sundown" >> $DESTINATION
cat ext/snowcrash/ext/markdown-parser/ext/sundown/LICENSE >> $DESTINATION
echo $SEPARATOR >> $DESTINATION
)

echo "" >> $DESTINATION
echo "drafter-cli" >> $DESTINATION
echo $SEPARATOR >> $DESTINATION
(
echo "cmdline" >> $DESTINATION
cat ext/cmdline/LICENSE >> $DESTINATION
echo $SEPARATOR >> $DESTINATION
)
12 changes: 12 additions & 0 deletions tools/third-party-licenses-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#/usr/bin/env bash

set -e

print_changed_message() {
echo "Committed THIRD_PARTY_LICENSES.txt is inconsistent with license files."
echo "Please run './tools/make-third-party-licenses.sh' and commit 'THIRD_PARTY_LICENSES.txt'."
exit 1
}

./tools/make-third-party-licenses.sh
git diff --quiet -- THIRD_PARTY_LICENSES.txt || print_changed_message

0 comments on commit 646e15e

Please sign in to comment.