From 289b63c06f20bf2c0b2650e83490e5f99a159ae5 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 13 May 2014 16:41:33 +0200 Subject: [PATCH] dist/tools: add license checker Creates file structure that maps files to licenses by grepping for license patterns (patterns for licenses found in RIOT included). Sets exit code to 1 if an unknown license header is detected. --- boards/mbed_lpc1768/board_init.c | 1 - dist/tools/licenses/.gitignore | 2 + dist/tools/licenses/check.sh | 39 ++++++++++++++++++++ dist/tools/licenses/patterns/1c-BSD-arm | 1 + dist/tools/licenses/patterns/1c-BSD-ccnl | 1 + dist/tools/licenses/patterns/1c-BSD-embunit | 1 + dist/tools/licenses/patterns/1c-BSD-isc | 1 + dist/tools/licenses/patterns/2c-BSD-v1 | 1 + dist/tools/licenses/patterns/3c-BSD-atmel | 1 + dist/tools/licenses/patterns/3c-BSD-clark | 1 + dist/tools/licenses/patterns/3c-BSD-openbsd | 1 + dist/tools/licenses/patterns/3c-BSD-ti | 1 + dist/tools/licenses/patterns/3c-BSD-v1 | 1 + dist/tools/licenses/patterns/3c-BSD-v2 | 1 + dist/tools/licenses/patterns/chan | 1 + dist/tools/licenses/patterns/gplv2-pjrc | 1 + dist/tools/licenses/patterns/lgpl-short-riot | 1 + dist/tools/licenses/patterns/lgplv2-short-v1 | 1 + dist/tools/licenses/patterns/lgplv2-short-v2 | 1 + dist/tools/licenses/patterns/lgplv2-short-v3 | 1 + dist/tools/licenses/patterns/lgplv2.1-v1 | 1 + dist/tools/licenses/patterns/publicdomain-v1 | 1 + 22 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 dist/tools/licenses/.gitignore create mode 100755 dist/tools/licenses/check.sh create mode 100644 dist/tools/licenses/patterns/1c-BSD-arm create mode 100644 dist/tools/licenses/patterns/1c-BSD-ccnl create mode 100644 dist/tools/licenses/patterns/1c-BSD-embunit create mode 100644 dist/tools/licenses/patterns/1c-BSD-isc create mode 100644 dist/tools/licenses/patterns/2c-BSD-v1 create mode 100644 dist/tools/licenses/patterns/3c-BSD-atmel create mode 100644 dist/tools/licenses/patterns/3c-BSD-clark create mode 100644 dist/tools/licenses/patterns/3c-BSD-openbsd create mode 100644 dist/tools/licenses/patterns/3c-BSD-ti create mode 100644 dist/tools/licenses/patterns/3c-BSD-v1 create mode 100644 dist/tools/licenses/patterns/3c-BSD-v2 create mode 100644 dist/tools/licenses/patterns/chan create mode 100644 dist/tools/licenses/patterns/gplv2-pjrc create mode 100644 dist/tools/licenses/patterns/lgpl-short-riot create mode 100644 dist/tools/licenses/patterns/lgplv2-short-v1 create mode 100644 dist/tools/licenses/patterns/lgplv2-short-v2 create mode 100644 dist/tools/licenses/patterns/lgplv2-short-v3 create mode 100644 dist/tools/licenses/patterns/lgplv2.1-v1 create mode 100644 dist/tools/licenses/patterns/publicdomain-v1 diff --git a/boards/mbed_lpc1768/board_init.c b/boards/mbed_lpc1768/board_init.c index ac96afb101..f6562c9a11 100644 --- a/boards/mbed_lpc1768/board_init.c +++ b/boards/mbed_lpc1768/board_init.c @@ -15,7 +15,6 @@ * processor based microcontrollers. This file can be freely distributed * within development tools that are supporting such ARM based processors. * - * @par * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. diff --git a/dist/tools/licenses/.gitignore b/dist/tools/licenses/.gitignore new file mode 100644 index 0000000000..8212658468 --- /dev/null +++ b/dist/tools/licenses/.gitignore @@ -0,0 +1,2 @@ +.tmp +out diff --git a/dist/tools/licenses/check.sh b/dist/tools/licenses/check.sh new file mode 100755 index 0000000000..657e8740d8 --- /dev/null +++ b/dist/tools/licenses/check.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# customizable +CHECKROOT=$(dirname "${0}") +LICENSEDIR="${CHECKROOT}/patterns" +OUTPUT="${CHECKROOT}/out" +UNKNOWN="${OUTPUT}/unknown" +TMP="${CHECKROOT}/.tmp" + +# prepare +ROOT=$(git rev-parse --show-toplevel) +LICENSES=$(ls "${LICENSEDIR}") +EXIT_CODE=0 + +# reset output dir +rm -fr "${OUTPUT}" +mkdir -p "${OUTPUT}" +for LICENSE in ${LICENSES}; do + echo -n '' > "${OUTPUT}/${LICENSE}" +done + +# categorize files +for FILE in $(git ls-tree -r --full-tree --name-only HEAD | grep -E '\.[sSc]$'); do + FAIL=1 + head -100 "${ROOT}/${FILE}" | sed -e 's/[\/\*\t]/ /g' -e 's/$/ /' | tr -d '\r\n' | sed -e 's/ */ /g' > "${TMP}" + for LICENSE in ${LICENSES}; do + if pcregrep -q -f "${LICENSEDIR}/${LICENSE}" "${TMP}"; then + echo "${FILE}" >> "${OUTPUT}/${LICENSE}" + FAIL=0 + break + fi + done + if [ ${FAIL} = 1 ]; then + echo "${FILE}" >> "${UNKNOWN}" + EXIT_CODE=1 + fi +done + +exit ${EXIT_CODE} diff --git a/dist/tools/licenses/patterns/1c-BSD-arm b/dist/tools/licenses/patterns/1c-BSD-arm new file mode 100644 index 0000000000..f7724ea5da --- /dev/null +++ b/dist/tools/licenses/patterns/1c-BSD-arm @@ -0,0 +1 @@ +This file can be freely distributed within development tools that are supporting such ARM based processors\. THIS SOFTWARE IS PROVIDED "AS IS"\. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE\. (.+) SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER\. diff --git a/dist/tools/licenses/patterns/1c-BSD-ccnl b/dist/tools/licenses/patterns/1c-BSD-ccnl new file mode 100644 index 0000000000..35325ae9b8 --- /dev/null +++ b/dist/tools/licenses/patterns/1c-BSD-ccnl @@ -0,0 +1 @@ +Permission to use, copy, modify, and or 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\. diff --git a/dist/tools/licenses/patterns/1c-BSD-embunit b/dist/tools/licenses/patterns/1c-BSD-embunit new file mode 100644 index 0000000000..df5c864a6e --- /dev/null +++ b/dist/tools/licenses/patterns/1c-BSD-embunit @@ -0,0 +1 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files \(the "Software"\), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, provided that the above copyright notice\(s\) and this permission notice appear in all copies of the Software and that both the above copyright notice\(s\) and this permission notice appear in supporting documentation\. 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 AND NONINFRINGEMENT OF THIRD PARTY RIGHTS\. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 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\. Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder\. diff --git a/dist/tools/licenses/patterns/1c-BSD-isc b/dist/tools/licenses/patterns/1c-BSD-isc new file mode 100644 index 0000000000..4910478e0f --- /dev/null +++ b/dist/tools/licenses/patterns/1c-BSD-isc @@ -0,0 +1 @@ +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 INTERNET SOFTWARE CONSORTIUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\. IN NO EVENT SHALL INTERNET SOFTWARE CONSORTIUM 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\. diff --git a/dist/tools/licenses/patterns/2c-BSD-v1 b/dist/tools/licenses/patterns/2c-BSD-v1 new file mode 100644 index 0000000000..6070cfeed4 --- /dev/null +++ b/dist/tools/licenses/patterns/2c-BSD-v1 @@ -0,0 +1 @@ +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1\. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer\. 2\. 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\. THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-atmel b/dist/tools/licenses/patterns/3c-BSD-atmel new file mode 100644 index 0000000000..af6acd493f --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-atmel @@ -0,0 +1 @@ +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition is met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the disclaimer below\. Atmel's name may not be used to endorse or promote products derived from this software without specific prior written permission\. DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE DISCLAIMED\. IN NO EVENT SHALL ATMEL 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-clark b/dist/tools/licenses/patterns/3c-BSD-clark new file mode 100644 index 0000000000..69499583c6 --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-clark @@ -0,0 +1 @@ +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 the original author; nor the names of any 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-openbsd b/dist/tools/licenses/patterns/3c-BSD-openbsd new file mode 100644 index 0000000000..b5b4f3c01f --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-openbsd @@ -0,0 +1 @@ +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1\. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer\. 2\. 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\. 3\. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission\. THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-ti b/dist/tools/licenses/patterns/3c-BSD-ti new file mode 100644 index 0000000000..be2d239deb --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-ti @@ -0,0 +1 @@ +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 Texas Instruments Incorporated nor the names of its 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-v1 b/dist/tools/licenses/patterns/3c-BSD-v1 new file mode 100644 index 0000000000..df8b24fbe1 --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-v1 @@ -0,0 +1 @@ +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1\. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer\. 2\. 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\. 3\. The names of its contributors may not 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\. diff --git a/dist/tools/licenses/patterns/3c-BSD-v2 b/dist/tools/licenses/patterns/3c-BSD-v2 new file mode 100644 index 0000000000..f9fc9456ee --- /dev/null +++ b/dist/tools/licenses/patterns/3c-BSD-v2 @@ -0,0 +1 @@ +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1\. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer\. 2\. 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\. 3\. Neither the name of the Institute nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission\. THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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 INSTITUTE 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\. diff --git a/dist/tools/licenses/patterns/chan b/dist/tools/licenses/patterns/chan new file mode 100644 index 0000000000..74b0cd6259 --- /dev/null +++ b/dist/tools/licenses/patterns/chan @@ -0,0 +1 @@ +.+ is a free software and there is NO WARRANTY\. No restriction on use\. You can use, modify and redistribute it for personal, non-profit or commercial use UNDER YOUR RESPONSIBILITY\. Redistributions of source code must retain the above copyright notice\. diff --git a/dist/tools/licenses/patterns/gplv2-pjrc b/dist/tools/licenses/patterns/gplv2-pjrc new file mode 100644 index 0000000000..508fb352aa --- /dev/null +++ b/dist/tools/licenses/patterns/gplv2-pjrc @@ -0,0 +1 @@ +.+ is free software; you can redistribute it and or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License\. .+ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\. See the GNU General Public License for more details\. diff --git a/dist/tools/licenses/patterns/lgpl-short-riot b/dist/tools/licenses/patterns/lgpl-short-riot new file mode 100644 index 0000000000..cc8af501ee --- /dev/null +++ b/dist/tools/licenses/patterns/lgpl-short-riot @@ -0,0 +1 @@ + This file is subject to the terms and conditions of the GNU Lesser General Public License\. See the file LICENSE in the top level directory for more details\. diff --git a/dist/tools/licenses/patterns/lgplv2-short-v1 b/dist/tools/licenses/patterns/lgplv2-short-v1 new file mode 100644 index 0000000000..a6b3ab7124 --- /dev/null +++ b/dist/tools/licenses/patterns/lgplv2-short-v1 @@ -0,0 +1 @@ +.+ is licensed under the LGPLv2 license, See the file LICENSE for more details\. diff --git a/dist/tools/licenses/patterns/lgplv2-short-v2 b/dist/tools/licenses/patterns/lgplv2-short-v2 new file mode 100644 index 0000000000..8c994e73e6 --- /dev/null +++ b/dist/tools/licenses/patterns/lgplv2-short-v2 @@ -0,0 +1 @@ +.+ is licensed under the GNU Lesser General Public License, Version 2\. See the file LICENSE for more details\. diff --git a/dist/tools/licenses/patterns/lgplv2-short-v3 b/dist/tools/licenses/patterns/lgplv2-short-v3 new file mode 100644 index 0000000000..70f564c4e2 --- /dev/null +++ b/dist/tools/licenses/patterns/lgplv2-short-v3 @@ -0,0 +1 @@ +.+ is subject to the terms and conditions of the LGPLv2\. See the file LICENSE in the top level directory for more details\. diff --git a/dist/tools/licenses/patterns/lgplv2.1-v1 b/dist/tools/licenses/patterns/lgplv2.1-v1 new file mode 100644 index 0000000000..55e796d128 --- /dev/null +++ b/dist/tools/licenses/patterns/lgplv2.1-v1 @@ -0,0 +1 @@ +.+ is free software; you can redistribute it and or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2\.1 of the License, or \(at your option\) any later version\. .+ is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\. See the GNU Lesser General Public License for more details\. diff --git a/dist/tools/licenses/patterns/publicdomain-v1 b/dist/tools/licenses/patterns/publicdomain-v1 new file mode 100644 index 0000000000..e11fe40dc2 --- /dev/null +++ b/dist/tools/licenses/patterns/publicdomain-v1 @@ -0,0 +1 @@ +This is free and unencumbered software released into the public domain\. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means\. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain\. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors\. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law\. 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 AND NONINFRINGEMENT\. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE\.