| 1 | #!/bin/bash -eu |
| 2 | |
| 3 | clear_temp() { |
| 4 | rm -f allkeys.txt ucd.all.grouped.zip ucd.all.grouped.xml |
| 5 | } |
| 6 | |
| 7 | # Setup |
| 8 | clear_temp |
| 9 | export MW_INSTALL_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../.. && pwd)" |
| 10 | |
| 11 | |
| 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" |
| 17 | |
| 18 | # Teardown |
| 19 | clear_temp |