blob: 3ca91b3e76292519616e4c7475638fc5d8230000 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash -eu
clear_temp() {
rm -f allkeys.txt ucd.all.grouped.zip ucd.all.grouped.xml
}
# Setup
clear_temp
export MW_INSTALL_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd)"
# Generate includes/collation/data/first-letters-root.php
wget https://www.unicode.org/Public/UCA/6.0.0/allkeys.txt
wget https://www.unicode.org/Public/6.0.0/ucdxml/ucd.all.grouped.zip
unzip ucd.all.grouped.zip ucd.all.grouped.xml
php "$MW_INSTALL_PATH/maintenance/language/generateCollationData.php"
# Teardown
clear_temp
|