File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,10 @@ console.log(tag_name.replace('v', ''));
2424EOF
2525) "
2626
27- VERSION_HEX=$( grep " #define BROTLI_VERSION" ./deps/brotli/c/common/version.h | sed ' s/.* //' )
28-
29- major=$(( ($VERSION_HEX >> 24 ) & 0xff ))
30- minor=$(( ($VERSION_HEX >> 12 ) & 0xfff ))
31- patch=$(( $VERSION_HEX & 0xfff ))
32- CURRENT_VERSION=" ${major} .${minor} .${patch} "
27+ CURRENT_MAJOR_VERSION=$( grep " #define BROTLI_VERSION_MAJOR" ./deps/brotli/c/common/version.h | sed -n " s/^.*MAJOR \(.*\)/\1/p" )
28+ CURRENT_MINOR_VERSION=$( grep " #define BROTLI_VERSION_MINOR" ./deps/brotli/c/common/version.h | sed -n " s/^.*MINOR \(.*\)/\1/p" )
29+ CURRENT_PATCH_VERSION=$( grep " #define BROTLI_VERSION_PATCH" ./deps/brotli/c/common/version.h | sed -n " s/^.*PATCH \(.*\)/\1/p" )
30+ CURRENT_VERSION=" $CURRENT_MAJOR_VERSION .$CURRENT_MINOR_VERSION .$CURRENT_PATCH_VERSION "
3331
3432# This function exit with 0 if new version and current version are the same
3533compare_dependency_version " brotli" " $NEW_VERSION " " $CURRENT_VERSION "
You can’t perform that action at this time.
0 commit comments