File: strip_untranslatable.sh

package info (click to toggle)
postgis 3.5.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 69,528 kB
  • sloc: ansic: 162,229; sql: 93,970; xml: 53,139; cpp: 12,646; perl: 5,658; sh: 5,369; makefile: 3,435; python: 1,205; yacc: 447; lex: 151; pascal: 58
file content (21 lines) | stat: -rwxr-xr-x 662 bytes parent folder | download | duplicates (6)
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