postgresql-12: update to 12.21
[oi-userland.git] / tools / licenses / license.BSD-2-Clause.filter
blob7cbf02e823980bedfa6d5ec65f269133f74cbbaa
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/`\{1,2\}/"/g' -e "s/'\{1,2\}/\"/g" \
20 -e 's/[12]\./*/g' \
21 -e 's/\([^ ]\) \*/\1\
22 */g' \
23 -e 's/\(disclaimer\.\) \(Redistributions\)/\1\
24 \2/' \
25 | sed \
26 -e 's/\* *//g' \
27 -e 's/THIS SOFTWARE/THIS/I' \
28 -e 's/^\(THIS IS PROVIDED BY\).*\("AS IS" AND ANY\).*\(OR IMPLIED WARRANTIES\)/\1 REPLACEABLE \2 REPLACEABLE \3/I' \
29 -e 's/\(IN NO EVENT SHALL\).*\(BE LIABLE\)/\1 REPLACEABLE \2/I' \
30 -e 's/^.*\(Redistribution and use\)/\1/I' \
31 | sed -n \
32 -e '{ 1 { N
36 /^Redistribution and use.*\n.*\n.*\nTHIS IS PROVIDED BY/Ip