commit | author | age
|
e1d036
|
1 |
#! /usr/bin/sh |
MT |
2 |
# |
|
3 |
# |
|
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. |
|
8 |
# |
|
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. |
|
12 |
# |
|
13 |
|
|
14 |
# |
|
15 |
# Copyright 2022 Marcel Telka |
|
16 |
# |
|
17 |
|
93f4cd
|
18 |
sed \ |
e1d036
|
19 |
-e 's/``/"/g' -e "s/''/\"/g" \ |
MT |
20 |
-e 's/[123]\./*/g' \ |
92e661
|
21 |
-e 's/- /* /g' \ |
6c0fc4
|
22 |
-e 's/\([^ ]\) \*/\1\ |
MT |
23 |
*/g' \ |
29d931
|
24 |
| sed \ |
e1d036
|
25 |
-e 's/\* *//g' \ |
29d931
|
26 |
-e 's/\(with or without modification,\) .* \(permitted provided\)/\1 REPLACEABLE \2/I' \ |
93f4cd
|
27 |
-e 's/^\(Redistributions of\) .* \(must retain the\) .* \(copyright notice,\)/\1 REPLACEABLE \2 REPLACEABLE \3/I' \ |
MT |
28 |
-e 's/\(binary form must reproduce the\) .* \(copyright notice,\)/\1 REPLACEABLE \2/I' \ |
29d931
|
29 |
-e 's/.*\(be used to endorse or promote products derived from this\) .* \(without\)/REPLACEABLE \1 REPLACEABLE \2/I' \ |
93f4cd
|
30 |
-e 's/^THIS .* \(IS PROVIDED BY\).*\("AS IS" AND ANY\).*\(OR IMPLIED WARRANTIES\)/THIS REPLACEABLE \1 REPLACEABLE \2 REPLACEABLE \3/I' \ |
579445
|
31 |
-e 's/\(IN NO EVENT SHALL\).*\(BE LIABLE\)/\1 REPLACEABLE \2/I' \ |
29d931
|
32 |
-e 's/\(USE OF THIS\) .*\(, EVEN IF ADVISED\)/\1 REPLACEABLE\2/I' \ |
93f4cd
|
33 |
| sed -n \ |
MT |
34 |
-e '{ 1 { N |
|
35 |
N |
|
36 |
N |
|
37 |
} |
|
38 |
N |
|
39 |
/^Redistribution and use.*\n.*\n.*\n.*\nTHIS REPLACEABLE IS PROVIDED/Ip |
|
40 |
D |
|
41 |
}' |