From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110120 invoked by alias); 28 Jan 2020 18:54:59 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 110005 invoked by uid 89); 28 Jan 2020 18:54:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,LIKELY_SPAM_BODY,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=procurement, goods, acknowledge, profits X-HELO: elaine.keithp.com Received: from home.keithp.com (HELO elaine.keithp.com) (63.227.221.253) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2020 18:54:57 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id D0C1C3F2A89B for ; Tue, 28 Jan 2020 10:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580237695; bh=gKcr9Ug3QJY9mXZooWrd8KPDdTiRTe8h7p+/2Ux3Zng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kijOYYHCQwTwkxcNzm/g06A8NJnFECPPq6k91thFHaHUkxMzQwLKf7rEt5OsOdBZy tl9ulFHBUX8BqboVPaNigf3J1nFCAHXYNrYLbeJve+KrsrlYygnGc74R5SuE6PpJvr boxE58N7yXTz53+kxmaphn6ivlWl7y0ND+EhPBDbYIzz+UdfeArywSw1xysSAGQdqR 0bUG5wsDtJDH8lr/VO19aLFg0R7yqWJueekwrfRQS/UtHZFZgCRNt7yDVWE97IyzN0 76NJ8NGpVhlXu0/VoPoIKk9ywG4HWTj5Dvv6QbzEFDCD0oafEiRWx8x9XTKDABPY5d ummXGbe9xCZvA== Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2q77G9cYN26m; Tue, 28 Jan 2020 10:54:55 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id A832B3F2A898; Tue, 28 Jan 2020 10:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580237694; bh=gKcr9Ug3QJY9mXZooWrd8KPDdTiRTe8h7p+/2Ux3Zng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QoaYdyclLCP6YR9YoQnPqhCouyu5UGybgcxEQmfdIVmih9lxf1erQmZckJZE7ErLc SBki6lbHG24iz1N9Po8vEb06QQcPVfZwfdr96Jd4+p7ICqrWYRbHb/SmRJ/M60ks2N xWOEXkbK+CYSGFB6HlXLBf3zkpr8bEHDMFeuPtDsyDkk4YoOzOdMTw15iW4E8OBISb ij5j61NBkyM6NcqcVGS6gBzyif0acu5ga+2f8CoQW3oElPR70BFTRqr0yYLKSd7Mom ITWdA/T7C1Uko0+aVDb4qGnbHuiHEm4rjMkavKAQhFnEi3H49oQadnWo7nZIVhQ11c LxJz4zAFtxIHA== Received: by keithp.com (Postfix, from userid 1000) id 770F8158212D; Tue, 28 Jan 2020 10:54:54 -0800 (PST) From: Keith Packard To: newlib@sourceware.org Cc: Keith Packard Subject: [PATCH 1/2] Add script to remove advertising clause from BSD-licensed software Date: Tue, 28 Jan 2020 18:54:00 -0000 Message-Id: <20200128185453.360285-2-keithp@keithp.com> In-Reply-To: <20200128185453.360285-1-keithp@keithp.com> References: <20200128185453.360285-1-keithp@keithp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020/txt/msg00031.txt This script removes advertising requirements from three different BSD licenses: 4-clause Copyright (c) , All rights reserved. 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. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the . 4. Neither the name of the 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 ''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 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. 2 clause 1987 version Copyright (c) 1987 Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms are permitted provided that: (1) source distributions retain this entire copyright notice and comment, and (2) distributions including binaries display the following acknowledgement: ``This product includes software developed by the University of California, Berkeley and its contributors'' in the documentation or other materials provided with the distribution and in all advertising materials mentioning features or use of this software. 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Single clause 1990 version Copyright (c) 1990 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of California, Berkeley. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Signed-off-by: Keith Packard --- remove-advertising-clause | 68 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 remove-advertising-clause diff --git a/remove-advertising-clause b/remove-advertising-clause new file mode 100755 index 000000000..c7b0b6df2 --- /dev/null +++ b/remove-advertising-clause @@ -0,0 +1,68 @@ +#!/bin/sh +# +# SPDX-License-Identifier: BSD-3-Clause +# +# Copyright © 2019 Keith Packard +# +# 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 copyright holder 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 HOLDER 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. +# + +# Remove advertising clause from BSD licenses + +# +# 4-clause to 3-clause +# +for i in `git grep -l 'All advertising materials' | grep -v remove-advertising-clause`; do + sed -e '/3\. All advertising materials mentioning features or use of this software/d' \ + -e '/must display the following acknowledgement:/d' \ + -e '/This product includes software developed by the University of/d' \ + -e '/California, Berkeley and its contributors\./d' \ + -e '/This product includes software developed by the NetBSD/d' \ + -e '/Foundation, Inc. and its contributors./d' \ + -e '/4. Neither the name/s/4\./3./' -i "$i" +done + +# +# Remove advertising phrase from 1987 version +# + +for i in `git grep -l 'and in all advertising materials mentioning features or use of this' | grep -v remove-advertising-clause`; do + sed -e '/in the documentation or other materials provided with the distribution/s/distribution/distribution./' \ + -e '/and in all advertising materials mentioning features or use of this/d' \ + -e '/software. Neither the name of the University nor the names of its/s/software\. *//' -i "$i" +done + +# +# Remove advertising phrase from 1990 version +# + +for i in `git grep -l 'advertising materials, and other materials related to such' | grep -v remove-advertising-clause`; do + sed -e '/advertising materials, and other materials related to such/s/advertising materials, and/and\/or/' -i "$i" +done -- 2.25.0