Fix UTF-8 validation bug where some cases didn't get replacement chars inserted correctly
[lhc/web/wiklou.git] / includes / normal / Makefile
1 FETCH=wget
2 #FETCH=fetch
3 BASE=http://www.unicode.org/Public/UNIDATA
4 PHP=php
5 #PHP=php-cli
6
7 all : UtfNormalData.inc
8
9 UtfNormalData.inc : UtfNormalGenerate.php UtfNormalUtil.php UnicodeData.txt CompositionExclusions.txt NormalizationCorrections.txt DerivedNormalizationProps.txt
10 $(PHP) UtfNormalGenerate.php
11
12 test : testutf8 UtfNormalTest.php UtfNormalData.inc NormalizationTest.txt
13 $(PHP) UtfNormalTest.php
14
15 testutf8 : Utf8Test.php UTF-8-test.txt
16 $(PHP) Utf8Test.php
17
18 bench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/sociology.txt testdata/bulgakov.txt
19 $(PHP) UtfNormalBench.php
20
21 clean :
22 rm -f UtfNormalData.inc
23
24 distclean : clean
25 rm -f CompositionExclusions.txt NormalizationTest.txt NormalizationCorrections.txt UnicodeData.txt DerivedNormalizationProps.txt
26
27 # The Unicode data files...
28 CompositionExclusions.txt :
29 $(FETCH) $(BASE)/CompositionExclusions.txt
30
31 NormalizationTest.txt :
32 $(FETCH) $(BASE)/NormalizationTest.txt
33
34 NormalizationCorrections.txt :
35 $(FETCH) $(BASE)/NormalizationCorrections.txt
36
37 DerivedNormalizationProps.txt :
38 $(FETCH) $(BASE)/DerivedNormalizationProps.txt
39
40 UnicodeData.txt :
41 $(FETCH) $(BASE)/UnicodeData.txt
42
43 UTF-8-test.txt :
44 $(FETCH) http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
45
46 testdata/berlin.txt :
47 mkdir -p testdata && wget -U MediaWiki/test -O testdata/berlin.txt "http://de.wikipedia.org/w/wiki.phtml?title=Berlin&oldid=2775712&action=raw"
48
49 testdata/washington.txt :
50 mkdir -p testdata && wget -U MediaWiki/test -O testdata/washington.txt "http://en.wikipedia.org/w/wiki.phtml?title=Washington%2C_DC&oldid=6370218&action=raw"
51
52 testdata/tokyo.txt :
53 mkdir -p testdata && wget -U MediaWiki/test -O testdata/tokyo.txt "http://ja.wikipedia.org/w/wiki.phtml?title=%E6%9D%B1%E4%BA%AC%E9%83%BD&oldid=940880&action=raw"
54
55 testdata/sociology.txt :
56 mkdir -p testdata && wget -U MediaWiki/test -O testdata/sociology.txt "http://ko.wikipedia.org/w/wiki.phtml?title=%EC%82%AC%ED%9A%8C%ED%95%99&oldid=16409&action=raw"
57
58 testdata/bulgakov.txt :
59 mkdir -p testdata && wget -U MediaWiki/test -O testdata/bulgakov.txt "http://ru.wikipedia.org/w/wiki.phtml?title=%D0%91%D1%83%D0%BB%D0%B3%D0%B0%D0%BA%D0%BE%D0%B2%2C_%D0%A1%D0%B5%D1%80%D0%B3%D0%B5%D0%B9_%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0%D0%B5%D0%B2%D0%B8%D1%87&oldid=17704&action=raw"