Last active
April 27, 2023 11:05
-
-
Save ZenulAbidin/387677c78c0163f11058ed145d6ac495 to your computer and use it in GitHub Desktop.
Basic shell script to drive cldr-gen-locale-data.py
This file contains 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
# Copyright 2023 Ali Sherief | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
#!/bin/bash | |
LATEST_CLDR=42 | |
LATEST_CLDR_FULL=42.0 | |
FILE_NAME=cldr-common-$LATEST_CLDR_FULL.zip | |
if [ ! -f $FILE_NAME ]; then | |
curl -sO "https://unicode.org/Public/cldr/$LATEST_CLDR/$FILE_NAME" | |
mkdir -p cldr-$LATEST_CLDR | |
cd cldr-$LATEST_CLDR | |
unzip -qo ../$FILE_NAME | |
cd .. | |
rm -f $FILE_NAME | |
fi | |
python3 cldr-gen-locale-data.py cldr-$LATEST_CLDR/common/main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment