blob: abc67b3fd153f3a4481c5544b09576dc44dcee38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# Get entities from the whatwg.org SVN repository.
(rm -f *.inc entities.xml) || exit 1
(wget http://svn.whatwg.org/webapps/entities-legacy.inc &&
wget http://svn.whatwg.org/webapps/entities-unicode.inc) ||
(echo "Failed to get entities" && exit 1)
(echo "<table>" &&
cat entities-legacy.inc &&
cat entities-unicode.inc &&
echo "</table>") > entities.xml
(xsltproc entities.xslt entities.xml |
sort -d) > entities.inc
|