File: entitiesToPlist.sh

package info (click to toggle)
grr.app 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,024 kB
  • sloc: objc: 4,019; sh: 54; makefile: 23
file content (9 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# Assumes the presence of entities.html, downloaded from
# http://www.w3.org/TR/html401/sgml/entities.html

echo '{'
grep '^&lt;!ENTITY' entities.html | sed -e 's/^&lt;!ENTITY /     /' -e 's/[[:space:]] *CDATA \"&amp;#/ = <*I/' -e 's/;\".*$/>;/' | sort 
echo '}'