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