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