[PATCH 1/2] Add script to remove advertising clause from BSD-licensed software
Corinna Vinschen
vinschen@redhat.com
Wed Jan 29 10:43:00 GMT 2020
On Jan 28 10:54, Keith Packard wrote:
> This script removes advertising requirements from three different BSD licenses:
> [...]
Btw., git am complains about trailing whitespaces
> + -e '/4. Neither the name/s/4\./3./' -i "$i"
here
> +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
and here.
> +
> +#
> +# 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
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20200129/b137a7f3/attachment.sig>
More information about the Newlib
mailing list