Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44ca97b

Browse filesBrowse files
targosaduh95
authored andcommitted
tools: fix update-icu script
Closes: #60506 PR-URL: #60521 Fixes: #60506 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent 07b0b5a commit 44ca97b
Copy full SHA for 44ca97b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-7
lines changed
Open diff view settings
Collapse file

‎tools/dep_updaters/update-icu.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-icu.sh
+3-7Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@ CURRENT_VERSION="$(grep "#define U_ICU_VERSION " "$ICU_VERSION_H" | cut -d'"' -f
3232
# This function exit with 0 if new version and current version are the same
3333
compare_dependency_version "icu-small" "$NEW_VERSION" "$CURRENT_VERSION"
3434

35-
DASHED_NEW_VERSION=$(echo "$NEW_VERSION" | sed 's/\./-/g')
35+
NEW_VERSION_TGZ="icu4c-${NEW_VERSION}-sources.tgz"
3636

37-
LOW_DASHED_NEW_VERSION=$(echo "$NEW_VERSION" | sed 's/\./_/g')
37+
NEW_VERSION_TGZ_URL="https://github.com/unicode-org/icu/releases/download/release-${NEW_VERSION}/${NEW_VERSION_TGZ}"
3838

39-
NEW_VERSION_TGZ="icu4c-${LOW_DASHED_NEW_VERSION}-src.tgz"
40-
41-
NEW_VERSION_TGZ_URL="https://github.com/unicode-org/icu/releases/download/release-${DASHED_NEW_VERSION}/$NEW_VERSION_TGZ"
42-
43-
NEW_VERSION_MD5="https://github.com/unicode-org/icu/releases/download/release-${DASHED_NEW_VERSION}/icu4c-${LOW_DASHED_NEW_VERSION}-sources.md5"
39+
NEW_VERSION_MD5="https://github.com/unicode-org/icu/releases/download/release-${NEW_VERSION}/icu4c-${NEW_VERSION}-sources.md5"
4440

4541
CHECKSUM=$(curl -sL "$NEW_VERSION_MD5" | grep "$NEW_VERSION_TGZ" | grep -v "\.asc$" | awk '{print $1}')
4642

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.