Created
July 19, 2024 15:12
-
-
Save camertron/dacb469541c3faff6877ac8f9d8f4c8f to your computer and use it in GitHub Desktop.
Build CLDR from source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export ANT_HOME=~/Downloads/apache-ant-1.9.16 | |
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH | |
export ANT_OPTS="-Xmx4096m" | |
export CLDR_DIR=~/workspace/unicode-org/cldr | |
export ICU4C_DIR=~/workspace/unicode-org/icu/icu4c | |
export ICU4J_ROOT=~/workspace/unicode-org/icu/icu4j | |
export TOOLS_ROOT=~/workspace/unicode-org/icu/tools | |
export CLDR_TMP_DIR=$CLDR_DIR/../cldr-staging | |
# echo "Building CLDR libs..." | |
# cd $TOOLS_ROOT/cldr | |
# ant install-cldr-libs | |
# cd $ICU4C_DIR/source | |
# ./runConfigureICU MacOSX | |
# make clean | |
# make check 2>&1 | tee /tmp/icu4c-oldData-makeCheck.txt | |
# cd $ICU4C_DIR/source/data | |
# ant cleanprod | |
# ant setup | |
# ant proddata 2>&1 | tee /tmp/cldr-newData-proddataLog.txt | |
# cd $TOOLS_ROOT/cldr/cldr-to-icu | |
# ant -f build-icu-data.xml -DcldrDataDir="$CLDR_TMP_DIR/production" | tee /tmp/cldr-newData-builddataLog.txt | |
# cd $TOOLS_ROOT/cldr | |
# ant copy-cldr-testdata | |
# 4d. Copy from CLDR common/testData/localeIdentifiers/localeCanonicalization.txt | |
# into icu4c/source/test/testdata/localeCanonicalization.txt | |
# and icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode/localeCanonicalization.txt | |
# and add the following line to the beginning of these two files | |
# # File copied from cldr common/testData/localeIdentifiers/localeCanonicalization.txt | |
cp $CLDR_DIR/common/testData/localeIdentifiers/localeCanonicalization.txt $ICU4C_DIR/source/test/testdata/ | |
cp $CLDR_DIR/common/testData/localeIdentifiers/localeCanonicalization.txt $ICU4J_ROOT/main/tests/core/src/com/ibm/icu/dev/data/unicode/ | |
# cd $ICU4C_DIR/source | |
# ./runConfigureICU MacOSX | |
# make clean. | |
# make check 2>&1 | tee /tmp/icu4c-newData-makeCheck.txt | |
# cd $ICU4J_ROOT | |
# ant check 2>&1 | tee /tmp/icu4j-oldData-antCheck.txt | |
# cd $ICU4C_DIR/source | |
# ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ./runConfigureICU MacOSX | |
# cd $ICU4C_DIR/source/data | |
# make clean | |
# make -j6 | |
# make icu4j-data-install | |
# cd $ICU4C_DIR/source/test/testdata | |
# make icu4j-data-install | |
# cd $ICU4J_ROOT | |
# ant check 2>&1 | tee /tmp/icu4j-newData-antCheck.txt | |
ant -noinput releaseCLDR -f icu4j/build.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment