1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/bin/sh
# This would be best done with ITS but it doesn't
# work very effectively at the moment
# See https://www.w3.org/TR/xml-i18n-bp/#relating-docbook-plus-its
# https://trac.osgeo.org/postgis/ticket/5074
sed -e '/^#\. Tag: programlisting$/,/^$/d' \
-e '/^#\. Tag: screen$/,/^$/d' \
-e '/^#\. Tag: funcsynopsis$/,/^$/d' \
-e '/^#\. Tag: refname$/,/^$/d' \
-e '/^#\. Tag: funcprototype$/,/^$/d' \
-e '/^#\. Tag: function$/,/^$/d' \
-e '/^#\. Tag: option$/,/^$/d' \
-e '/^#\. Tag: varname$/,/^$/d' \
-e '/^#\. Tag: code$/,/^$/d' \
-e '/^#\. Tag: command$/,/^$/d' \
-e '/^#\. Tag: literallayout$/,/^$/d' \
-i $1
|