mirror of
https://github.com/deadw00d/AROS.git
synced 2025-11-19 16:21:21 +00:00
Cache unicode data in portsources
unicode.org is not reliable and timeouts frequenty
This commit is contained in:
@ -19,17 +19,26 @@ MKDIR ?= mkdir
|
||||
|
||||
all : $(GENCTBL) $(GENDIR)/ucd/UnicodeData.txt $(GENDIR)/ucd/SpecialCasing.txt
|
||||
|
||||
$(PORTSSOURCEDIR) :
|
||||
@$(MKDIR) -p $@
|
||||
|
||||
$(GENDIR)/ucd :
|
||||
@$(MKDIR) -p $@
|
||||
|
||||
$(GENDIR)/ucd/UnicodeData.txt : | $(GENDIR)/ucd
|
||||
$(PORTSSOURCEDIR)/UnicodeData.txt : | $(PORTSSOURCEDIR)
|
||||
@$(ECHO) "Fetching unicode data..."
|
||||
@curl -o $@ https://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt
|
||||
|
||||
$(GENDIR)/ucd/SpecialCasing.txt : | $(GENDIR)/ucd
|
||||
$(GENDIR)/ucd/UnicodeData.txt : $(PORTSSOURCEDIR)/UnicodeData.txt $(GENDIR)/ucd
|
||||
@$(CP) $< $@
|
||||
|
||||
$(PORTSSOURCEDIR)/SpecialCasing.txt : | $(PORTSSOURCEDIR)
|
||||
@$(ECHO) "Fetching unicode special casing data..."
|
||||
@curl -o $@ https://www.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
|
||||
|
||||
$(GENDIR)/ucd/SpecialCasing.txt : $(PORTSSOURCEDIR)/SpecialCasing.txt $(GENDIR)/ucd
|
||||
@$(CP) $< $@
|
||||
|
||||
$(GENCTBL) : genctbl.c $(GENMODULE_DEPS)
|
||||
@$(ECHO) "Compiling $(notdir $@)..."
|
||||
@$(HOST_CC) -g $(HOST_CFLAGS) -I$(GENINCDIR) -I$(TOP)/$(CURDIR) genctbl.c -o $@
|
||||
|
||||
Reference in New Issue
Block a user