wiki.techinc.nl/serialized/Makefile
Kevin Israel 74557dedd0 Generate Utf8Case.ser directly from UnicodeData.txt
This allows getting rid of serialized/serialize.php. I also moved
includes/normal/Utf8CaseGenerate.php to maintenance/language/
generateUtf8Case.php and updated it to subclass Maintenance, as
it seems to be largely unrelated to normalization.

Using version 6.0.0 of UnicodeData.txt, the updated script generates
exactly the same serialized output as was previously checked in.

Also updated the Makefile to reflect the current set of .ser files
and added some .gitignore entries.

Change-Id: I05afece3dc4505a9f43993ac4d7726b37d9c6956
2014-01-06 18:22:24 -05:00

38 lines
1 KiB
Makefile

SPECIAL_TARGETS=Utf8Case.ser normalize-ar.ser normalize-ml.ser first-letters-root.ser
ALL_TARGETS=$(SPECIAL_TARGETS)
DIST_TARGETS=$(SPECIAL_TARGETS)
UNICODE_VERSION=6.0.0
.PHONY: all dist clean
all: $(ALL_TARGETS)
@echo 'Warning: messages are no longer serialized by this makefile.'
dist: $(DIST_TARGETS)
clean:
rm -f $(ALL_TARGETS)
Utf8Case.ser: UnicodeData.txt
php ../maintenance/language/generateUtf8Case.php
normalize-ar.ser: UnicodeData.txt
php ../maintenance/language/generateNormalizerDataAr.php
normalize-ml.ser:
php ../maintenance/language/generateNormalizerDataMl.php
first-letters-root.ser: allkeys.txt ucd.all.grouped.xml
php ../maintenance/language/generateCollationData.php
UnicodeData.txt:
wget http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt
allkeys.txt:
wget http://www.unicode.org/Public/UCA/$(UNICODE_VERSION)/allkeys.txt
ucd.all.grouped.xml: ucd.all.grouped.zip
unzip ucd.all.grouped.zip ucd.all.grouped.xml
ucd.all.grouped.zip:
wget http://www.unicode.org/Public/$(UNICODE_VERSION)/ucdxml/ucd.all.grouped.zip