Merge "ResourceLoader: Deprecate ResourceLoader::makeConfigSetScript"
[mediawiki.git] / maintenance / language / generate-collation-data
blob3ca91b3e76292519616e4c7475638fc5d8230000
1 #!/bin/bash -eu
3 clear_temp() {
4 rm -f allkeys.txt ucd.all.grouped.zip ucd.all.grouped.xml
7 # Setup
8 clear_temp
9 export MW_INSTALL_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd)"
12 # Generate includes/collation/data/first-letters-root.php
13 wget https://www.unicode.org/Public/UCA/6.0.0/allkeys.txt
14 wget https://www.unicode.org/Public/6.0.0/ucdxml/ucd.all.grouped.zip
15 unzip ucd.all.grouped.zip ucd.all.grouped.xml
16 php "$MW_INSTALL_PATH/maintenance/language/generateCollationData.php"
18 # Teardown
19 clear_temp