Skip to content

Commit

Permalink
ICU-21764 icu-data-bin: fix filenames to nn_n
Browse files Browse the repository at this point in the history
ex: icu4c-70_1-data-bin-b.zip
(was incorrectly "70.1" before)
  • Loading branch information
srl295 authored and pedberg-icu committed Sep 29, 2021
1 parent 4fd10ba commit 4a8b160
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions icu4c/source/config/dist-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ then
exit 1
fi

# Short (major) version, i.e. 70
VERS=$(echo ${DATFILE} | tr -d a-z/.)
# Version number, i.e. 70.1
VERSION=${VERSION-unknown}
# Version number for files, i.e. 70_1
VERSION_FILE=$(echo ${VERSION} | tr . _)

if [[ "${VERSION}" = "unknown" ]];
then
Expand Down Expand Up @@ -57,7 +61,7 @@ mkdir -p ${DISTY_DIR}/tmp

for endian in $ENDIANS;
do
base=icu4c-${VERSION}-data-bin-${endian}.zip
base=icu4c-${VERSION_FILE}-data-bin-${endian}.zip
filename=icudt${VERS}${endian}.dat
if [ -f ${DISTY_DIR}/${base} ];
then
Expand All @@ -67,7 +71,7 @@ do
rm -f ${DISTY_DIR}/tmp/${filename}
echo ./bin/icupkg -t${endian} ${DATFILE} ${DISTY_DIR}/tmp/${filename}
./bin/icupkg -t${endian} ${DATFILE} ${DISTY_DIR}/tmp/${filename}
README=icu4c-${VERSION}-data-bin-${endian}-README.md
README=icu4c-${VERSION_FILE}-data-bin-${endian}-README.md
cat >> ${DISTY_DIR}/tmp/${README} <<EOF
# ICU Data Zip for ${VERSION}
Expand Down

0 comments on commit 4a8b160

Please sign in to comment.