File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 31
31
NEW_MAJOR_VERSION=$( echo " $NEW_VERSION " | cut -d ' .' -f1)
32
32
NEW_MINOR_VERSION=$( echo " $NEW_VERSION " | cut -d ' .' -f2)
33
33
34
- NEW_VERSION_TGZ=" https://github.com/unicode-org/icu/releases/download/release-${NEW_VERSION} /icu4c-${NEW_MAJOR_VERSION} _${NEW_MINOR_VERSION} -src.tgz"
35
34
36
- ./configure --with-intl=full-icu --with-icu-source=" $NEW_VERSION_TGZ "
35
+ NEW_VERSION_TGZ=" icu4c-${NEW_MAJOR_VERSION} _${NEW_MINOR_VERSION} -src.tgz"
36
+
37
+ NEW_VERSION_TGZ_URL=" https://github.com/unicode-org/icu/releases/download/release-${NEW_MAJOR_VERSION} -${NEW_MINOR_VERSION} /$NEW_VERSION_TGZ "
38
+
39
+ NEW_VERSION_MD5=" https://github.com/unicode-org/icu/releases/download/release-${NEW_MAJOR_VERSION} -${NEW_MINOR_VERSION} /icu4c-${NEW_MAJOR_VERSION} _${NEW_MINOR_VERSION} -src.md5"
40
+
41
+ ./configure --with-intl=full-icu --with-icu-source=" $NEW_VERSION_TGZ_URL "
37
42
38
43
" $TOOLS_DIR /icu/shrink-icu-src.py"
39
44
40
45
rm -rf " $DEPS_DIR /icu"
41
46
42
- CHECKSUM=$( curl -s " $NEW_VERSION_TGZ " | md5sum | cut -d ' ' -f1 )
47
+ CHECKSUM=$( curl -sL " $NEW_VERSION_MD5 " | grep " $NEW_VERSION_TGZ " | grep -v " \.asc$ " | awk ' {print $1} ' )
43
48
44
- sed -i ' ' -e " s|\" url\" : \" \(.*\)\" .*|\" url\" : \" $NEW_VERSION_TGZ \" ,|" " $TOOLS_DIR /icu/current_ver.dep"
49
+ sed -i ' ' -e " s|\" url\" : \" \(.*\)\" .*|\" url\" : \" $NEW_VERSION_TGZ_URL \" ,|" " $TOOLS_DIR /icu/current_ver.dep"
45
50
46
51
sed -i ' ' -e " s|\" md5\" : \" \(.*\)\" .*|\" md5\" : \" $CHECKSUM \" |" " $TOOLS_DIR /icu/current_ver.dep"
47
52
You can’t perform that action at this time.
0 commit comments