Skip to content

Commit 0524a7a

Browse files
committed
tools: replace sed with perl
For cross-platform compatibility use perl instead of sed. Fixes: #48496
1 parent 9bdd172 commit 0524a7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/dep_updaters/update-icu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ if [ "$CHECKSUM" != "$GENERATED_CHECKSUM" ]; then
5959
exit 0
6060
fi
6161

62-
sed -i '' -e "s|\"url\": \"\(.*\)\".*|\"url\": \"$NEW_VERSION_TGZ_URL\",|" "$TOOLS_DIR/icu/current_ver.dep"
62+
perl -i -pe "s|\"url\": .*|\"url\": \"$NEW_VERSION_TGZ_URL\",|" "$TOOLS_DIR/icu/current_ver.dep"
6363

64-
sed -i '' -e "s|\"md5\": \"\(.*\)\".*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/current_ver.dep"
64+
perl -i -pe "s|\"md5\": .*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/current_ver.dep"
6565

6666
rm -rf out "$DEPS_DIR/icu" "$DEPS_DIR/icu4c*"
6767

tools/icu/current_ver.dep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"url": "https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.zip",
3+
"url": "aaa",
44
"md5": "6556e2a18b137e80a06a11060a08762b"
55
}
66
]

0 commit comments

Comments
 (0)