File: fix_xml_entities.sh

package info (click to toggle)
postgis 3.5.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • 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 (8 lines) | stat: -rwxr-xr-x 172 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/bin/sh

cd $(dirname $0)/..

perl -CSDL -pi \
	-e 's/\&([_a-zA-Z]*)[\s\h][\s\h]*;/&\1;/g;' \
	-e 's/&#x([0-9A-F]*)[\s\h][\s\h]*;/&#x\1;/g' \
	$(find doc/po/ -name *.po)