GeezerVison is showing github.com — tools: compare ICU checksums before file changes · nodejs/node@2fd78fc
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/dep_updaters/update-icu.sh +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -42,23 +42,23 @@ NEW_VERSION_TGZ_URL="https://github.com/unicode-org/icu/releases/download/releas |
42 | 42 |
|
43 | 43 | NEW_VERSION_MD5="https://github.com/unicode-org/icu/releases/download/release-${DASHED_NEW_VERSION}/icu4c-${LOW_DASHED_NEW_VERSION}-src.md5" |
44 | 44 |
|
45 | | -./configure --with-intl=full-icu --with-icu-source="$NEW_VERSION_TGZ_URL" |
46 | | - |
47 | | -"$TOOLS_DIR/icu/shrink-icu-src.py" |
48 | | - |
49 | | -rm -rf "$DEPS_DIR/icu" |
50 | | - |
51 | 45 | CHECKSUM=$(curl -sL "$NEW_VERSION_MD5" | grep "$NEW_VERSION_TGZ" | grep -v "\.asc$" | awk '{print $1}') |
52 | 46 |
|
53 | 47 | GENERATED_CHECKSUM=$( curl -sL "$NEW_VERSION_TGZ_URL" | md5sum | cut -d ' ' -f1) |
54 | 48 |
|
55 | | -echo "Comparing checksums: deposited $CHECKSUM with $GENERATED_CHECKSUM" |
| 49 | +echo "Comparing checksums: deposited '$CHECKSUM' with '$GENERATED_CHECKSUM'" |
56 | 50 |
|
57 | 51 | if [ "$CHECKSUM" != "$GENERATED_CHECKSUM" ]; then |
58 | 52 | echo "Skipped because checksums do not match." |
59 | 53 | exit 0 |
60 | 54 | fi |
61 | 55 |
|
| 56 | +./configure --with-intl=full-icu --with-icu-source="$NEW_VERSION_TGZ_URL" |
| 57 | + |
| 58 | +"$TOOLS_DIR/icu/shrink-icu-src.py" |
| 59 | + |
| 60 | +rm -rf "$DEPS_DIR/icu" |
| 61 | + |
62 | 62 | perl -i -pe "s|\"url\": .*|\"url\": \"$NEW_VERSION_TGZ_URL\",|" "$TOOLS_DIR/icu/current_ver.dep" |
63 | 63 |
|
64 | 64 | perl -i -pe "s|\"md5\": .*|\"md5\": \"$CHECKSUM\"|" "$TOOLS_DIR/icu/current_ver.dep" |
|