forked from Mirrors/privacore-open-source-search-engine
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:
2
Makefile
2
Makefile
@ -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
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:
|
||||
|
Reference in New Issue
Block a user