postgresql-12: update to 12.21
[oi-userland.git] / tools / licenses / license.BSD-3-Clause.filter
blob71c8e80abd8eb9fb8f0f43d9fc44799c26813e9f
1 #! /usr/bin/sh
4 # This file and its contents are supplied under the terms of the
5 # Common Development and Distribution License ("CDDL"), version 1.0.
6 # You may only use this file in accordance with the terms of version
7 # 1.0 of the CDDL.
9 # A full copy of the text of the CDDL should have accompanied this
10 # source. A copy of the CDDL is also available via the Internet at
11 # http://www.illumos.org/license/CDDL.
15 # Copyright 2022 Marcel Telka
18 sed \
19 -e 's/``/"/g' -e "s/''/\"/g" \
20 -e 's/[123]\./*/g' \
21 -e 's/- /* /g' \
22 -e 's/\([^ ]\) \*/\1\
23 */g' \
24 | sed \
25 -e 's/\* *//g' \
26 -e 's/\(with or without modification,\) .* \(permitted provided\)/\1 REPLACEABLE \2/I' \
27 -e 's/^\(Redistributions of\) .* \(must retain the\) .* \(copyright notice,\)/\1 REPLACEABLE \2 REPLACEABLE \3/I' \
28 -e 's/\(binary form must reproduce the\) .* \(copyright notice,\)/\1 REPLACEABLE \2/I' \
29 -e 's/.*\(be used to endorse or promote products derived from this\) .* \(without\)/REPLACEABLE \1 REPLACEABLE \2/I' \
30 -e 's/^THIS .* \(IS PROVIDED BY\).*\("AS IS" AND ANY\).*\(OR IMPLIED WARRANTIES\)/THIS REPLACEABLE \1 REPLACEABLE \2 REPLACEABLE \3/I' \
31 -e 's/\(IN NO EVENT SHALL\).*\(BE LIABLE\)/\1 REPLACEABLE \2/I' \
32 -e 's/\(USE OF THIS\) .*\(, EVEN IF ADVISED\)/\1 REPLACEABLE\2/I' \
33 | sed -n \
34 -e '{ 1 { N
39 /^Redistribution and use.*\n.*\n.*\n.*\nTHIS REPLACEABLE IS PROVIDED/Ip