Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/share/examples/mdoc/deshallify.sh
39476 views
1
#!/bin/sh
2
# Script to remove shall clauses.
3
#
4
#
5
sed -e 's/s shall define/s define/g' \
6
-e 's/shall define/defines/g' \
7
-e 's/shall attempt/attempts/g' \
8
-e 's/shall include/includes/g' \
9
-e 's/shall return zero and have/returns zero and has/g' \
10
-e 's/shall return/returns/g' \
11
-e 's/shall also include/also includes/g' \
12
-e 's/pipe or FIFO shall be /pipe of FIFO are /g' \
13
-e 's/s shall be /s are /g' \
14
-e 's/shall be /is /g' \
15
-e 's/s shall create/s create/g' \
16
-e 's/shall create /creates /g' \
17
-e 's/shall perform/performs/g' \
18
-e 's/shall affect the/affect the/g' \
19
-e 's/s shall have/s have/g' \
20
-e 's/shall have/has/g' \
21
-e 's/shall transfer/transfers/g' \
22
-e 's/shall block/blocks/g' \
23
-e 's/shall not block/does not block/g' \
24
-e 's/shall occur/occurs/g' \
25
-e 's/shall complete/complete/g' \
26
-e 's/shall mark for update/marks for update/g' \
27
-e 's/s shall fail/s fail/g' \
28
-e 's/shall fail/fails/g' \
29
-e 's/s shall generate/s generate/g' \
30
-e 's/shall generate/generates/g' \
31
-e 's/shall place/places/g' \
32
-e 's/s shall default/s default/g' \
33
-e 's/shall default/defaults/g' \
34
-e 's/pplications shall ensure/pplications must ensure/g' \
35
-e 's/pplication shall ensure/pplication must ensure/g' \
36
-e 's/shall always begin/always begins/g' \
37
-e 's/s shall begin /s begin /g' \
38
-e 's/shall begin /begins /g' \
39
-e 's/shall always contain /always contains /g' \
40
-e 's/shall produce/produces/g' \
41
-e 's/shall appear/appears/g' \
42
-e 's/s shall be$/s are/g' \
43
-e 's/shall be$/is/g' \
44
-e 's/which shall result /which results /g' \
45
-e 's/s shall not/s are not/g' \
46
-e 's/shall not be/is not/g' \
47
-e 's/shall not/is not/g' \
48
-e 's/s shall behave/s behave/g' \
49
-e 's/shall behave/behaves/g' \
50
-e 's/shall specify/specifies/g' \
51
-e 's/s shall override/s override/g' \
52
-e 's/shall override/overrides/g' \
53
-e 's/shall apply /applies /g' \
54
-e 's/s shall start/s start/g' \
55
-e 's/shall start /starts /g' \
56
-e 's/s shall affect/s affect/g' \
57
-e 's/shall affect/affects/g' \
58
-e 's/s shall indicate/s indicate/g' \
59
-e 's/shall indicate/indicates/g' \
60
-e 's/shall set /set /g' \
61
-e 's/s shall recognize/s recognize/g' \
62
-e 's/shall recognize /recognizes /g' \
63
-e 's/shall also be /is also /g' \
64
-e 's/s shall enter/s enter/g' \
65
-e 's/shall enter /enters /g' \
66
-e 's/shall take /take /g' \
67
-e 's/they shall only take /they only take /g' \
68
-e 's/shall consist /consist /g' \
69
-e 's/s shall cause/s cause/g' \
70
-e 's/shall cause/causes/g' \
71
-e 's/s shall replace/s replace/g' \
72
-e 's/shall replace/replaces/g' \
73
-e 's/shall become/becomes/g' \
74
-e 's/shall each consist/each consist/g' \
75
$1 > $1.x
76
77