entities.* fixes

Change source URL from https://www.w3.org/TR/html5-author/entities.json to https://www.w3.org/TR/html5/entities.json.
Fixed depend target (which requires entities.inc)
Added entities.json to repository so you don't have to download it for building.
This commit is contained in:
Ivan Skytte Jørgensen
2016-06-09 13:43:43 +02:00
parent dd22b1e8d8
commit 72abec16ec
3 changed files with 2236 additions and 3 deletions

@ -526,7 +526,7 @@ install:
$(CXX) $(DEFS) $(CPPFLAGS) -c $*.c
.PHONY: depend
depend:
depend: entities.inc
@echo "generating dependency information"
$(CXX) -MM $(DEFS) $(DPPFLAGS) *.cpp > Make.depend

2233
entities.json Normal file

File diff suppressed because it is too large Load Diff

@ -11,7 +11,7 @@ def die(msg):
sys.exit(1)
# 1: Fetch (if not already done) https://www.w3.org/TR/html5-author/entities.json
# 1: Fetch (if not already done) https://www.w3.org/TR/html5/entities.json
# 2: Transform into nice 'Entity' data entries for inclusion in Entities.cpp
@ -19,7 +19,7 @@ def die(msg):
#if 'entities.json' doesn't exist then fetch it
filename = "entities.json"
if not os.path.exists(filename):
url = "https://www.w3.org/TR/html5-author/entities.json"
url = "https://www.w3.org/TR/html5/entities.json"
f = urllib2.urlopen(url)
if f.getcode()!=200: